spirv: add MeshViewCountNV/MeshViewIndidcesNV builtins from SPV_NV_mesh_shader

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Acked-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14263>
This commit is contained in:
Marcin Ślusarz 2021-12-16 14:28:58 +01:00 committed by Marge Bot
parent 561de760fd
commit e4ff7fd76a

View file

@ -1140,6 +1140,14 @@ vtn_get_builtin_location(struct vtn_builder *b,
case SpvBuiltInTaskCountNV:
*location = VARYING_SLOT_TASK_COUNT;
break;
case SpvBuiltInMeshViewCountNV:
*location = SYSTEM_VALUE_MESH_VIEW_COUNT;
set_mode_system_value(b, mode);
break;
case SpvBuiltInMeshViewIndicesNV:
*location = SYSTEM_VALUE_MESH_VIEW_INDICES;
set_mode_system_value(b, mode);
break;
default:
vtn_fail("Unsupported builtin: %s (%u)",
spirv_builtin_to_string(builtin), builtin);