mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 22:10:10 +01:00
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:
parent
561de760fd
commit
e4ff7fd76a
1 changed files with 8 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue