[Mesa-dev] [PATCH v3 5/5] radv: enable AMD_gcn_shader extension
daniel.schuermann at campus.tu-berlin.de
daniel.schuermann at campus.tu-berlin.de
Fri Feb 23 12:55:01 UTC 2018
From: Daniel Schürmann <daniel.schuermann at campus.tu-berlin.de>
Signed-off-by: Daniel Schürmann <daniel.schuermann at campus.tu-berlin.de>
---
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 ac6ec8744e..c81f47d222 100644
--- a/src/amd/vulkan/radv_extensions.py
+++ b/src/amd/vulkan/radv_extensions.py
@@ -88,6 +88,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 171802eede..ddb7c42e50 100644
--- a/src/amd/vulkan/radv_shader.c
+++ b/src/amd/vulkan/radv_shader.c
@@ -251,6 +251,9 @@ radv_shader_compile_to_nir(struct radv_device *device,
.multiview = true,
.variable_pointers = true,
},
+ .exts = {
+ .AMD_gcn_shader = true,
+ },
};
entry_point = spirv_to_nir(spirv, module->size / 4,
spec_entries, num_spec_entries,
--
2.14.1
More information about the mesa-dev
mailing list