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)
committerBen Skeggs <skeggsb@gmail.com>
Fri, 15 Feb 2008 02:50:23 +0000 (13:50 +1100)
src/mesa/pipe/cell/ppu/cell_flush.c

index b98bb566b12a7d5a66c3671a18971539444a9a49..cf4e676645b8767757ef2338aaff0e35d3497065 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);
 }