diff options
author | Eric Anholt <[email protected]> | 2010-07-06 17:53:32 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-07-06 18:49:24 -0700 |
commit | a36334be02cb0a2b834667116bfeb680bf365857 (patch) | |
tree | e1acebea80accff975b7b09c443cb909d341554b /src/glsl/main.cpp | |
parent | 2d1789e667c4180777829f96856daf91326721b9 (diff) |
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.
Diffstat (limited to 'src/glsl/main.cpp')
-rw-r--r-- | src/glsl/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/main.cpp b/src/glsl/main.cpp index 9bed2c6bccc..782934a8d7e 100644 --- a/src/glsl/main.cpp +++ b/src/glsl/main.cpp @@ -175,6 +175,7 @@ compile_shader(struct gl_shader *shader) progress = do_constant_variable_unlinked(shader->ir) || progress; progress = do_constant_folding(shader->ir) || progress; progress = do_vec_index_to_swizzle(shader->ir) || progress; + progress = do_vec_index_to_cond_assign(shader->ir) || progress; progress = do_swizzle_swizzle(shader->ir) || progress; } while (progress); } |