summaryrefslogtreecommitdiff
path: root/src/mesa/shader/slang/slang_compile.c
diff options
context:
space:
mode:
authorZack Rusin <zack@tungstengraphics.com>2008-06-12 18:53:52 -0400
committerZack Rusin <zack@tungstengraphics.com>2008-06-12 19:39:20 -0400
commit928ec5cd3be5c7d6f3d9df0ace18371b1ec8c68c (patch)
tree76d9d016980c2336a51818285b0248e91063b8c6 /src/mesa/shader/slang/slang_compile.c
parent53f5b9741a5453f9166aee8da6e1f8bf5b10d59e (diff)
glsl: make sure we replace all output reads with temporaries
test in if.glsl
Diffstat (limited to 'src/mesa/shader/slang/slang_compile.c')
-rw-r--r--src/mesa/shader/slang/slang_compile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/slang_compile.c b/src/mesa/shader/slang/slang_compile.c
index f2e8aab8b0..cdea1c5128 100644
--- a/src/mesa/shader/slang/slang_compile.c
+++ b/src/mesa/shader/slang/slang_compile.c
@@ -2212,7 +2212,8 @@ _slang_compile(GLcontext *ctx, struct gl_shader *shader)
printf("Pre-remove output reads:\n");
_mesa_print_program(shader->Programs[0]);
#endif
- _mesa_remove_varying_reads(shader->Programs[0]);
+ _mesa_remove_output_reads(shader->Programs[0], PROGRAM_VARYING);
+ _mesa_remove_output_reads(shader->Programs[0], PROGRAM_OUTPUT);
#if 0
printf("Post-remove output reads:\n");
_mesa_print_program(shader->Programs[0]);