loader/dri3: Keep current number of back buffers if frame was skipped
authorMichel Dänzer <mdaenzer@redhat.com>
Tue, 6 Oct 2020 15:52:08 +0000 (17:52 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 22 Oct 2020 15:52:33 +0000 (15:52 +0000)
commit16a7cc4d449efa51f9ec2fd47df38a76c12e8e52
treefd95eebbe2b2694b36059ff5251d86d7a02d87df
parent60585fc4e34858aa277286209f3cf61e83770181
loader/dri3: Keep current number of back buffers if frame was skipped

We'd previously take the copy path. If we were actually flipping (in
which case skipped frames are more likely to occur), we'd ping-pong
between a smaller and larger number of back buffers, and frame-rate
could vary / take a dip due to the buffer management overhead.

While I'm not sure this is actually possible to hit at this point, it
definitely will be with the next change.

Cc: mesa-stable
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7033>
src/loader/loader_dri3_helper.c