diff options
author | Zack Rusin <[email protected]> | 2012-03-02 20:13:38 -0500 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2012-03-07 19:17:27 -0500 |
commit | 831de96db87ee1f16b60d3aff308a423fece3407 (patch) | |
tree | 95db31813bec8ff938d333f9af5dc5ecf6000a50 /src/gallium/drivers/svga | |
parent | d249bd9cbd38c8da5b3f11d3c50bdbfc612cf1e5 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga')
-rw-r--r-- | src/gallium/drivers/svga/svga_pipe_rasterizer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/svga/svga_pipe_rasterizer.c b/src/gallium/drivers/svga/svga_pipe_rasterizer.c index a18845e3b7c..33428004296 100644 --- a/src/gallium/drivers/svga/svga_pipe_rasterizer.c +++ b/src/gallium/drivers/svga/svga_pipe_rasterizer.c @@ -237,11 +237,11 @@ static void svga_bind_rasterizer_state( struct pipe_context *pipe, struct svga_context *svga = svga_context(pipe); struct svga_rasterizer_state *raster = (struct svga_rasterizer_state *)state; - svga->curr.rast = raster; draw_set_rasterizer_state(svga->swtnl.draw, raster ? &raster->templ : NULL, state); - + svga->curr.rast = raster; + svga->dirty |= SVGA_NEW_RAST; } |