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