mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 15:50:17 +01:00
st/mesa: move the st_flush_bitmap_cache call into st_flush
Acked-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11341>
This commit is contained in:
parent
37bf4184db
commit
ee6929a779
1 changed files with 1 additions and 3 deletions
|
|
@ -57,6 +57,7 @@ st_flush(struct st_context *st,
|
|||
*/
|
||||
st_context_free_zombie_objects(st);
|
||||
|
||||
st_flush_bitmap_cache(st);
|
||||
st->pipe->flush(st->pipe, fence, flags);
|
||||
}
|
||||
|
||||
|
|
@ -69,7 +70,6 @@ st_finish(struct st_context *st)
|
|||
{
|
||||
struct pipe_fence_handle *fence = NULL;
|
||||
|
||||
st_flush_bitmap_cache(st);
|
||||
st_flush(st, &fence, PIPE_FLUSH_ASYNC | PIPE_FLUSH_HINT_FINISH);
|
||||
|
||||
if (fence) {
|
||||
|
|
@ -91,8 +91,6 @@ st_glFlush(struct gl_context *ctx)
|
|||
{
|
||||
struct st_context *st = st_context(ctx);
|
||||
|
||||
st_flush_bitmap_cache(st);
|
||||
|
||||
/* Don't call st_finish() here. It is not the state tracker's
|
||||
* responsibilty to inject sleeps in the hope of avoiding buffer
|
||||
* synchronization issues. Calling finish() here will just hide
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue