glsl2: Add a new pass at the IR level to break down matrix ops to vector ops.
authorEric Anholt <eric@anholt.net>
Mon, 12 Jul 2010 18:04:07 +0000 (11:04 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 12 Jul 2010 20:26:46 +0000 (13:26 -0700)
commit6d8a0a0aadaafbab02dffcf7f89eb0210dd37b2e
treefe424ec3226da050c072fae82816448028800595
parent5723e5bb8b73cd2a3b77d750972e3d0b4d0d0ff8
glsl2: Add a new pass at the IR level to break down matrix ops to vector ops.

This will be used by the Mesa IR and likely most HW backends, as it
allows other optimizations to occur that might not otherwise.

Fixes glsl-vs-mat-sub-1, glsl-vs-mat-div-1.
src/glsl/Makefile
src/glsl/ir.h
src/glsl/ir_mat_op_to_vec.cpp [new file with mode: 0644]
src/glsl/ir_optimization.h
src/mesa/shader/ir_to_mesa.cpp