From bf5476900ada0714a86737ddc96683721bffc605 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Tue, 18 Sep 2018 16:27:40 +0200 Subject: [PATCH] [d3d11] Expose Feature Level 11_1 - We don't actually support the ExtendedResourceSharing feature, but since we currently don't support resource sharing at all, this makes no difference in practice - Likewise, MultisampleRTVWithForcedSampleCountOne is not really supported, as the Vulkan backend will still use the sample count of the color attachments, but should have no effect in practice. - This does not change the fact that Predication and Stream Output are still missing. --- src/d3d11/d3d11_device.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/d3d11/d3d11_device.cpp b/src/d3d11/d3d11_device.cpp index 77d555f8..bd8727dd 100644 --- a/src/d3d11/d3d11_device.cpp +++ b/src/d3d11/d3d11_device.cpp @@ -1143,7 +1143,6 @@ namespace dxvk { if (FeatureSupportDataSize != sizeof(D3D11_FEATURE_DATA_D3D11_OPTIONS)) return E_INVALIDARG; - // TODO implement, most of these are required for FL 11.1 // https://msdn.microsoft.com/en-us/library/windows/desktop/hh404457(v=vs.85).aspx const auto& features = m_dxvkDevice->features(); @@ -1161,7 +1160,7 @@ namespace dxvk { info->MultisampleRTVWithForcedSampleCountOne = TRUE; /* not really */ info->SAD4ShaderInstructions = FALSE; info->ExtendedDoublesShaderInstructions = TRUE; - info->ExtendedResourceSharing = FALSE; + info->ExtendedResourceSharing = TRUE; /* not really */ } return S_OK; case D3D11_FEATURE_ARCHITECTURE_INFO: { @@ -1300,7 +1299,6 @@ namespace dxvk { bool D3D11Device::CheckFeatureLevelSupport( const Rc& adapter, D3D_FEATURE_LEVEL featureLevel) { - // We currently only support 11_0 interfaces if (featureLevel > GetMaxFeatureLevel(adapter)) return false; @@ -1606,7 +1604,7 @@ namespace dxvk { return entry != s_featureLevels.end() ? entry->second - : D3D_FEATURE_LEVEL_11_0; + : D3D_FEATURE_LEVEL_11_1; } }