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 6596b7201011a5bcb14183437bc296dd0f5f93e9..a64967b4b9e5c2b0fcc21eeae88d39cb6421d23e 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 );