mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
mesa/st: don't call finish in st_glFlush()
It is not the state tracker's responsibilty to inject sleeps and pessimize performance in the hope of avoiding buffer synchronization issues in buggy drivers. Calling finish() here will just hide problems that need to be fixed elsewhere.
This commit is contained in:
parent
7d6478cfcc
commit
af34fa316d
1 changed files with 7 additions and 4 deletions
|
|
@ -117,13 +117,16 @@ static void st_glFlush(GLcontext *ctx)
|
|||
{
|
||||
struct st_context *st = ctx->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
|
||||
* problems that need to be fixed elsewhere.
|
||||
*/
|
||||
st_flush(st, PIPE_FLUSH_RENDER_CACHE | PIPE_FLUSH_FRAME, NULL);
|
||||
|
||||
if (is_front_buffer_dirty(st)) {
|
||||
st_finish(st);
|
||||
display_front_buffer(st);
|
||||
}
|
||||
else {
|
||||
st_flush(st, PIPE_FLUSH_RENDER_CACHE, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue