summaryrefslogtreecommitdiffstats
path: root/src/util/xmlpool
diff options
context:
space:
mode:
authorNicholas Kazlauskas <[email protected]>2018-10-23 11:38:49 -0400
committerMichel Dänzer <[email protected]>2018-12-28 16:38:06 +0100
commit7407670036e1acb32cfeb49742a523e056e93e0a (patch)
tree08b3a7fa6fcb32b3713c8085ef136fdda58803bb /src/util/xmlpool
parent759b94038987bb983398cd4b1d2cb1c8f79817a9 (diff)
util: Add adaptive_sync driconf option
This option lets the user decide whether mesa should notify the window manager / DDX driver that the current application is adaptive sync capable. It's off by default. Reviewed-by: Michel Dänzer <[email protected]> Signed-off-by: Nicholas Kazlauskas <[email protected]>
Diffstat (limited to 'src/util/xmlpool')
-rw-r--r--src/util/xmlpool/t_options.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util/xmlpool/t_options.h b/src/util/xmlpool/t_options.h
index e0a30f5fd1d..80ddf0e203e 100644
--- a/src/util/xmlpool/t_options.h
+++ b/src/util/xmlpool/t_options.h
@@ -210,6 +210,11 @@ DRI_CONF_OPT_BEGIN_V(vblank_mode,enum,def,"0:3") \
DRI_CONF_DESC_END \
DRI_CONF_OPT_END
+#define DRI_CONF_ADAPTIVE_SYNC(def) \
+DRI_CONF_OPT_BEGIN_B(adaptive_sync,def) \
+ DRI_CONF_DESC(en,gettext("Adapt the monitor sync to the application performance (when possible)")) \
+DRI_CONF_OPT_END
+
#define DRI_CONF_MESA_GLTHREAD(def) \
DRI_CONF_OPT_BEGIN_B(mesa_glthread, def) \
DRI_CONF_DESC(en,gettext("Enable offloading GL driver work to a separate thread")) \