summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-04-13 21:20:18 +0200
committerMarek Olšák <[email protected]>2012-04-18 16:19:39 +0200
commitbdb0ad77c20653d01570a4ce44f4200a97fb5f11 (patch)
tree1cd9869785891bf63563037235c925f9383c2a8a /src/mesa
parent462dcf617303a507a1b000f52abbfa3fe695bb95 (diff)
gallium/u_gen_mipmap: don't release vertex buffer at end of frame / in glFlush
There's no reason to do that. The buffer being used for rendering is always mapped as unsynchronized.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/state_tracker/st_cb_flush.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/mesa/state_tracker/st_cb_flush.c b/src/mesa/state_tracker/st_cb_flush.c
index 4cde84a8e5b..4e40a93f5e6 100644
--- a/src/mesa/state_tracker/st_cb_flush.c
+++ b/src/mesa/state_tracker/st_cb_flush.c
@@ -81,11 +81,7 @@ void st_flush( struct st_context *st,
{
FLUSH_CURRENT(st->ctx, 0);
- /* Release any vertex buffers that might potentially be accessed in
- * successive frames:
- */
st_flush_bitmap(st);
- util_gen_mipmap_flush(st->gen_mipmap);
st->pipe->flush( st->pipe, fence );
}