diff options
author | Keith Whitwell <[email protected]> | 2009-06-30 09:55:33 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2009-06-30 09:55:33 +0100 |
commit | 47173cf67f0ed55012b0820397f6d620d8ad4473 (patch) | |
tree | 802b6513d708298290d8e0655fcd30a69ecea863 /bin | |
parent | 9014f475ff6720b694ba28906ebfe7e77795b173 (diff) |
mesa/dlist: shortcircuit some redundant statechanges at compile time
Currently, state-changes in mesa display lists are more or less
a verbatim recording of the GL calls made during compilation.
This change introduces a minor optimization to recognize and eliminate
cases where the application emits redundant state changes, eg:
glShadeModel( GL_FLAT );
glBegin( prim )
...
glEnd()
glShadeModel( GL_FLAT );
glBegin( prim )
...
glEnd()
The big win is when we can eliminate all the statechanges between two
primitive blocks and combine them into a single VBO node.
This commit implements state-change elimination for Material and ShadeModel
only. This is enough to make a start on debugging, etc.
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions