From: George Sapountzis Date: Thu, 7 Dec 2006 15:56:47 +0000 (+0200) Subject: Bug 7861: mach64 with render acceleration should restore texture state X-Git-Tag: 062012170305~20022 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c180678d92e6427c60acd4e984c11d27853e1304;p=profile%2Fivi%2Fmesa.git Bug 7861: mach64 with render acceleration should restore texture state RENDER acceleration uses texturing, thus when RENDER acceleration is enabled, the mach64 DRI driver should restore texture state when acquiring the DRI lock. --- diff --git a/src/mesa/drivers/dri/mach64/mach64_lock.c b/src/mesa/drivers/dri/mach64/mach64_lock.c index b214495..26f66f0 100644 --- a/src/mesa/drivers/dri/mach64/mach64_lock.c +++ b/src/mesa/drivers/dri/mach64/mach64_lock.c @@ -82,6 +82,9 @@ void mach64GetLock( mach64ContextPtr mmesa, GLuint flags ) | MACH64_UPLOAD_MISC | MACH64_UPLOAD_CLIPRECTS); + /* EXA render acceleration uses the texture engine, so restore it */ + mmesa->dirty |= (MACH64_UPLOAD_TEXTURE); + if ( sarea->ctx_owner != mmesa->hHWContext ) { sarea->ctx_owner = mmesa->hHWContext; mmesa->dirty = MACH64_UPLOAD_ALL;