summaryrefslogtreecommitdiffstats
path: root/src/util/xmlpool/t_options.h
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2017-09-18 11:24:10 +0200
committerNicolai Hähnle <[email protected]>2017-09-18 11:25:20 +0200
commit7a62f8621ac0d0d0604f3bf1c9a492050b44d1e8 (patch)
tree8033a128310a0b4ce0d8215d4fc0afadc2bb882f /src/util/xmlpool/t_options.h
parent8c56c45cd48e940283a8d3e951750c57694718f9 (diff)
radeonsi: allow out-of-order rasterization in commutative blending cases
We do not enable this by default for additive blending, since it slightly breaks OpenGL invariance guarantees due to non-determinism. Still, there may be some applications can benefit from white-listing via the radeonsi_commutative_blend_add drirc setting without any real visible artifacts. Reviewed-by: Marek Olšák <[email protected]> Tested-by: Dieter Nützel <[email protected]>
Diffstat (limited to 'src/util/xmlpool/t_options.h')
-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 c92215183a5..214c7c359ee 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_assume_no_z_fights, def) \
DRI_CONF_DESC(en,gettext("Assume no Z fights (enables aggressive out-of-order rasterization to improve performance; may cause rendering errors)")) \
DRI_CONF_OPT_END
+
+#define DRI_CONF_RADEONSI_COMMUTATIVE_BLEND_ADD(def) \
+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