diff options
author | Timothy Arceri <[email protected]> | 2016-05-17 11:34:38 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2016-05-17 15:06:21 +1000 |
commit | 00441829e7317b2327c425cb8c364363b176defa (patch) | |
tree | 368f75c0568f703f4105a53256e42fec01a599aa /src/compiler/glsl | |
parent | 3f477f0ea53b92be4a7b026fdffb3664f154218b (diff) |
glsl: don't incorrectly eliminate patches with explicit locations
These varying have a separate location domain from per-vertex varyings
and need to be handled separately.
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/compiler/glsl')
-rw-r--r-- | src/compiler/glsl/linker.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/glsl/linker.cpp b/src/compiler/glsl/linker.cpp index bf30b82b402..70c6317ca6a 100644 --- a/src/compiler/glsl/linker.cpp +++ b/src/compiler/glsl/linker.cpp @@ -2888,7 +2888,8 @@ match_explicit_outputs_to_inputs(struct gl_shader_program *prog, gl_shader *consumer) { glsl_symbol_table parameters; - ir_variable *explicit_locations[MAX_VARYING][4] = { {NULL, NULL} }; + ir_variable *explicit_locations[MAX_VARYINGS_INCL_PATCH][4] = + { {NULL, NULL} }; /* Find all shader outputs in the "producer" stage. */ |