Mesa (master): virgl: apply bgra dest swizzle and add Portal 2

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jun 18 10:55:18 UTC 2020


Module: Mesa
Branch: master
Commit: 9760a7ed9138b84d83a712afeb0e673399d9e200
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9760a7ed9138b84d83a712afeb0e673399d9e200

Author: Gurchetan Singh <gurchetansingh at chromium.org>
Date:   Mon Jun 15 10:52:57 2020 -0700

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 <gert.wollny at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5481>

---

 src/util/00-mesa-defaults.conf | 7 +++++++
 1 file changed, 7 insertions(+)

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" />



More information about the mesa-commit mailing list