[Mesa-dev] [PATCH 3/5] glsl: don't incorrectly eliminate patches with explicit locations

Timothy Arceri timothy.arceri at collabora.com
Tue May 17 03:19:40 UTC 2016


These varying have a separate location domain from per-vertex varyings
and need to be handled separately.
---
 src/compiler/glsl/linker.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/compiler/glsl/linker.cpp b/src/compiler/glsl/linker.cpp
index bf30b82..70c6317 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.
     */
-- 
2.5.5



More information about the mesa-dev mailing list