From: Christoph Bumiller Date: Wed, 9 Feb 2011 14:01:23 +0000 (+0100) Subject: nvc0: serialize on PIPE_FLUSH_RENDER_CACHE as well X-Git-Tag: mesa-7.11-rc1~2203 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b6e3130a3b6e40308ddb5d11638d509fe69eb912;p=platform%2Fupstream%2Fmesa.git nvc0: serialize on PIPE_FLUSH_RENDER_CACHE as well Effects were easily visible in piglit/fbo-generatemipmap-formats. --- diff --git a/src/gallium/drivers/nvc0/nvc0_context.c b/src/gallium/drivers/nvc0/nvc0_context.c index 1ebf9e2..20c1a31 100644 --- a/src/gallium/drivers/nvc0/nvc0_context.c +++ b/src/gallium/drivers/nvc0/nvc0_context.c @@ -41,6 +41,10 @@ nvc0_flush(struct pipe_context *pipe, unsigned flags, OUT_RING (chan, 0); BEGIN_RING(chan, RING_3D(TEX_CACHE_CTL), 1); OUT_RING (chan, 0x00); + } else + if ((flags & PIPE_FLUSH_RENDER_CACHE) && !(flags & PIPE_FLUSH_FRAME)) { + BEGIN_RING(chan, RING_3D(SERIALIZE), 1); + OUT_RING (chan, 0); } if (fence) {