Mesa (master): nvc0: serialize on PIPE_FLUSH_RENDER_CACHE as well
Christoph Bumiller
chrisbmr at kemper.freedesktop.org
Wed Feb 9 15:05:54 UTC 2011
Module: Mesa
Branch: master
Commit: b6e3130a3b6e40308ddb5d11638d509fe69eb912
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b6e3130a3b6e40308ddb5d11638d509fe69eb912
Author: Christoph Bumiller <e0425955 at student.tuwien.ac.at>
Date: Wed Feb 9 15:01:23 2011 +0100
nvc0: serialize on PIPE_FLUSH_RENDER_CACHE as well
Effects were easily visible in piglit/fbo-generatemipmap-formats.
---
src/gallium/drivers/nvc0/nvc0_context.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
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) {
More information about the mesa-commit
mailing list