virgl: apply bgra dest swizzle and add Portal 2
authorGurchetan Singh <gurchetansingh@chromium.org>
Mon, 15 Jun 2020 17:52:57 +0000 (10:52 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 18 Jun 2020 10:35:52 +0000 (10:35 +0000)
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 <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5481>

src/util/00-mesa-defaults.conf

index 2aa3524e47e2ac73743a6004749dddfc4719ebd7..c590d088f26f86e4aeb14bb08b82af1119e61fb4 100644 (file)
@@ -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" />