cell: Added check for PIPE_FLUSH_RENDER_CACHE to cell_flush to fix black blocks...
authorJonathan White <jwhite@tungstengraphics.com>
Thu, 30 Oct 2008 17:22:20 +0000 (11:22 -0600)
committerJonathan White <jwhite@tungstengraphics.com>
Thu, 30 Oct 2008 17:22:38 +0000 (11:22 -0600)
src/gallium/drivers/cell/ppu/cell_flush.c

index 6596b72..a64967b 100644 (file)
@@ -49,7 +49,7 @@ cell_flush(struct pipe_context *pipe, unsigned flags,
       flags |= CELL_FLUSH_WAIT;
    }
 
-   if (flags & PIPE_FLUSH_SWAPBUFFERS)
+   if (flags & (PIPE_FLUSH_SWAPBUFFERS | PIPE_FLUSH_RENDER_CACHE))
       flags |= CELL_FLUSH_WAIT;
 
    draw_flush( cell->draw );