From ffbf75cde4c5875a6581c997ed5fd57ae8059c9c Mon Sep 17 00:00:00 2001 From: Daniel Schürmann Date: Fri, 23 Feb 2018 13:55:01 +0100 Subject: radv: enable AMD_gcn_shader extension MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel Schürmann Reviewed-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_extensions.py | 1 + src/amd/vulkan/radv_shader.c | 3 +++ 2 files changed, 4 insertions(+) (limited to 'src/amd') diff --git a/src/amd/vulkan/radv_extensions.py b/src/amd/vulkan/radv_extensions.py index 58189484171..469b09a160d 100644 --- a/src/amd/vulkan/radv_extensions.py +++ b/src/amd/vulkan/radv_extensions.py @@ -91,6 +91,7 @@ EXTENSIONS = [ Extension('VK_EXT_external_memory_host', 1, 'device->rad_info.has_userptr'), Extension('VK_EXT_global_priority', 1, 'device->rad_info.has_ctx_priority'), Extension('VK_AMD_draw_indirect_count', 1, True), + Extension('VK_AMD_gcn_shader', 1, True), Extension('VK_AMD_rasterization_order', 1, 'device->rad_info.chip_class >= VI && device->rad_info.max_se >= 2'), Extension('VK_AMD_shader_info', 1, True), ] diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c index dd7e0e0af6d..85672e600d7 100644 --- a/src/amd/vulkan/radv_shader.c +++ b/src/amd/vulkan/radv_shader.c @@ -215,6 +215,9 @@ radv_shader_compile_to_nir(struct radv_device *device, .subgroup_basic = true, .variable_pointers = true, }, + .exts = { + .AMD_gcn_shader = true, + }, }; entry_point = spirv_to_nir(spirv, module->size / 4, spec_entries, num_spec_entries, -- cgit v1.2.3