summaryrefslogtreecommitdiffstats
path: root/common.py
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2016-09-14 12:16:18 -0600
committerBrian Paul <brianp@vmware.com>2016-09-15 12:00:12 -0600
commit0d2eb8c14d8c791603cb60cb56ed468ee49543ad (patch)
treeb8c63b96bba7e7d8e048bdd1f35c5f523735802c /common.py
parent533b3530c1292a39ea12437d1376c77bc7e584b9 (diff)
downloadexternal_mesa3d-0d2eb8c14d8c791603cb60cb56ed468ee49543ad.zip
external_mesa3d-0d2eb8c14d8c791603cb60cb56ed468ee49543ad.tar.gz
external_mesa3d-0d2eb8c14d8c791603cb60cb56ed468ee49543ad.tar.bz2
mesa: check for no matrix change in _mesa_LoadMatrixf()
Some apps issue redundant glLoadMatrixf() calls with the same matrix. Try to avoid setting dirty state in that situation. This reduces the number of constant buffer updates by about half in ET Quake Wars. Tested with Piglit, ETQW, Sauerbraten, Google Earth, etc. Reviewed-by: Charmaine Lee <charmainel@vmware.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'common.py')
0 files changed, 0 insertions, 0 deletions