glsl2: Add pass for supporting variable vector indexing in rvalues.
authorEric Anholt <eric@anholt.net>
Wed, 7 Jul 2010 00:53:32 +0000 (17:53 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 7 Jul 2010 01:49:24 +0000 (18:49 -0700)
commita36334be02cb0a2b834667116bfeb680bf365857
treee1acebea80accff975b7b09c443cb909d341554b
parent2d1789e667c4180777829f96856daf91326721b9
glsl2: Add pass for supporting variable vector indexing in rvalues.

The Mesa IR needs this to support vector indexing correctly, and
hardware backends such as 915 would want this behavior as well.

Fixes glsl-vs-vec4-indexing-2.
src/glsl/Makefile
src/glsl/ir_optimization.h
src/glsl/ir_vec_index_to_cond_assign.cpp [new file with mode: 0644]
src/glsl/main.cpp
src/mesa/shader/ir_to_mesa.cpp