mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[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.
This commit is contained in:
parent
d9009efd22
commit
bf5476900a
@ -1143,7 +1143,6 @@ namespace dxvk {
|
|||||||
if (FeatureSupportDataSize != sizeof(D3D11_FEATURE_DATA_D3D11_OPTIONS))
|
if (FeatureSupportDataSize != sizeof(D3D11_FEATURE_DATA_D3D11_OPTIONS))
|
||||||
return E_INVALIDARG;
|
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
|
// https://msdn.microsoft.com/en-us/library/windows/desktop/hh404457(v=vs.85).aspx
|
||||||
const auto& features = m_dxvkDevice->features();
|
const auto& features = m_dxvkDevice->features();
|
||||||
|
|
||||||
@ -1161,7 +1160,7 @@ namespace dxvk {
|
|||||||
info->MultisampleRTVWithForcedSampleCountOne = TRUE; /* not really */
|
info->MultisampleRTVWithForcedSampleCountOne = TRUE; /* not really */
|
||||||
info->SAD4ShaderInstructions = FALSE;
|
info->SAD4ShaderInstructions = FALSE;
|
||||||
info->ExtendedDoublesShaderInstructions = TRUE;
|
info->ExtendedDoublesShaderInstructions = TRUE;
|
||||||
info->ExtendedResourceSharing = FALSE;
|
info->ExtendedResourceSharing = TRUE; /* not really */
|
||||||
} return S_OK;
|
} return S_OK;
|
||||||
|
|
||||||
case D3D11_FEATURE_ARCHITECTURE_INFO: {
|
case D3D11_FEATURE_ARCHITECTURE_INFO: {
|
||||||
@ -1300,7 +1299,6 @@ namespace dxvk {
|
|||||||
bool D3D11Device::CheckFeatureLevelSupport(
|
bool D3D11Device::CheckFeatureLevelSupport(
|
||||||
const Rc<DxvkAdapter>& adapter,
|
const Rc<DxvkAdapter>& adapter,
|
||||||
D3D_FEATURE_LEVEL featureLevel) {
|
D3D_FEATURE_LEVEL featureLevel) {
|
||||||
// We currently only support 11_0 interfaces
|
|
||||||
if (featureLevel > GetMaxFeatureLevel(adapter))
|
if (featureLevel > GetMaxFeatureLevel(adapter))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
@ -1606,7 +1604,7 @@ namespace dxvk {
|
|||||||
|
|
||||||
return entry != s_featureLevels.end()
|
return entry != s_featureLevels.end()
|
||||||
? entry->second
|
? entry->second
|
||||||
: D3D_FEATURE_LEVEL_11_0;
|
: D3D_FEATURE_LEVEL_11_1;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user