chore: Update Valve mesa config patch for latest build

This commit is contained in:
Kyle Gospodnetich 2023-10-01 20:23:03 -07:00
parent fe5311e56f
commit 78ae69e54d

View File

@ -1,5 +1,5 @@
diff --git a/src/util/00-mesa-defaults.conf b/src/util/00-mesa-defaults.conf
index 2b45eda..0cf8099 100644
index 948c1ef..abe62c8 100644
--- a/src/util/00-mesa-defaults.conf
+++ b/src/util/00-mesa-defaults.conf
@@ -166,6 +166,12 @@ TODO: document the other workarounds.
@ -7,7 +7,7 @@ index 2b45eda..0cf8099 100644
</application>
+ <application name="The Chronicles of Riddick: Assault on Dark Athena" executable="DarkAthena.exe">
+ <option name="disable_uniform_array_resize" value="true" />
+ <option name="disable_uniform_array_resize" value="true" />
+ <option name="alias_shader_extension" value="GL_ATI_shader_texture_lod:GL_ARB_shader_texture_lod" />
+ <option name="allow_vertex_texture_bias" value="true" />
+ </application>
@ -15,7 +15,7 @@ index 2b45eda..0cf8099 100644
<application name="Dying Light" executable="DyingLightGame">
<option name="allow_glsl_builtin_variable_redeclaration" value="true" />
</application>
@@ -364,6 +370,16 @@ TODO: document the other workarounds.
@@ -364,6 +370,11 @@ TODO: document the other workarounds.
<option name="lower_depth_range_rate" value="0.8" />
</application>
@ -24,15 +24,10 @@ index 2b45eda..0cf8099 100644
+ <option name="lower_depth_range_rate" value="0.8" />
+ </application>
+
+ <application name="Penumbra: Overture" executable="Penumbra.exe">
+ <!-- https://gitlab.freedesktop.org/mesa/mesa/-/issues/8425 -->
+ <option name="allow_multisampled_copyteximage" value="true" />
+ </application>
+
<!-- Workarounds for SPECviewperf relying on invalid / non-conformant
OpenGL behavior. Older SPECviewperf versions might also need this.
-->
@@ -713,6 +729,7 @@ TODO: document the other workarounds.
<application name="Penumbra: Overture" executable="Penumbra.exe">
<!-- https://gitlab.freedesktop.org/mesa/mesa/-/issues/8425 -->
<option name="allow_multisampled_copyteximage" value="true" />
@@ -718,6 +729,7 @@ TODO: document the other workarounds.
<application name="gnome-shell" executable="gnome-shell">
<option name="adaptive_sync" value="false" />
<option name="v3d_nonmsaa_texture_size_limit" value="true" />
@ -40,20 +35,10 @@ index 2b45eda..0cf8099 100644
</application>
<application name="Desktop — Plasma" executable="plasmashell">
<option name="adaptive_sync" value="false" />
@@ -908,6 +925,49 @@ TODO: document the other workarounds.
<!-- https://gitlab.freedesktop.org/mesa/mesa/-/issues/5437 -->
<option name="vk_dont_care_as_load" value="true" />
@@ -923,6 +935,39 @@ TODO: document the other workarounds.
<option name="vk_x11_override_min_image_count" value="3" />
</application>
+
+ <!-- Path of Exile stops with "unsupported backbuffer count" when more than
+ 3 swapchain image are reported. -->
+ <application name="Path of Exile" executable="PathOfExile_x64Steam.exe">
+ <option name="vk_x11_override_min_image_count" value="3" />
+ </application>
+ <application name="Path of Exile" executable="PathOfExileSteam.exe">
+ <option name="vk_x11_override_min_image_count" value="3" />
+ </application>
+
+ <!-- Disable fp16 support for browsers, since there is too much
+ broken WebGL out there that uses the wrong precision.
+ Bonus workaround for Firefox bug #1845309. -->
@ -90,35 +75,10 @@ index 2b45eda..0cf8099 100644
</device>
<!-- vmwgfx doesn't like full buffer swaps and can't sync to vertical retraces.-->
<device driver="vmwgfx">
@@ -1016,6 +1076,11 @@ TODO: document the other workarounds.
<option name="mesa_glthread" value="false"/>
@@ -1104,6 +1149,25 @@ TODO: document the other workarounds.
<application name="Cyberpunk 2077" executable="Cyberpunk2077.exe">
<option name="force_vk_vendor" value="-1" />
</application>
+ <application name="Borderlands 2 (Native, OpenGL, 32bit)" executable="Borderlands2">
+ <!-- https://gitlab.freedesktop.org/mesa/mesa/-/issues/9205 -->
+ <option name="glsl_correct_derivatives_after_discard" value="true" />
+ </application>
+
<!-- GL_POINT_SMOOTH is used in Quake II to render particles -->
<application name="Quake II" executable="quake2-engine">
<option name="zink_emulate_point_smooth" value="true"/>
@@ -1026,6 +1091,9 @@ TODO: document the other workarounds.
<application name="Quake II (wine)" executable="quake2.exe">
<option name="zink_emulate_point_smooth" value="true"/>
</application>
+ <application name="Tomb Raider 2013" executable="TombRaider">
+ <option name="zink_shader_object_enable" value="true" />
+ </application>
</device>
<device driver="iris">
<application name="Middle Earth: Shadow of Mordor" executable="ShadowOfMordor">
@@ -1078,6 +1146,28 @@ TODO: document the other workarounds.
<application name="NieR:Automata" executable="NieRAutomata.exe">
<option name="limit_trig_input_range" value="true" />
</application>
+ <application name="Cyberpunk 2077" executable="Cyberpunk2077.exe">
+ <option name="force_vk_vendor" value="-1" />
+ </application>
+ <application name="Cyberpunk 2077" executable="Cyberpunk2077.exe">
+ <!--
+ Cyberpunk 2077 uses a watchdog thread to terminate
@ -138,35 +98,14 @@ index 2b45eda..0cf8099 100644
+ <application name="Hogwarts Legacy" executable="HogwartsLegacy.exe">
+ <option name="force_vk_vendor" value="-1" />
+ </application>
<application name="DEATH STRANDING" executable="ds.exe">
<option name="force_vk_vendor" value="-1" />
</application>
<!--
Disable 16-bit feature on zink and angle so that GLES mediump doesn't
lower to our inefficent 16-bit shader support. No need to do so for
diff --git a/src/util/00-radv-defaults.conf b/src/util/00-radv-defaults.conf
index f127955..6e6f77a 100644
index 9434dba..3c3ae56 100644
--- a/src/util/00-radv-defaults.conf
+++ b/src/util/00-radv-defaults.conf
@@ -105,6 +105,7 @@ Application bugs worked around in this file:
<option name="radv_override_uniform_offset_alignment" value="16" />
<option name="radv_disable_shrink_image_store" value="true" />
<option name="radv_invariant_geom" value="true" />
+ <option name="dual_color_blend_by_location" value="true" />
</application>
<application name="DOOM VFR" application_name_match="DOOM_VFR">
@@ -156,6 +157,12 @@ Application bugs worked around in this file:
<option name="radv_app_layer" value="metroexodus" />
</application>
+ <application name="Hellblade: Senua's Sacrifice" application_name_match="HellbladeGame-Win64-Shipping.exe">
+ <!-- RT shaders in Hellblade: Senua's Sacrifice cause misrenders because they assume full subgroups.
+ This is only guaranteed with wave64, so force wave64 on for this game. -->
+ <option name="radv_rt_wave64" value="true" />
+ </application>
+
<!-- OpenGL Game workarounds (zink) -->
<application name="Black Geyser: Couriers of Darkness" executable="BlackGeyser.x86_64">
<option name="radv_zero_vram" value="true" />
@@ -188,5 +195,9 @@ Application bugs worked around in this file:
@@ -186,5 +186,9 @@ Application bugs worked around in this file:
<application name="Rocket League" executable="RocketLeague">
<option name="radv_zero_vram" value="true" />
</application>