loader/dri3: Always use at least two back buffers
authorMichel Dänzer <michel.daenzer@amd.com>
Tue, 6 Sep 2016 02:34:49 +0000 (11:34 +0900)
committerMichel Dänzer <michel@daenzer.net>
Tue, 6 Sep 2016 04:04:48 +0000 (13:04 +0900)
commitdc3bb5db8c81e7f08ae12ea5d3ee999e2afcbfd1
tree8ebb99719a30f4ef718e8e3b4c4b210e7ee1ef70
parentd0cd504046aa1fde53be0fe6d9f62f32feec4554
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: 1e3218bc5ba2 ("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>
src/loader/loader_dri3_helper.c