OSDN Git Service

Cell: If flushing for swapbuffers, wait for frame completion
authorBrian <brian.paul@tungstengraphics.com>
Mon, 28 Jan 2008 16:57:51 +0000 (09:57 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Mon, 28 Jan 2008 18:31:57 +0000 (11:31 -0700)
src/mesa/pipe/cell/ppu/cell_flush.c

index b98bb56..cf4e676 100644 (file)
@@ -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);
 }