mesa: Rewrite shader-based texture image state updates.
authorEric Anholt <eric@anholt.net>
Thu, 24 Apr 2014 07:57:54 +0000 (00:57 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 30 Apr 2014 21:33:20 +0000 (14:33 -0700)
commit6a97deb88aa715af9760cf3c7ca0c1ff76e4f325
treeb5cf68091aa03270acaa96906a7cd8d534a2eaea
parenta580b500edb25298d99e8e78d04eaca418dcd4ce
mesa: Rewrite shader-based texture image state updates.

Instead of walking 6 shader stages for each of the 96 combined texture
image units, now we just walk the samplers used in each shader stage.

With cairo-perf-trace on Xephyr with glamor, I'm seeing a -6.50518% +/-
2.55601% effect on runtime (n=22) since the "drop _EnabledUnits" change.
No significant performance difference on an apitrace of minecraft (n=442).

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/texstate.c