summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-12-28 17:19:10 -0800
committerEric Anholt <eric@anholt.net>2010-12-28 17:32:20 -0800
commitdf4d83dca4618eb7077637865763d3e9ab750d11 (patch)
treed56c88e5c03d286f517c5856195176e1df182f2e /src/mesa/drivers/dri
parent54df8e48bcceacbfa468d5237f2981b26493df29 (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.
Diffstat (limited to 'src/mesa/drivers/dri')
-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 30b28690ff..22e6e2e736 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 {