r300g: need to validate scissor and viewport state if bind new rasterizer
authorCooper Yuan <cooperyuan@gmail.com>
Sat, 5 Sep 2009 02:26:39 +0000 (10:26 +0800)
committerCooper Yuan <cooperyuan@gmail.com>
Sat, 5 Sep 2009 02:26:39 +0000 (10:26 +0800)
src/gallium/drivers/r300/r300_state.c

index c16cadd04079b778adce3448a6888e99c59dc9e2..5642aed663c09056e33c49085f3a12d7301e0b56 100644 (file)
@@ -429,6 +429,8 @@ static void r300_bind_rs_state(struct pipe_context* pipe, void* state)
 
     r300->rs_state = rs;
     r300->dirty_state |= R300_NEW_RASTERIZER;
+    r300->dirty_state |= R300_NEW_SCISSOR;
+    r300->dirty_state |= R300_NEW_VIEWPORT;
 }
 
 /* Free rasterizer state. */