nv50: fix viewport state update
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Tue, 31 Mar 2009 22:37:36 +0000 (08:37 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 2 Apr 2009 22:33:19 +0000 (08:33 +1000)
src/gallium/drivers/nv50/nv50_state_validate.c

index fc6157dbd09ba9f281eae04ac13f837a497c70eb..c13d3de1cb9ab9ca0c1fdf251b4bee1176aa44f1 100644 (file)
@@ -244,7 +244,7 @@ nv50_state_validate(struct nv50_context *nv50)
        }
 scissor_uptodate:
 
-       if (nv50->dirty & NV50_NEW_VIEWPORT) {
+       if (nv50->dirty & (NV50_NEW_VIEWPORT | NV50_NEW_RASTERIZER)) {
                unsigned bypass;
 
                if (!nv50->rasterizer->pipe.bypass_vs_clip_and_viewport)
@@ -281,6 +281,7 @@ scissor_uptodate:
 
                so_ref(so, &nv50->state.viewport);
                so_ref(NULL, &so);
+               nv50->state.dirty |= NV50_NEW_VIEWPORT;
        }
 viewport_uptodate: