summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorAxel Davy <[email protected]>2016-11-19 13:11:15 +0100
committerAxel Davy <[email protected]>2016-12-20 23:44:21 +0100
commit59048e75489e6a8d1a75ed6b9c869bd96886f75c (patch)
tree21dd4a8a69e4e1f43cc0378962f4387d1fb71ef9 /src/mesa
parent06657fa203a46c37042e87d05d741439857156c7 (diff)
st/nine: Add new driconf options to control DISCARD behaviour
See the patch for the new controls added. Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/common/xmlpool/t_options.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/common/xmlpool/t_options.h b/src/mesa/drivers/dri/common/xmlpool/t_options.h
index 341c3763dee..7b78105eb8c 100644
--- a/src/mesa/drivers/dri/common/xmlpool/t_options.h
+++ b/src/mesa/drivers/dri/common/xmlpool/t_options.h
@@ -376,3 +376,13 @@ DRI_CONF_OPT_END
DRI_CONF_OPT_BEGIN(override_vendorid, int, def) \
DRI_CONF_DESC(en,"Define the vendor_id to report. This allows faking another hardware vendor.") \
DRI_CONF_OPT_END
+
+#define DRI_CONF_NINE_ALLOWDISCARDDELAYEDRELEASE(def) \
+DRI_CONF_OPT_BEGIN_B(discard_delayed_release, def) \
+ DRI_CONF_DESC(en,gettext("Whether to allow the display server to release buffers with a delay when using d3d's presentation mode DISCARD. Default to true. Set to false if suffering from lag (thread_submit=true can also help in this situation).")) \
+DRI_CONF_OPT_END
+
+#define DRI_CONF_NINE_TEARFREEDISCARD(def) \
+DRI_CONF_OPT_BEGIN_B(tearfree_discard, def) \
+ DRI_CONF_DESC(en,gettext("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.")) \
+DRI_CONF_OPT_END