From f5f8eb2c7cb425f63798daaf151cb517c8bd6a0d Mon Sep 17 00:00:00 2001 From: Bas Nieuwenhuizen Date: Tue, 31 Jan 2017 21:37:48 +0100 Subject: [PATCH] radv: Enable VK_KHR_shader_draw_parameters. Signed-off-by: Bas Nieuwenhuizen Reviewed-by: Dave Airlie Reviewed-by: Edward O'Callaghan --- src/amd/vulkan/radv_device.c | 4 ++++ src/amd/vulkan/radv_pipeline.c | 1 + 2 files changed, 5 insertions(+) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 0026de5a0e0..16c9c0ed684 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -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 diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index bf3007ba2de..53f06acc092 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -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, -- 2.30.2