From aa317a40ced575024924ef5697fc0b96c76e3d90 Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Wed, 15 Sep 2010 00:38:58 +0200 Subject: dri/nv04: Fix PGRAPH_ERRORs when running OA. --- src/mesa/drivers/dri/nouveau/nv04_state_fb.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/mesa/drivers/dri/nouveau/nv04_state_fb.c b/src/mesa/drivers/dri/nouveau/nv04_state_fb.c index 5e5e0c58742..b9d232dbb80 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); } -- cgit v1.2.3