radv: Enable VK_KHR_shader_draw_parameters.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 31 Jan 2017 20:37:48 +0000 (21:37 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 1 Feb 2017 18:49:40 +0000 (19:49 +0100)
Signed-off-by: Bas Nieuwenhuizen <basni@google.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
src/amd/vulkan/radv_device.c
src/amd/vulkan/radv_pipeline.c

index 0026de5a0e09a8bef090b1afb09b2aa8c3f6e99b..16c9c0ed68407366df69812969eebafca6d94580 100644 (file)
@@ -124,6 +124,10 @@ static const VkExtensionProperties common_device_extensions[] = {
                .extensionName = VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME,
                .specVersion = 1,
        },
+       {
+               .extensionName = VK_KHR_SHADER_DRAW_PARAMETERS_EXTENSION_NAME,
+               .specVersion = 1,
+       },
 };
 
 static VkResult
index bf3007ba2de2b470874467a587e00c8b73d6862a..53f06acc092c61ab73bda4bbe5095c85de7923ee 100644 (file)
@@ -207,6 +207,7 @@ radv_shader_compile_to_nir(struct radv_device *device,
                        }
                }
                const struct nir_spirv_supported_extensions supported_ext = {
+                       .draw_parameters = true,
                        .float64 = true
                };
                entry_point = spirv_to_nir(spirv, module->size / 4,