Mesa (master): dri/nv04: Fix PGRAPH_ERRORs when running OA.

Francisco Jerez currojerez at kemper.freedesktop.org
Thu Sep 16 17:48:10 UTC 2010


Module: Mesa
Branch: master
Commit: aa317a40ced575024924ef5697fc0b96c76e3d90
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=aa317a40ced575024924ef5697fc0b96c76e3d90

Author: Francisco Jerez <currojerez at riseup.net>
Date:   Wed Sep 15 00:38:58 2010 +0200

dri/nv04: Fix PGRAPH_ERRORs when running OA.

---

 src/mesa/drivers/dri/nouveau/nv04_state_fb.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/nouveau/nv04_state_fb.c b/src/mesa/drivers/dri/nouveau/nv04_state_fb.c
index 5e5e0c5..b9d232d 100644
--- a/src/mesa/drivers/dri/nouveau/nv04_state_fb.c
+++ b/src/mesa/drivers/dri/nouveau/nv04_state_fb.c
@@ -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);
 }




More information about the mesa-commit mailing list