diff options
author | Keith Whitwell <[email protected]> | 2007-08-10 12:57:14 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2007-08-10 12:58:26 +0100 |
commit | 5c2c05600081f811e001a81a600778de0fcab85d (patch) | |
tree | ba4e239592e9798ca3e660158c668afd7d145639 /src/mesa/pipe/softpipe/sp_flush.c | |
parent | 9ac1a8d416c2bd50ca10186ca09f5e86f6fa4ce6 (diff) |
Handle glFlush/glFinish through the state tracker.
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_flush.c')
-rw-r--r-- | src/mesa/pipe/softpipe/sp_flush.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/src/mesa/pipe/softpipe/sp_flush.c b/src/mesa/pipe/softpipe/sp_flush.c index aa609469a62..a0bce200ed9 100644 --- a/src/mesa/pipe/softpipe/sp_flush.c +++ b/src/mesa/pipe/softpipe/sp_flush.c @@ -33,6 +33,7 @@ #include "pipe/p_defines.h" #include "sp_flush.h" #include "sp_context.h" +#include "sp_winsys.h" /* There will be actual work to do here. In future we may want a * fence-like interface instead of finish, and perhaps flush will take @@ -49,9 +50,21 @@ softpipe_flush( struct pipe_context *pipe, } void -softpipe_finish(struct pipe_context *pipe) +softpipe_wait_idle(struct pipe_context *pipe) { - /* Just calls into flush() + /* Nothing to do. + * XXX: What about swapbuffers. + * XXX: Even more so - what about fake frontbuffer copies?? */ - softpipe_flush( pipe, 0 ); + struct softpipe_context *softpipe = softpipe_context(pipe); + softpipe->winsys->wait_idle( softpipe->winsys ); +} + + +void +softpipe_flush_frontbuffer( struct pipe_context *pipe ) +{ + struct softpipe_context *softpipe = softpipe_context(pipe); + + softpipe->winsys->flush_frontbuffer( softpipe->winsys ); } |