Module: Mesa
Branch: master
Commit: df4d83dca4618eb7077637865763d3e9ab750d11
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=df4d83dca4618eb7077637865763d3e9ab750d11

Author: Eric Anholt <e...@anholt.net>
Date:   Tue Dec 28 17:19:10 2010 -0800

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 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 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 {

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to