Browse Source

nvc0: serialize on PIPE_FLUSH_RENDER_CACHE as well

Effects were easily visible in piglit/fbo-generatemipmap-formats.
tags/android-x86-2.2-r2
Christoph Bumiller 14 years ago
parent
commit
b6e3130a3b
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/gallium/drivers/nvc0/nvc0_context.c

+ 4
- 0
src/gallium/drivers/nvc0/nvc0_context.c View File

@@ -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) {

Loading…
Cancel
Save