radv: Enable VK_KHR_shader_draw_parameters.

Signed-off-by: Bas Nieuwenhuizen <basni@google.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
This commit is contained in:
Bas Nieuwenhuizen
2017-01-31 21:37:48 +01:00
parent cf8a11c1ba
commit f5f8eb2c7c
2 changed files with 5 additions and 0 deletions

View 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

View 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,