summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mesa/drivers/dri/i965/brw_link.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_link.cpp b/src/mesa/drivers/dri/i965/brw_link.cpp
index ee62adaf931..d4bbd8b3b5b 100644
--- a/src/mesa/drivers/dri/i965/brw_link.cpp
+++ b/src/mesa/drivers/dri/i965/brw_link.cpp
@@ -146,7 +146,9 @@ process_glsl_ir(gl_shader_stage stage,
progress = false;
if (compiler->scalar_stage[shader->Stage]) {
- brw_do_channel_expressions(shader->ir);
+ if (shader->Stage == MESA_SHADER_VERTEX ||
+ shader->Stage == MESA_SHADER_FRAGMENT)
+ brw_do_channel_expressions(shader->ir);
brw_do_vector_splitting(shader->ir);
}