llvmpipe: Treat state changes systematically.
authorJosé Fonseca <jfonseca@vmware.com>
Sat, 26 Dec 2009 15:21:16 +0000 (15:21 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Sat, 26 Dec 2009 21:06:46 +0000 (21:06 +0000)
commit080703e398f737b71336312fd3dc8d6f38f61e51
tree5c3348ba2886991aac449e8ee8754371fbb67cce
parentc4ac1f8299ddc3b60f7f32c58c0310deacac22c6
llvmpipe: Treat state changes systematically.

That is:
- check for no op
- update/flush draw module
- update bound state and mark it as dirty

In particular flushing the draw module is important since it may contain
unflushed primitives which would otherwise be draw with wrong state.
src/gallium/drivers/llvmpipe/lp_state_blend.c
src/gallium/drivers/llvmpipe/lp_state_fs.c
src/gallium/drivers/llvmpipe/lp_state_rasterizer.c
src/gallium/drivers/llvmpipe/lp_state_vs.c