Mesa (7.10): i965: Do lowering of array indexing of a vector in the FS.

Eric Anholt anholt at kemper.freedesktop.org
Tue Jan 4 21:13:40 UTC 2011


Module: Mesa
Branch: 7.10
Commit: 8604d91ae45d81e517ad5daab617d1474a6e7248
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8604d91ae45d81e517ad5daab617d1474a6e7248

Author: Eric Anholt <eric at 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.
(cherry picked from commit df4d83dca4618eb7077637865763d3e9ab750d11)

---

 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 {




More information about the mesa-commit mailing list