radv: enable AMD_gcn_shader extension
authorDaniel Schürmann <daniel.schuermann@campus.tu-berlin.de>
Fri, 23 Feb 2018 12:55:01 +0000 (13:55 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 7 Mar 2018 22:09:58 +0000 (23:09 +0100)
Signed-off-by: Daniel Schürmann <daniel.schuermann@campus.tu-berlin.de>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_extensions.py
src/amd/vulkan/radv_shader.c

index 5818948417111436bd3d0e159d4550e3d444821d..469b09a160df77577083aed1577e5545b3df6f59 100644 (file)
@@ -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),
 ]
index dd7e0e0af6dc4f849c52971901b2b530af5ba57e..85672e600d7d86cd24a02dd313358359df096529 100644 (file)
@@ -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,