commit | 0d2eb8c14d8c791603cb60cb56ed468ee49543ad | [log] [tgz] |
---|---|---|
author | Brian Paul <brianp@vmware.com> | Wed Sep 14 12:16:18 2016 -0600 |
committer | Brian Paul <brianp@vmware.com> | Thu Sep 15 12:00:12 2016 -0600 |
tree | b8c63b96bba7e7d8e048bdd1f35c5f523735802c | |
parent | 533b3530c1292a39ea12437d1376c77bc7e584b9 [diff] |
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>