Mesa (gallium-0.2): cell: Added check for PIPE_FLUSH_RENDER_CACHE to cell_flush to fix black blocks during st_readpixels due to a flush wait not happening in order to allow any previous rendering to complete .

Jonathan White jwhitetg at kemper.freedesktop.org
Thu Oct 30 17:19:10 UTC 2008


Module: Mesa
Branch: gallium-0.2
Commit: 157ddc14183807834068687f02c67b66acf9effa
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=157ddc14183807834068687f02c67b66acf9effa

Author: Jonathan White <jwhite at tungstengraphics.com>
Date:   Thu Oct 30 11:22:20 2008 -0600

cell:  Added check for PIPE_FLUSH_RENDER_CACHE to cell_flush to fix black blocks during st_readpixels due to a flush wait not happening in order to allow any previous rendering to complete.

---

 src/gallium/drivers/cell/ppu/cell_flush.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/cell/ppu/cell_flush.c b/src/gallium/drivers/cell/ppu/cell_flush.c
index 6596b72..a64967b 100644
--- a/src/gallium/drivers/cell/ppu/cell_flush.c
+++ b/src/gallium/drivers/cell/ppu/cell_flush.c
@@ -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 );




More information about the mesa-commit mailing list