mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 23:18:20 +02:00
glsl: Exclude ir_var_hidden variables from the program resource list.
We occasionally generate variables internally that we want to exclude from the program resource list, as applications won't be expecting them to be present. The next patch will make use of this. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
15cd3ebede
commit
33df1c2935
1 changed files with 1 additions and 1 deletions
|
|
@ -3525,7 +3525,7 @@ add_interface_variables(struct gl_shader_program *shProg,
|
|||
ir_variable *var = node->as_variable();
|
||||
uint8_t mask = 0;
|
||||
|
||||
if (!var)
|
||||
if (!var || var->data.how_declared == ir_var_hidden)
|
||||
continue;
|
||||
|
||||
switch (var->data.mode) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue