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

Author: Jonathan White <[EMAIL PROTECTED]>
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 );

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to