summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-12-28 17:19:10 -0800
committerEric Anholt <eric@anholt.net>2011-01-04 13:01:41 -0800
commit8604d91ae45d81e517ad5daab617d1474a6e7248 (patch)
treefab5f1899f41e11f0fc1420adaa3be7f8a1d3d1f
parentbba89b379344d3057b8fab65e43cb1d92c6966f5 (diff)
i965: Do lowering of array indexing of a vector in the FS.
Fixes a regression in ember since switching to the native FS backend, and the new piglit tests glsl-fs-vec4-indexing-{2,3} for catching this. (cherry picked from commit df4d83dca4618eb7077637865763d3e9ab750d11)
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 30b28690ffa..22e6e2e7368 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -118,6 +118,7 @@ brw_link_shader(struct gl_context *ctx, struct gl_shader_program *prog)
lower_if_to_cond_assign(shader->ir, 16);
do_lower_texture_projection(shader->ir);
+ do_vec_index_to_cond_assign(shader->ir);
brw_do_cubemap_normalize(shader->ir);
do {