spirv: Add mesh_shading capability for EXT_mesh_shader.

Indicates support for the EXT_mesh_shader SPIR-V capabilities.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18366>
This commit is contained in:
Timur Kristóf
2022-01-20 16:34:37 +01:00
committed by Marge Bot
parent f6925b8446
commit bbebc1fb35
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -74,6 +74,7 @@ struct spirv_supported_capabilities {
bool kernel_image_read_write;
bool linkage;
bool literal_sampler;
bool mesh_shading;
bool mesh_shading_nv;
bool min_lod;
bool multiview;
+4
View File
@@ -4841,6 +4841,10 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
spv_check_supported(float64_atomic_min_max, cap);
break;
case SpvCapabilityMeshShadingEXT:
spv_check_supported(mesh_shading, cap);
break;
case SpvCapabilityMeshShadingNV:
spv_check_supported(mesh_shading_nv, cap);
break;