From: Brian Date: Mon, 28 Jan 2008 16:57:51 +0000 (-0700) Subject: Cell: If flushing for swapbuffers, wait for frame completion X-Git-Tag: android-x86-1.6~16^2~1465^2~390^2~2817 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=200dcb4760960f0d9c74a7053de63337e93dd85b;p=android-x86%2Fexternal-mesa.git Cell: If flushing for swapbuffers, wait for frame completion --- diff --git a/src/mesa/pipe/cell/ppu/cell_flush.c b/src/mesa/pipe/cell/ppu/cell_flush.c index b98bb566b12..cf4e676645b 100644 --- a/src/mesa/pipe/cell/ppu/cell_flush.c +++ b/src/mesa/pipe/cell/ppu/cell_flush.c @@ -39,6 +39,9 @@ cell_flush(struct pipe_context *pipe, unsigned flags) { struct cell_context *cell = cell_context(pipe); + if (flags & PIPE_FLUSH_SWAPBUFFERS) + flags |= PIPE_FLUSH_WAIT; + draw_flush( cell->draw ); cell_flush_int(pipe, flags); }