mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 08:50:13 +01:00
loader/dri3: Always use at least two back buffers
This can make a significant difference for performance with some extreme
test cases such as vblank_mode=0 glxgears.
Fixes: 1e3218bc5b ("loader/dri3: Overhaul dri3_update_num_back")
Cc: "12.0 11.2" <mesa-stable@lists.freedesktop.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97549
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
This commit is contained in:
parent
d0cd504046
commit
dc3bb5db8c
1 changed files with 1 additions and 3 deletions
|
|
@ -70,10 +70,8 @@ dri3_update_num_back(struct loader_dri3_drawable *draw)
|
|||
{
|
||||
if (draw->flipping)
|
||||
draw->num_back = 3;
|
||||
else if (draw->vtable->get_swap_interval(draw) != 0)
|
||||
draw->num_back = 2;
|
||||
else
|
||||
draw->num_back = 1;
|
||||
draw->num_back = 2;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue