Mesa (glsl2): glsl2: Unmark unwritten varyings as varying.
Eric Anholt
anholt at kemper.freedesktop.org
Wed Jul 28 21:05:28 UTC 2010
Module: Mesa
Branch: glsl2
Commit: a6c7606ab6e2ba8b4fc253e93a83ca2f18a874b4
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a6c7606ab6e2ba8b4fc253e93a83ca2f18a874b4
Author: Eric Anholt <eric at anholt.net>
Date: Wed Jul 28 13:42:36 2010 -0700
glsl2: Unmark unwritten varyings as varying.
This fixes an assertion failure in ir_to_mesa, and the varying won't
take up varying space.
---
src/glsl/linker.cpp | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp
index e7bc700..ec3cc01 100644
--- a/src/glsl/linker.cpp
+++ b/src/glsl/linker.cpp
@@ -1132,6 +1132,7 @@ assign_varying_locations(gl_shader *producer, gl_shader *consumer)
* by the previous stage.
*/
var->shader_in = (var->location != -1);
+ var->mode = ir_var_auto;
}
}
More information about the mesa-commit
mailing list