mirror of https://gitlab.freedesktop.org/mesa/mesa
spirv: Support the CullPrimitiveEXT mesh shader built-in.
This is a per-primitive builtin output which indicates that a primitive should be culled (deleted) from the output. 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:
parent
c5c6cef893
commit
a03c30bd8d
|
@ -1162,6 +1162,9 @@ vtn_get_builtin_location(struct vtn_builder *b,
|
|||
*location = SYSTEM_VALUE_MESH_VIEW_INDICES;
|
||||
set_mode_system_value(b, mode);
|
||||
break;
|
||||
case SpvBuiltInCullPrimitiveEXT:
|
||||
*location = VARYING_SLOT_CULL_PRIMITIVE;
|
||||
break;
|
||||
default:
|
||||
vtn_fail("Unsupported builtin: %s (%u)",
|
||||
spirv_builtin_to_string(builtin), builtin);
|
||||
|
|
Loading…
Reference in New Issue