Module: Mesa Branch: master Commit: 7158255069a9d431e9fc5ecd1aa462eb2d50d9a5 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7158255069a9d431e9fc5ecd1aa462eb2d50d9a5
Author: Lionel Landwerlin <[email protected]> Date: Sun Jan 29 04:14:54 2017 +0000 anv: enable VK_KHR_shader_draw_parameters Enables 10 tests from: dEQP-VK.draw.shader_draw_parameters.* Signed-off-by: Lionel Landwerlin <[email protected]> Reviewed-by: Anuj Phogat <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]> --- src/intel/vulkan/anv_device.c | 4 ++++ src/intel/vulkan/anv_pipeline.c | 1 + 2 files changed, 5 insertions(+) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 3403dc1..91ee67f 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -272,6 +272,10 @@ static const VkExtensionProperties device_extensions[] = { .extensionName = VK_KHR_MAINTENANCE1_EXTENSION_NAME, .specVersion = 1, }, + { + .extensionName = VK_KHR_SHADER_DRAW_PARAMETERS_EXTENSION_NAME, + .specVersion = 1, + } }; static void * diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c index 2060c6d..ca3823c 100644 --- a/src/intel/vulkan/anv_pipeline.c +++ b/src/intel/vulkan/anv_pipeline.c @@ -127,6 +127,7 @@ anv_shader_compile_to_nir(struct anv_device *device, const struct nir_spirv_supported_extensions supported_ext = { .float64 = device->instance->physicalDevice.info.gen >= 8, .tessellation = true, + .draw_parameters = true, }; nir_function *entry_point = _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
