From: Axel Davy Date: Sat, 10 Apr 2021 21:53:07 +0000 (+0200) Subject: st/nine: Default tearfree_discard to true X-Git-Tag: upstream/21.2.3~4904 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7fbd7bb7cb2b9b7f4d440f6e695f28fc9ea749b7;p=platform%2Fupstream%2Fmesa.git st/nine: Default tearfree_discard to true With tearfree_discard=false, we tear when rendering fullscreen apps with vsync off. This is a feature in the sense it's the same as the native implementation. This also means lower input lag. However I think most users will prefer to have no tearing, and don't care about sub refresh-rate input lag. Thus it's better to default tearfree_discard to true. Signed-off-by: Axel Davy Acked-by: Timur Kristóf Part-of: --- diff --git a/src/gallium/targets/d3dadapter9/drm.c b/src/gallium/targets/d3dadapter9/drm.c index 88f7b19..1e0b890 100644 --- a/src/gallium/targets/d3dadapter9/drm.c +++ b/src/gallium/targets/d3dadapter9/drm.c @@ -56,7 +56,7 @@ const driOptionDescription __driConfigOptionsNine[] = { DRI_CONF_NINE_THROTTLE(-2) DRI_CONF_NINE_THREADSUBMIT(true) DRI_CONF_NINE_ALLOWDISCARDDELAYEDRELEASE(true) - DRI_CONF_NINE_TEARFREEDISCARD(false) + DRI_CONF_NINE_TEARFREEDISCARD(true) DRI_CONF_NINE_CSMT(-1) DRI_CONF_NINE_DYNAMICTEXTUREWORKAROUND(true) DRI_CONF_NINE_SHADERINLINECONSTANTS(false) diff --git a/src/util/driconf.h b/src/util/driconf.h index 1f6c9f9..7cb1535 100644 --- a/src/util/driconf.h +++ b/src/util/driconf.h @@ -400,7 +400,7 @@ #define DRI_CONF_NINE_TEARFREEDISCARD(def) \ DRI_CONF_OPT_B(tearfree_discard, def, \ - "Whether to make d3d's presentation mode DISCARD (games usually use that mode) Tear Free. If rendering above screen refresh, some frames will get skipped. false by default.") + "Whether to make d3d's presentation mode DISCARD (games usually use that mode) Tear Free. If rendering above screen refresh, some frames will get skipped. true by default.") #define DRI_CONF_NINE_CSMT(def) \ DRI_CONF_OPT_I(csmt_force, def, 0, 0, \