spirv: add SpvCapabilityFragmentMaskAMD

This new capability is for SPV_AMD_shader_fragment_mask.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3304>
This commit is contained in:
Samuel Pitoiset
2019-05-16 12:25:40 +02:00
committed by Marge Bot
parent e60de08547
commit dea29b3818
2 changed files with 5 additions and 0 deletions

View File

@@ -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;

View File

@@ -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);