From df4d83dca4618eb7077637865763d3e9ab750d11 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 28 Dec 2010 17:19:10 -0800 Subject: 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. --- src/mesa/drivers/dri/i965/brw_fs.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mesa/drivers') 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 { -- cgit v1.2.3