aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGurchetan Singh <[email protected]>2020-06-15 10:52:57 -0700
committerMarge Bot <[email protected]>2020-06-18 10:35:52 +0000
commit9760a7ed9138b84d83a712afeb0e673399d9e200 (patch)
tree11134d0f142b4f7a39dcb405ba1709b8c1479854
parentc95b250a4c26cd4576af41b5e6262d7bfbfce1f7 (diff)
virgl: apply bgra dest swizzle and add Portal 2
Apply the destination swizzle on GLES games based on HL2 engine. Also add Portal 2 since some people are experiencing issues with that. Reviewed-by: Gert Wollny <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5481>
-rw-r--r--src/util/00-mesa-defaults.conf7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util/00-mesa-defaults.conf b/src/util/00-mesa-defaults.conf
index 2aa3524e47e..c590d088f26 100644
--- a/src/util/00-mesa-defaults.conf
+++ b/src/util/00-mesa-defaults.conf
@@ -654,12 +654,19 @@ TODO: document the other workarounds.
too dark. -->
<application name="Half Life 2" executable="hl2_linux">
<option name="gles_emulate_bgra" value="true" />
+ <option name="gles_apply_bgra_dest_swizzle" value="true"/>
</application>
<application name="Portal" executable="hl2_linux">
<option name="gles_emulate_bgra" value="true" />
+ <option name="gles_apply_bgra_dest_swizzle" value="true"/>
+ </application>
+ <application name="Portal 2" executable="hl2_linux">
+ <option name="gles_emulate_bgra" value="true" />
+ <option name="gles_apply_bgra_dest_swizzle" value="true"/>
</application>
<application name="Left 4 Dead 2" executable="hl2_linux">
<option name="gles_emulate_bgra" value="true" />
+ <option name="gles_apply_bgra_dest_swizzle" value="true"/>
</application>
<application name="Dota 2" executable="dota2">
<option name="gles_emulate_bgra" value="true" />