aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_cb_flush.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-11-07 16:07:17 -0700
committerBrian <[email protected]>2007-11-07 16:08:04 -0700
commit10c62bf0683437672c83339138a6802d56aeca8f (patch)
treecdf17f1ce6ed6d6c96132013752c8f365aa41e72 /src/mesa/state_tracker/st_cb_flush.c
parent03cfeb31af7834c2b2701ad25ec39f8375df6c96 (diff)
Remove context dependencies in winsys layer.
The winsys object is now per-screen and shared by multiple contexts. The regionPool is now part of the i915 winsys layer. The winsys wait_idle() and flush_frontbuffer() funcs will get more attention...
Diffstat (limited to 'src/mesa/state_tracker/st_cb_flush.c')
-rw-r--r--src/mesa/state_tracker/st_cb_flush.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_cb_flush.c b/src/mesa/state_tracker/st_cb_flush.c
index 819957a1ee6..6354306e752 100644
--- a/src/mesa/state_tracker/st_cb_flush.c
+++ b/src/mesa/state_tracker/st_cb_flush.c
@@ -71,7 +71,8 @@ void st_flush( struct st_context *st )
/* Hook for copying "fake" frontbuffer if necessary:
*/
- st->pipe->winsys->flush_frontbuffer( st->pipe->winsys, front_surf );
+ st->pipe->winsys->flush_frontbuffer( st->pipe->winsys, front_surf,
+ st->pipe->private );
st->flags.frontbuffer_dirty = 0;
}
}
@@ -94,7 +95,7 @@ static void st_Finish(GLcontext *ctx)
struct st_context *st = ctx->st;
st_flush( st );
- st->pipe->winsys->wait_idle( st->pipe->winsys );
+ st->pipe->winsys->wait_idle( st->pipe->winsys, st->pipe->private );
}