Mesa (master): dri/nouveau: Re-emit the BO state when coming back from a software fallback.

Francisco Jerez currojerez at kemper.freedesktop.org
Sun Oct 31 21:13:10 UTC 2010


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

Author: Francisco Jerez <currojerez at riseup.net>
Date:   Sun Oct 31 22:05:16 2010 +0100

dri/nouveau: Re-emit the BO state when coming back from a software fallback.

---

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

diff --git a/src/mesa/drivers/dri/nouveau/nouveau_context.c b/src/mesa/drivers/dri/nouveau/nouveau_context.c
index f681f06..f80aaed 100644
--- a/src/mesa/drivers/dri/nouveau/nouveau_context.c
+++ b/src/mesa/drivers/dri/nouveau/nouveau_context.c
@@ -327,10 +327,12 @@ nouveau_fallback(struct gl_context *ctx, enum nouveau_fallback mode)
 
 	nctx->fallback = MAX2(HWTNL, mode);
 
-	if (mode < SWRAST)
+	if (mode < SWRAST) {
 		nouveau_state_emit(ctx);
-	else
+		nouveau_bo_state_emit(ctx);
+	} else {
 		FIRE_RING(context_chan(ctx));
+	}
 }
 
 static void




More information about the mesa-commit mailing list