From: Eric Anholt Date: Wed, 29 Dec 2010 01:19:10 +0000 (-0800) Subject: i965: Do lowering of array indexing of a vector in the FS. X-Git-Tag: 062012170305~8150 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=df4d83dca4618eb7077637865763d3e9ab750d11;p=profile%2Fivi%2Fmesa.git 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. --- diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 30b2869..22e6e2e 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 {