radv: enable VK_EXT_shader_stencil_export
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 25 Jun 2018 13:56:46 +0000 (15:56 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 26 Jun 2018 08:40:10 +0000 (10:40 +0200)
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 <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_extensions.py
src/amd/vulkan/radv_shader.c

index ebc3f6bc2b585d7222d176371bf69c695372bcac..a0f1038110bb83cfe9d6e90bbc383d2817a33fed 100644 (file)
@@ -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),
index 03185de304a8d5273b8d63901916a13c5046b217..c7ffd47c0b83d7c17362c8381efe8ea281c80662 100644 (file)
@@ -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,