diff options
author | Kenneth Graunke <[email protected]> | 2016-04-01 21:00:32 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2016-04-01 21:56:43 -0700 |
commit | 33df1c293504597c195cb2dca6b0b84e462388cf (patch) | |
tree | 9c035f4ff07e4a7cc8ac3cd0163134d023350ac0 /src/compiler | |
parent | 15cd3ebede62a0c73bfa1513a0c9ab942906cd5a (diff) |
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 <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/glsl/linker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/linker.cpp b/src/compiler/glsl/linker.cpp index 510a22e5bd3..cd096bafd0a 100644 --- a/src/compiler/glsl/linker.cpp +++ b/src/compiler/glsl/linker.cpp @@ -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) { |