diff options
author | Paulo Zanoni <paulo.r.zanoni@intel.com> | 2024-03-15 11:08:43 -0700 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2024-03-23 17:01:17 +0000 |
commit | 460bacc2230d12d8c6454cb08744133810aa5dd7 (patch) | |
tree | 6cd9b55766da62bb09f635f8d623a1bb190b25af | |
parent | cc5e7f8b9b46a693aa498b09525bc44a94fb5bba (diff) |
anv: set shaderFloat64 to true when fp64_workaround_enabled
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 <jose.souza@intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28213>
-rw-r--r-- | src/intel/vulkan/anv_device.c | 3 |
1 files changed, 2 insertions, 1 deletions
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, |