st/mesa: be more careful about state validation in st_Bitmap()
authorBrian Paul <brianp@vmware.com>
Wed, 6 Jan 2016 01:11:14 +0000 (18:11 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 6 Jan 2016 22:53:46 +0000 (15:53 -0700)
commit2cc52801c05a636ddd52cdef7df338f69607c6fe
treed1e60a315e5ac0cd752d49379b1bbf0b6b961b16
parentb6bcf0864138787c21b19cda3749c80c6ad74604
st/mesa: be more careful about state validation in st_Bitmap()

If the only dirty state is mesa's _NEW_PROGRAM_CONSTANTS flag, we can
skip state validation before drawing a bitmap since that state doesn't
effect bitmap rendering.

This further increases the performance of the ipers demo on llvmpipe
to about what it was before commit 36c93a6fae27561.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/mesa/state_tracker/st_cb_bitmap.c