From b7bc51c3bdf11158f2bd910d8c5f4ad00160d8ba Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Sun, 15 Sep 2019 14:21:25 +0200 Subject: [PATCH] [d3d11] Use shaderStorageImageReadWithoutFormat for typed UAV loads --- src/d3d11/d3d11_device.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/d3d11/d3d11_device.cpp b/src/d3d11/d3d11_device.cpp index e87c46124..4a6f41454 100644 --- a/src/d3d11/d3d11_device.cpp +++ b/src/d3d11/d3d11_device.cpp @@ -1367,9 +1367,11 @@ namespace dxvk { if (FeatureSupportDataSize != sizeof(D3D11_FEATURE_DATA_D3D11_OPTIONS2)) return E_INVALIDARG; + const auto& features = m_dxvkDevice->features(); + auto info = static_cast(pFeatureSupportData); info->PSSpecifiedStencilRefSupported = FALSE; // TODO - info->TypedUAVLoadAdditionalFormats = FALSE; // TODO + info->TypedUAVLoadAdditionalFormats = features.core.features.shaderStorageImageReadWithoutFormat; info->ROVsSupported = FALSE; info->ConservativeRasterizationTier = D3D11_CONSERVATIVE_RASTERIZATION_NOT_SUPPORTED; info->TiledResourcesTier = D3D11_TILED_RESOURCES_NOT_SUPPORTED; @@ -1591,6 +1593,7 @@ namespace dxvk { enabled.core.features.multiDrawIndirect = supported.core.features.multiDrawIndirect; enabled.core.features.shaderFloat64 = supported.core.features.shaderFloat64; enabled.core.features.shaderInt64 = supported.core.features.shaderInt64; + enabled.core.features.shaderStorageImageReadWithoutFormat = supported.core.features.shaderStorageImageReadWithoutFormat; enabled.core.features.tessellationShader = VK_TRUE; }