diff options
author | Eric Anholt <[email protected]> | 2010-12-28 17:19:10 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-12-28 17:32:20 -0800 |
commit | df4d83dca4618eb7077637865763d3e9ab750d11 (patch) | |
tree | d56c88e5c03d286f517c5856195176e1df182f2e /src/mesa/drivers/dri/i965 | |
parent | 54df8e48bcceacbfa468d5237f2981b26493df29 (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/i965')
-rw-r--r-- | 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 30b28690ffa..22e6e2e7368 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 { |