i965: Don't create constant buffers if they won't be used.
authorEric Anholt <eric@anholt.net>
Tue, 5 May 2009 20:07:33 +0000 (13:07 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 6 May 2009 13:44:13 +0000 (06:44 -0700)
commitd277547dc69c9004097afdc2ca56a7aed85c6f54
tree0e139f06826a9defaba0e43ea5c59bf714d31fe4
parent51325f44d1e7e62b47795a79f8038d10dc5bc30b
i965: Don't create constant buffers if they won't be used.

Really, the creation and upload of constants should be in the same place,
since they should only happen together, and a state flag should be
triggered by them so that we don't thrash state around so much for just
updating constants.  But this still recovers openarena performance by
another 19%, leaving us 16% behind Mesa 7.4 branch.
src/mesa/drivers/dri/i965/brw_wm_surface_state.c