mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 09:10:12 +01:00
spirv2dxil: When removing unused inputs, make sure they're actually inputs
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20614>
This commit is contained in:
parent
00b9c10cf7
commit
3ddf41cb7d
1 changed files with 1 additions and 1 deletions
|
|
@ -490,7 +490,7 @@ kill_undefined_varyings(struct nir_builder *b,
|
|||
return false;
|
||||
|
||||
nir_variable *var = nir_intrinsic_get_var(intr, 0);
|
||||
if (!var)
|
||||
if (!var || var->data.mode != nir_var_shader_in)
|
||||
return false;
|
||||
|
||||
/* Ignore builtins for now, some of them get default values
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue