diff options
author | Samuel Pitoiset <[email protected]> | 2019-05-16 12:26:16 +0200 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-01-23 10:48:02 +0000 |
commit | 12fe19ba3b146b3c7ee73426bb7f1dbd7667fa30 (patch) | |
tree | 01910ffd86c5265b2ba23020416b61e6b48d3c40 /src | |
parent | e030aef32c05e1c042776f359da7b74234e170ee (diff) |
radv: advertise VK_AMD_shader_fragment_mask
Only for GFX8+ because it's untested on older generations.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3304>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3304>
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/vulkan/radv_extensions.py | 1 | ||||
-rw-r--r-- | src/amd/vulkan/radv_shader.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_extensions.py b/src/amd/vulkan/radv_extensions.py index 81c013d9be7..36e8b39be93 100644 --- a/src/amd/vulkan/radv_extensions.py +++ b/src/amd/vulkan/radv_extensions.py @@ -159,6 +159,7 @@ EXTENSIONS = [ Extension('VK_AMD_shader_core_properties', 1, True), Extension('VK_AMD_shader_core_properties2', 1, True), Extension('VK_AMD_shader_image_load_store_lod', 1, True), + Extension('VK_AMD_shader_fragment_mask', 1, 'device->rad_info.chip_class >= GFX8'), Extension('VK_AMD_shader_info', 1, True), Extension('VK_AMD_shader_trinary_minmax', 1, True), Extension('VK_GOOGLE_decorate_string', 1, True), diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c index bbf5cd746c4..e407c9194c0 100644 --- a/src/amd/vulkan/radv_shader.c +++ b/src/amd/vulkan/radv_shader.c @@ -361,6 +361,7 @@ radv_shader_compile_to_nir(struct radv_device *device, const struct spirv_to_nir_options spirv_options = { .lower_ubo_ssbo_access_to_offsets = true, .caps = { + .amd_fragment_mask = true, .amd_gcn_shader = true, .amd_image_read_write_lod = true, .amd_shader_ballot = device->physical_device->use_shader_ballot, |