From bcbd8dd6c93e453e33e7ba71767f33dda50312c8 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Mon, 25 Jun 2018 15:56:46 +0200 Subject: [PATCH] radv: enable VK_EXT_shader_stencil_export The driver already supports exporting the stencil value. The following CTS test now pass: dEQP-VK.pipeline.shader_stencil_export.op_replace Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_extensions.py | 1 + src/amd/vulkan/radv_shader.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/amd/vulkan/radv_extensions.py b/src/amd/vulkan/radv_extensions.py index ebc3f6bc2b5..a0f1038110b 100644 --- a/src/amd/vulkan/radv_extensions.py +++ b/src/amd/vulkan/radv_extensions.py @@ -100,6 +100,7 @@ EXTENSIONS = [ Extension('VK_EXT_global_priority', 1, 'device->rad_info.has_ctx_priority'), Extension('VK_EXT_sampler_filter_minmax', 1, 'device->rad_info.chip_class >= CIK'), Extension('VK_EXT_shader_viewport_index_layer', 1, True), + Extension('VK_EXT_shader_stencil_export', 1, True), Extension('VK_EXT_vertex_attribute_divisor', 1, True), Extension('VK_AMD_draw_indirect_count', 1, True), Extension('VK_AMD_gcn_shader', 1, True), diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c index 03185de304a..c7ffd47c0b8 100644 --- a/src/amd/vulkan/radv_shader.c +++ b/src/amd/vulkan/radv_shader.c @@ -222,6 +222,7 @@ radv_shader_compile_to_nir(struct radv_device *device, .shader_viewport_index_layer = true, .descriptor_array_dynamic_indexing = true, .runtime_descriptor_array = true, + .stencil_export = true, }, }; entry_point = spirv_to_nir(spirv, module->size / 4, -- 2.30.2