diff options
author | Samuel Pitoiset <[email protected]> | 2019-05-16 12:25:40 +0200 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-01-23 10:48:02 +0000 |
commit | dea29b3818ecd813f5b96d44d54d0d3966af1665 (patch) | |
tree | a3d24863228a94e121b094cdbd5cbdf12caa2dcf | |
parent | e60de085473174e5a6b5a1e33e39006e62f5c786 (diff) |
spirv: add SpvCapabilityFragmentMaskAMD
This new capability is for SPV_AMD_shader_fragment_mask.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3304>
-rw-r--r-- | src/compiler/shader_info.h | 1 | ||||
-rw-r--r-- | src/compiler/spirv/spirv_to_nir.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/compiler/shader_info.h b/src/compiler/shader_info.h index cbc22d24636..4aa138943a7 100644 --- a/src/compiler/shader_info.h +++ b/src/compiler/shader_info.h @@ -79,6 +79,7 @@ struct spirv_supported_capabilities { bool vk_memory_model; bool vk_memory_model_device_scope; bool float16; + bool amd_fragment_mask; bool amd_gcn_shader; bool amd_shader_ballot; bool amd_trinary_minmax; diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c index 6df936b44f9..5e2ed6c27eb 100644 --- a/src/compiler/spirv/spirv_to_nir.c +++ b/src/compiler/spirv/spirv_to_nir.c @@ -4123,6 +4123,10 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode, spv_check_supported(integer_functions2, cap); break; + case SpvCapabilityFragmentMaskAMD: + spv_check_supported(amd_fragment_mask, cap); + break; + default: vtn_fail("Unhandled capability: %s (%u)", spirv_capability_to_string(cap), cap); |