mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
zink: don't create invalid inputs in zink_create_quads_emulation_gs
The helper was creating input locations for some builtin bariables.
This caused validation errors in zink because those builtins can't be
used as input.
Fixes: e2220ee55e ("zink: filled quad emulation gs generation function")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22871>
This commit is contained in:
parent
b5818e2e4f
commit
71107b6dc8
1 changed files with 5 additions and 0 deletions
|
|
@ -1240,6 +1240,11 @@ zink_create_quads_emulation_gs(const nir_shader_compiler_options *options,
|
|||
nir_foreach_shader_out_variable(var, prev_stage) {
|
||||
assert(!var->data.patch);
|
||||
|
||||
/* input vars can't be created for those */
|
||||
if (var->data.location == VARYING_SLOT_LAYER ||
|
||||
var->data.location == VARYING_SLOT_VIEW_INDEX)
|
||||
continue;
|
||||
|
||||
char name[100];
|
||||
if (var->name)
|
||||
snprintf(name, sizeof(name), "in_%s", var->name);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue