From 3dc4e3764f627d8cc0cc306b87c908af02afec5f Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 22 Jul 2020 15:23:46 -0500 Subject: [PATCH] anv: Advertise shaderIntegerFunctions2 We advertised the extension string but never the feature bit. Doh! Fixes: c57338b92471 "anv: Enable SPV_INTEL_shader_integer_functions2..." Reviewed-by: Caio Marcelo de Oliveira Filho Reviewed-by: Ian Romanick Part-of: (cherry picked from commit 7f06d194fd3650f3078574741ce56bdcba43279d) --- .pick_status.json | 2 +- src/intel/vulkan/anv_device.c | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.pick_status.json b/.pick_status.json index 188ef6354d0..af5ae35b5a1 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -4198,7 +4198,7 @@ "description": "anv: Advertise shaderIntegerFunctions2", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "master_sha": null, "because_sha": "c57338b924710b93193f921cd1e95d6de6b398ef" }, diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index f620c1791d0..e0e53321521 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -1297,6 +1297,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;