[d3d11] Report Tiled Resources Tier 3 again

Partially reverts df5756c9a5.

Turns out that WARP does this, so we might as well expose it too.
This commit is contained in:
Philip Rebohle 2022-09-10 14:25:45 +02:00
parent 2ec25f588f
commit 0f9a042952
2 changed files with 7 additions and 2 deletions

View File

@ -299,7 +299,8 @@ namespace dxvk {
if (FAILED(hr))
return hr;
if (desc.MiscFlags & D3D11_RESOURCE_MISC_TILED)
if ((desc.MiscFlags & D3D11_RESOURCE_MISC_TILED)
&& (m_deviceFeatures.GetTiledResourcesTier() < D3D11_TILED_RESOURCES_TIER_3))
return E_INVALIDARG;
if (!ppTexture3D)

View File

@ -231,7 +231,11 @@ namespace dxvk {
|| m_properties.core.properties.sparseProperties.residencyAlignedMipSize)
return D3D11_TILED_RESOURCES_TIER_1;
return D3D11_TILED_RESOURCES_TIER_2;
if (!m_features.core.features.sparseResidencyImage3D
|| !m_properties.core.properties.sparseProperties.residencyStandard3DBlockShape)
return D3D11_TILED_RESOURCES_TIER_2;
return D3D11_TILED_RESOURCES_TIER_3;
}