summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-10-03 19:28:48 +0200
committerMarek Olšák <[email protected]>2017-10-06 02:56:11 +0200
commitc4d1a199f8379b3982a53fb18fe2b50fafd682df (patch)
tree1ff4ed86212d6f43cd56a3e98fc25ac8c4ecfb58 /src/util
parent15d918e46faf08be018394747f019b082871dccf (diff)
radeonsi: add a drirc workaround for HTILE corruption in ARK: Survival Evolved
v2: use DB_META | PS_PARTIAL_FLUSH Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102955 Reviewed-by: Samuel Pitoiset <[email protected]> (v1) Reviewed-by: Nicolai Hähnle <[email protected]> (v1)
Diffstat (limited to 'src/util')
-rw-r--r--src/util/drirc5
-rw-r--r--src/util/xmlpool/t_options.h5
2 files changed, 10 insertions, 0 deletions
diff --git a/src/util/drirc b/src/util/drirc
index 0bedeef9a3c..700402c6301 100644
--- a/src/util/drirc
+++ b/src/util/drirc
@@ -235,4 +235,9 @@ TODO: document the other workarounds.
<option name="glx_disable_oml_sync_control" value="true" />
</application>
</device>
+ <device driver="radeonsi">
+ <application name="ARK: Survival Evolved (and unintentionally the UE4 demo template)" executable="ShooterGame">
+ <option name="radeonsi_clear_db_meta_before_clear" value="true" />
+ </application>
+ </device>
</driconf>
diff --git a/src/util/xmlpool/t_options.h b/src/util/xmlpool/t_options.h
index 64477c5ed65..957ed615048 100644
--- a/src/util/xmlpool/t_options.h
+++ b/src/util/xmlpool/t_options.h
@@ -443,3 +443,8 @@ DRI_CONF_OPT_END
DRI_CONF_OPT_BEGIN_B(radeonsi_commutative_blend_add, def) \
DRI_CONF_DESC(en,gettext("Commutative additive blending optimizations (may cause rendering errors)")) \
DRI_CONF_OPT_END
+
+#define DRI_CONF_RADEONSI_CLEAR_DB_META_BEFORE_CLEAR(def) \
+DRI_CONF_OPT_BEGIN_B(radeonsi_clear_db_meta_before_clear, def) \
+ DRI_CONF_DESC(en,"Clear DB metadata cache before fast depth clear") \
+DRI_CONF_OPT_END