From 460bacc2230d12d8c6454cb08744133810aa5dd7 Mon Sep 17 00:00:00 2001 From: Paulo Zanoni Date: Fri, 15 Mar 2024 11:08:43 -0700 Subject: [PATCH] anv: set shaderFloat64 to true when fp64_workaround_enabled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit According to 00-mesa-defaults.conf, the only game that seems to care about fp64_workaround_enabled right now is Doom Eternal. After some brief testing I couldn't spot any performance difference by setting shaderFloat64 to true. We want to set this to true so that DIRT 5 can work, as it looks at shaderFloat64 and then refuses to launch today. Link: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9882 Reviewed-by: José Roberto de Souza Signed-off-by: Paulo Zanoni Part-of: --- src/intel/vulkan/anv_device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index be178d58ac0..e9297f5e2ce 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -492,7 +492,8 @@ get_features(const struct anv_physical_device *pdevice, .shaderStorageImageArrayDynamicIndexing = true, .shaderClipDistance = true, .shaderCullDistance = true, - .shaderFloat64 = pdevice->info.has_64bit_float, + .shaderFloat64 = pdevice->info.has_64bit_float || + pdevice->instance->fp64_workaround_enabled, .shaderInt64 = true, .shaderInt16 = true, .shaderResourceMinLod = true,