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>
*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);