Revert "ir_to_mesa: Load all the STATE_VAR elements of a builtin uniform to a temp."
authorMarek Olšák <maraeo@gmail.com>
Fri, 3 Sep 2010 22:42:36 +0000 (00:42 +0200)
committerMarek Olšák <maraeo@gmail.com>
Sat, 4 Sep 2010 17:06:47 +0000 (19:06 +0200)
commit280665be7026c978acead9713c10271c36a571ee
tree6150da9464852e5a11e0258943bb572472e41006
parentcbf7e827869baeddab19c249bcea7afe49bc0f74
Revert "ir_to_mesa: Load all the STATE_VAR elements of a builtin uniform to a temp."

This reverts commit 5ad74779cea07cc6a19a52874cdaef8b018e2f1b.

Sorry, but I had to revert this.

Any commit which needlessly increases the number of temporaries is wrong.
More temporaries mean less shader performance because of reduced parallelism
and therefore less efficient latency hiding. In this case, there is possible
performance degradation of every shader which uses GL state variables.
I cannot accept this.
src/mesa/program/ir_to_mesa.cpp