summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichel Dänzer <[email protected]>2016-09-06 11:34:49 +0900
committerMichel Dänzer <[email protected]>2016-09-06 13:04:48 +0900
commitdc3bb5db8c81e7f08ae12ea5d3ee999e2afcbfd1 (patch)
tree8ebb99719a30f4ef718e8e3b4c4b210e7ee1ef70 /src
parentd0cd504046aa1fde53be0fe6d9f62f32feec4554 (diff)
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" <[email protected]> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97549 Reviewed-by: Jason Ekstrand <[email protected]> Tested-by: Dieter Nützel <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/loader/loader_dri3_helper.c4
1 files changed, 1 insertions, 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