summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorGert Wollny <[email protected]>2019-05-27 16:32:40 +0200
committerGert Wollny <[email protected]>2019-06-20 08:50:38 +0200
commit59757dbad68ae51c63bff61277ffdd24a7e85839 (patch)
treef28d768e6cbc765310903f776dec23347ce573f1 /src/util
parentb79366344929c6e477c64a63f246c6db0766a71c (diff)
virgl: Add tweak to apply a swizzle when drawing/blitting to a emulated BGRA texture
With Qemu this final swizzle is not needed, but with vtest it is, i.e. it depends on how a program using virglrenderer uses the surface that is rendered to, hence a tweak is added. v2: Update description and fix spelling (Emil) v3: Send tweak as binary value instead of using strings (Gurchetan) Reviewed-by: Gurchetan Singh <[email protected]>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/xmlpool/t_options.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/xmlpool/t_options.h b/src/util/xmlpool/t_options.h
index e43692c8ef9..2abd2dd0fc4 100644
--- a/src/util/xmlpool/t_options.h
+++ b/src/util/xmlpool/t_options.h
@@ -370,3 +370,7 @@ 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
+#define DRI_CONF_GLES_APPLY_BGRA_DEST_SWIZZLE(def) \
+DRI_CONF_OPT_BEGIN_B(gles_apply_bgra_dest_swizzle, def) \
+ DRI_CONF_DESC(en,gettext("When the BGRA formats are emulated by using swizzled RGBA formats on GLES apply the swizzle when writing")) \
+DRI_CONF_OPT_END