From 68a7ad81e10a5d3b63b53e498077c2a642389424 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Thu, 7 Jun 2018 15:35:24 +0200 Subject: [PATCH] [d3d11] Enable 64-bit math feature We still have DMovc to implement, but it doesn't look like this instruction is required as of now. --- src/d3d11/d3d11_device.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/d3d11/d3d11_device.cpp b/src/d3d11/d3d11_device.cpp index 0b9aa6e2..db8553ea 100644 --- a/src/d3d11/d3d11_device.cpp +++ b/src/d3d11/d3d11_device.cpp @@ -1546,8 +1546,10 @@ namespace dxvk { if (FeatureSupportDataSize != sizeof(D3D11_FEATURE_DATA_DOUBLES)) return E_INVALIDARG; + const VkPhysicalDeviceFeatures& features = m_dxvkDevice->features(); + auto info = static_cast(pFeatureSupportData); - info->DoublePrecisionFloatShaderOps = FALSE; + info->DoublePrecisionFloatShaderOps = features.shaderFloat64 && features.shaderInt64; } return S_OK; case D3D11_FEATURE_FORMAT_SUPPORT: {