summaryrefslogtreecommitdiffstats
path: root/src/util/xmlpool
diff options
context:
space:
mode:
authorGert Wollny <[email protected]>2019-05-27 16:31:17 +0200
committerGert Wollny <[email protected]>2019-06-20 08:50:38 +0200
commitb79366344929c6e477c64a63f246c6db0766a71c (patch)
treede30a029eddea8e99a5b8d2726ddb7a2ea8f2dc7 /src/util/xmlpool
parent13d4a34c4463c8c68553b8ce18cb1aa76d567ecb (diff)
virgl: Add driconf tweak for emulating BGRA surfaces on GLES
These tweaks are used to fix rendering issues with Valve games and at least also "The Raven Remastered" when run on a GLES host. v2: Fix type in define and remove virgl from driconf option (Emil) v3: Encode tweak binary instead of using strings (Gurchetan) Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Gurchetan Singh <[email protected]>
Diffstat (limited to 'src/util/xmlpool')
-rw-r--r--src/util/xmlpool/t_options.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util/xmlpool/t_options.h b/src/util/xmlpool/t_options.h
index 4396ba79f79..e43692c8ef9 100644
--- a/src/util/xmlpool/t_options.h
+++ b/src/util/xmlpool/t_options.h
@@ -361,5 +361,12 @@ DRI_CONF_OPT_END
#define DRI_CONF_V3D_NONMSAA_TEXTURE_SIZE_LIMIT(def) \
DRI_CONF_OPT_BEGIN_B(v3d_nonmsaa_texture_size_limit, def) \
DRI_CONF_DESC(en,"Report the non-MSAA-only texture size limit") \
+/**
+ * \brief virgl specific configuration options
+ */
+
+#define DRI_CONF_GLES_EMULATE_BGRA(def) \
+DRI_CONF_OPT_BEGIN_B(gles_emulate_bgra, def) \
+ DRI_CONF_DESC(en,gettext("On GLES emulate BGRA formats by using a swizzled RGBA format")) \
DRI_CONF_OPT_END