gallium: Set all state via cso_context in blit/gen_mipmap utils.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Mon, 21 Apr 2008 13:26:33 +0000 (22:26 +0900)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Mon, 21 Apr 2008 13:26:33 +0000 (22:26 +0900)
commit13d8b1b211a803f44ffe325e7eed887cce4abaca
tree82dc6f36b4d827ae3c0f7aa8ddef5304f4529633
parent08717d94619802f7816420be155c0c92fa727109
gallium: Set all state via cso_context in blit/gen_mipmap utils.

cso_restore_* functions are implemented on top of cso_set_*, therefore
they require full knowledge of the current pipe state to work correctly.
Directly calling pipe's set_*_state functions will lead to undefined state.

Also save and restore shaders.
src/gallium/auxiliary/util/u_blit.c
src/gallium/auxiliary/util/u_gen_mipmap.c