mesa: only call _mesa_update_state() when necessary in glGet functions
authorBrian Paul <brianp@vmware.com>
Fri, 26 Mar 2010 16:08:52 +0000 (10:08 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 26 Mar 2010 16:14:00 +0000 (10:14 -0600)
commit22cd6f2cb4996de0a30c8f865f7011898ac8b8e2
treedfb448023898a570ce260f968e027c88b3144a53
parente57405e8d516c09b890c6f1c3bd8fe7780417c95
mesa: only call _mesa_update_state() when necessary in glGet functions

Only a few state vars require state validation before querying them.
This potentially speeds up state queries.
Encode that info into the state tuple table.

Also, use the new tuple field to indicate when FLUSH_CURRENT() must
be called to validate other state vars.

Based on a patch submitted by Robert Bragg on Feb 12, 2010.
src/mesa/main/get.c
src/mesa/main/get_gen.py