From c19a841fd4a60fef444d9047e19aae788f6a5251 Mon Sep 17 00:00:00 2001 From: Axel Davy Date: Sat, 10 Apr 2021 23:40:20 +0200 Subject: [PATCH] st/nine: Default thread_submit to true MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When rendering fullscreen with vsync on at a rate close to the refresh rate, you can miss pageflips by submitting buffers for pageflip that end up not finished being rendered when the pageflip is due. With Nine in this situation you could get half the refresh rate fps before this patch. Due to the way the presentation backend is implemented, it's not possible to easily detect the situation and adapt (use one more backbuffer, but only in this scenario to not increase input lap when the issue is not present). thread_submit doesn't have this issue. Let's default thread_submit to true. Signed-off-by: Axel Davy Acked-by: Timur Kristóf Part-of: --- src/gallium/targets/d3dadapter9/drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/targets/d3dadapter9/drm.c b/src/gallium/targets/d3dadapter9/drm.c index 7a889a0d623..88f7b197507 100644 --- a/src/gallium/targets/d3dadapter9/drm.c +++ b/src/gallium/targets/d3dadapter9/drm.c @@ -54,7 +54,7 @@ const driOptionDescription __driConfigOptionsNine[] = { DRI_CONF_SECTION_NINE DRI_CONF_NINE_OVERRIDEVENDOR(-1) DRI_CONF_NINE_THROTTLE(-2) - DRI_CONF_NINE_THREADSUBMIT(false) + DRI_CONF_NINE_THREADSUBMIT(true) DRI_CONF_NINE_ALLOWDISCARDDELAYEDRELEASE(true) DRI_CONF_NINE_TEARFREEDISCARD(false) DRI_CONF_NINE_CSMT(-1)