From: Francisco Jerez Date: Tue, 14 Sep 2010 22:38:58 +0000 (+0200) Subject: dri/nv04: Fix PGRAPH_ERRORs when running OA. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aa317a40ced575024924ef5697fc0b96c76e3d90;p=mesa.git dri/nv04: Fix PGRAPH_ERRORs when running OA. --- 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); }