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:

committed by
Marge Bot

parent
e60de08547
commit
dea29b3818
@@ -79,6 +79,7 @@ struct spirv_supported_capabilities {
|
|||||||
bool vk_memory_model;
|
bool vk_memory_model;
|
||||||
bool vk_memory_model_device_scope;
|
bool vk_memory_model_device_scope;
|
||||||
bool float16;
|
bool float16;
|
||||||
|
bool amd_fragment_mask;
|
||||||
bool amd_gcn_shader;
|
bool amd_gcn_shader;
|
||||||
bool amd_shader_ballot;
|
bool amd_shader_ballot;
|
||||||
bool amd_trinary_minmax;
|
bool amd_trinary_minmax;
|
||||||
|
@@ -4123,6 +4123,10 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
|
|||||||
spv_check_supported(integer_functions2, cap);
|
spv_check_supported(integer_functions2, cap);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case SpvCapabilityFragmentMaskAMD:
|
||||||
|
spv_check_supported(amd_fragment_mask, cap);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
vtn_fail("Unhandled capability: %s (%u)",
|
vtn_fail("Unhandled capability: %s (%u)",
|
||||||
spirv_capability_to_string(cap), cap);
|
spirv_capability_to_string(cap), cap);
|
||||||
|
Reference in New Issue
Block a user