From dc3bb5db8c81e7f08ae12ea5d3ee999e2afcbfd1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michel=20D=C3=A4nzer?= Date: Tue, 6 Sep 2016 11:34:49 +0900 Subject: [PATCH] loader/dri3: Always use at least two back buffers MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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" Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97549 Reviewed-by: Jason Ekstrand Tested-by: Dieter Nützel --- src/loader/loader_dri3_helper.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/loader/loader_dri3_helper.c b/src/loader/loader_dri3_helper.c index 86ae5aecd5f..3ce03524dac 100644 --- a/src/loader/loader_dri3_helper.c +++ b/src/loader/loader_dri3_helper.c @@ -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 -- 2.30.2