[Mesa-dev] Matrix flipper v2

Kenneth Graunke kenneth at whitecape.org
Wed Apr 17 17:30:19 PDT 2013


This series does two things: first, it plumbs ShaderCompilerOptions into
do_common_optimization(), since optimization & lowering passes may want
to consult that.

Secondly, it adds an optimization pass that converts (matrix * vector)
operations to (vector * matrixTranspose) for certain built-in matrices
(currently gl_ModelViewProjectionMatrix and gl_TextureMatrix).  This
makes it use DP4s instead of MUL/ADD, which can be more efficient.



More information about the mesa-dev mailing list