Module: Mesa
Branch: master
Commit: ffbf75cde4c5875a6581c997ed5fd57ae8059c9c
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ffbf75cde4c5875a6581c997ed5fd57ae8059c9c

Author: Daniel Schürmann <daniel.schuerm...@campus.tu-berlin.de>
Date:   Fri Feb 23 13:55:01 2018 +0100

radv: enable AMD_gcn_shader extension

Signed-off-by: Daniel Schürmann <daniel.schuerm...@campus.tu-berlin.de>
Reviewed-by: Bas Nieuwenhuizen <b...@basnieuwenhuizen.nl>

---

 src/amd/vulkan/radv_extensions.py | 1 +
 src/amd/vulkan/radv_shader.c      | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/src/amd/vulkan/radv_extensions.py 
b/src/amd/vulkan/radv_extensions.py
index 5818948417..469b09a160 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 dd7e0e0af6..85672e600d 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,

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to