swr: conditionally validate vertex buffer state
authorBruce Cherniak <bruce.cherniak@intel.com>
Tue, 27 Jun 2017 22:49:06 +0000 (17:49 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Thu, 29 Jun 2017 18:23:33 +0000 (13:23 -0500)
commit2b27dcd0751e704193ceb0572447799342dd1db5
tree4b95f7f16cd3838414a65b2db9f2baf827ad2ac6
parent867e1117692c4c735688b678dbdff7a5e4696d95
swr: conditionally validate vertex buffer state

Vertex buffer state doesn't need to be validated on every call,
only on dirty _NEW_VERTEX or indexed draws.

Unconditional validation was introduced as part of patch 330d0607ed6,
"remove pipe_index_buffer and set_index_buffer", with the expectation
we'd optimize later.

Reviewed-by: Tim Rowley <timothy.o.rowley@intel.com>
src/gallium/drivers/swr/swr_state.cpp