radv: Support VkPhysicalDeviceShaderDrawParameterFeatures.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 21 Jan 2018 14:57:59 +0000 (15:57 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 7 Mar 2018 20:18:35 +0000 (21:18 +0100)
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_device.c

index 4eab9faf3f31b6ac96629d732ff1d04a76383787..a791d3a7e4c461e612dd4218d2d7d18371302bd5 100644 (file)
@@ -666,6 +666,12 @@ void radv_GetPhysicalDeviceFeatures2(
                        features->multiviewTessellationShader = true;
                        break;
                }
+               case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DRAW_PARAMETER_FEATURES: {
+                       VkPhysicalDeviceShaderDrawParameterFeatures *features =
+                           (VkPhysicalDeviceShaderDrawParameterFeatures*)ext;
+                       features->shaderDrawParameters = true;
+                       break;
+               }
                default:
                        break;
                }