summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_shader.c
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2019-05-16 12:26:16 +0200
committerMarge Bot <[email protected]>2020-01-23 10:48:02 +0000
commit12fe19ba3b146b3c7ee73426bb7f1dbd7667fa30 (patch)
tree01910ffd86c5265b2ba23020416b61e6b48d3c40 /src/amd/vulkan/radv_shader.c
parente030aef32c05e1c042776f359da7b74234e170ee (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/amd/vulkan/radv_shader.c')
-rw-r--r--src/amd/vulkan/radv_shader.c1
1 files changed, 1 insertions, 0 deletions
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,