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:
Kenneth Graunke 2016-04-01 21:00:32 -07:00
parent 15cd3ebede
commit 33df1c2935

View file

@ -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) {