anv: Advertise shaderIntegerFunctions2

Graphics / Mesa 3D Graphics Library / Mesa - Jason Ekstrand [jlekstrand.net] - 6 August 2020 16:14 UTC

We advertised the extension string but never the feature bit. Doh!

Fixes: c57338b92471 "anv: Enable SPV_INTEL_shader_integer_functions2..."

###

diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index 0b2aed858a4..8804b9865b6 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -1373,6 +1373,13 @@ void anv_GetPhysicalDeviceFeatures2(
break;
}

+ case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_INTEGER_FUNCTIONS_2_FEATURES_INTEL: {
+ VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL *features =
+ (VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL *)ext;
+ features->shaderIntegerFunctions2 = true;
+ break;
+ }
+
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_SUBGROUP_EXTENDED_TYPES_FEATURES_KHR: {
VkPhysicalDeviceShaderSubgroupExtendedTypesFeaturesKHR *features =
(VkPhysicalDeviceShaderSubgroupExtendedTypesFeaturesKHR *)ext;

7f06d194fd3 anv: Advertise shaderIntegerFunctions2
src/intel/vulkan/anv_device.c | 7 +++++++
1 file changed, 7 insertions(+)

Upstream: cgit.freedesktop.org


  • Share