spirv: Implement SPV_EXT_shader_atomic_float16_add

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11981>
This commit is contained in:
Caio Marcelo de Oliveira Filho 2021-05-25 23:12:40 -07:00 committed by Marge Bot
parent 8c29891fa4
commit baefdceeaf
2 changed files with 5 additions and 0 deletions

View File

@ -45,6 +45,7 @@ struct spirv_supported_capabilities {
bool descriptor_indexing;
bool device_group;
bool draw_parameters;
bool float16_atomic_add;
bool float16_atomic_min_max;
bool float32_atomic_add;
bool float32_atomic_min_max;

View File

@ -4604,6 +4604,10 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
spv_check_supported(amd_image_gather_bias_lod, cap);
break;
case SpvCapabilityAtomicFloat16AddEXT:
spv_check_supported(float16_atomic_add, cap);
break;
case SpvCapabilityAtomicFloat32AddEXT:
spv_check_supported(float32_atomic_add, cap);
break;