mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
zink: delete dead uniform variables
this just obfuscate nir, so delete them now Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21522>
This commit is contained in:
parent
760f367386
commit
00288d4f53
1 changed files with 4 additions and 0 deletions
|
|
@ -4445,6 +4445,10 @@ zink_shader_create(struct zink_screen *screen, struct nir_shader *nir,
|
|||
else
|
||||
ret->bindings[ztype][ret->num_bindings[ztype]].size = 1;
|
||||
ret->num_bindings[ztype]++;
|
||||
} else if (var->data.mode == nir_var_uniform) {
|
||||
/* this is a dead uniform */
|
||||
var->data.mode = 0;
|
||||
exec_node_remove(&var->node);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue