util/driconf: add workarounds for the Chronicles of Riddick

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24567>
This commit is contained in:
twisted89
2023-08-08 22:19:55 +01:00
committed by Marge Bot
parent 640173cdbb
commit d3e796da6b
10 changed files with 77 additions and 3 deletions
+6
View File
@@ -161,6 +161,12 @@ TODO: document the other workarounds.
<option name="disable_uniform_array_resize" value="true" />
</application>
<application name="The Chronicles of Riddick: Assault on Dark Athena" executable="DarkAthena.exe">
<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>
<application name="Dying Light" executable="DyingLightGame">
<option name="allow_glsl_builtin_variable_redeclaration" value="true" />
</application>
+7
View File
@@ -168,6 +168,13 @@
DRI_CONF_OPT_B(disable_uniform_array_resize, def, \
"Disable the glsl optimisation that resizes uniform arrays")
#define DRI_CONF_ALIAS_SHADER_EXTENSION() \
DRI_CONF_OPT_S_NODEF(alias_shader_extension, "Allow alias for shader extensions")
#define DRI_CONF_ALLOW_VERTEX_TEXTURE_BIAS(def) \
DRI_CONF_OPT_B(allow_vertex_texture_bias, def, \
"Allow GL2 vertex shaders to have access to texture2D/textureCube with bias variants")
#define DRI_CONF_FORCE_GLSL_VERSION(def) \
DRI_CONF_OPT_I(force_glsl_version, def, 0, 999, \
"Force a default GLSL version for shaders that lack an explicit #version line")