svga: fix the rasterizer state resets
authorZack Rusin <zackr@vmware.com>
Sat, 3 Mar 2012 01:13:38 +0000 (20:13 -0500)
committerZack Rusin <zackr@vmware.com>
Thu, 8 Mar 2012 00:17:27 +0000 (19:17 -0500)
commit831de96db87ee1f16b60d3aff308a423fece3407
tree95db31813bec8ff938d333f9af5dc5ecf6000a50
parentd249bd9cbd38c8da5b3f11d3c50bdbfc612cf1e5
svga: fix the rasterizer state resets

draw module calls back into the driver and sets certain parts
of the state to whatever it needs, unfortunately unless you
get the ordering of calls to draw just right you'll end up
reseting your own driver state. That's what was happening to us
draw module would under certain conditions reset our own driver
state.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/draw/draw_context.h
src/gallium/drivers/svga/svga_pipe_rasterizer.c