dri/nv04: Fix PGRAPH_ERRORs when running OA.
authorFrancisco Jerez <currojerez@riseup.net>
Tue, 14 Sep 2010 22:38:58 +0000 (00:38 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Thu, 16 Sep 2010 17:44:21 +0000 (19:44 +0200)
src/mesa/drivers/dri/nouveau/nv04_state_fb.c

index 5e5e0c587420cac17b93dc782297e4818fc84a9a..b9d232dbb804c85a61c827bd218090ced51c6930 100644 (file)
@@ -110,7 +110,11 @@ nv04_emit_scissor(GLcontext *ctx, int emit)
        OUT_RING(chan, w << 16 | x);
        OUT_RING(chan, h << 16 | y);
 
-       /* Messing with surf3d invalidates some engine state. */
+       /* Messing with surf3d invalidates the engine state. */
+       context_dirty_i(ctx, TEX_ENV, 0);
+       context_dirty_i(ctx, TEX_ENV, 1);
+       context_dirty_i(ctx, TEX_OBJ, 0);
+       context_dirty_i(ctx, TEX_OBJ, 1);
        context_dirty(ctx, CONTROL);
        context_dirty(ctx, BLEND);
 }