drirc: Work around ANGLE brokeness

ANGLE is completely broken on certain vendors, see
https://issues.angleproject.org/u/1/issues/431097618

Work around this by spoofing gl vendor.

Cc: mesa-stable
Signed-off-by: Rob Clark <rob.clark@oss.qualcomm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36540>
This commit is contained in:
Rob Clark
2025-08-02 16:35:37 -07:00
committed by Marge Bot
parent 51f2314640
commit b82e49f644
+39
View File
@@ -1260,6 +1260,45 @@ TODO: document the other workarounds.
</application>
</device>
<device driver="msm">
<!--
ANGLE is catastrophically broken, see:
https://issues.angleproject.org/u/1/issues/431097618
This broken codepath is exposed when skia detects vendor
freedreno (as well as closed mali/img/adreno drivers.. maybe
the issue will actually get fixed when a new enough skia+
ANGLE hits the closed drivers on android).
Workaround the issue by spoofing the vendor string so
skia doesn't pick the broken ANGLE codepath. Other
electron apps will have the same problem, and should be
listed here as well.
-->
<application name="Chromium" executable="chromium">
<option name="force_gl_vendor" value="angleisbroken"/>
</application>
<application name="Chromium" executable="chromium-browser">
<option name="force_gl_vendor" value="angleisbroken"/>
</application>
<application name="Chromium" executable="chrome">
<option name="force_gl_vendor" value="angleisbroken"/>
</application>
<application name="VS Code" executable="code">
<option name="force_gl_vendor" value="angleisbroken"/>
</application>
<application name="element-desktop" executable="element-desktop">
<option name="force_gl_vendor" value="angleisbroken"/>
</application>
<application name="vivaldi-bin" executable="vivaldi-bin">
<option name="force_gl_vendor" value="angleisbroken"/>
</application>
<application name="code" executable="vivaldi-bin">
<option name="force_gl_vendor" value="angleisbroken"/>
</application>
</device>
<device driver="turnip">
<!-- Up to DXVK version 2.3.0 -->
<engine engine_name_match="DXVK" engine_versions="0:8400896">