From: Daniel Schürmann Date: Fri, 23 Feb 2018 12:55:01 +0000 (+0100) Subject: radv: enable AMD_gcn_shader extension X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ffbf75cde4c5875a6581c997ed5fd57ae8059c9c;p=mesa.git radv: enable AMD_gcn_shader extension Signed-off-by: Daniel Schürmann Reviewed-by: Bas Nieuwenhuizen --- 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,