1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-20 10:54:16 +01:00

[d3d9] Enable depth bounds feature, if supported

Only expose it in format checks if the adapter supports the feature also
This commit is contained in:
Joshua Ashton 2020-01-28 01:50:53 +00:00
parent 6f93d3bf22
commit b1edf227f8
2 changed files with 7 additions and 2 deletions

View File

@ -137,8 +137,10 @@ namespace dxvk {
if (CheckFormat == D3D9Format::ATOC && surface)
return D3D_OK;
if (CheckFormat == D3D9Format::NVDB && surface)
return D3D_OK;
if (m_adapter->features().core.features.depthBounds) {
if (CheckFormat == D3D9Format::NVDB && surface)
return D3D_OK;
}
// I really don't want to support this...
if (dmap)

View File

@ -3605,6 +3605,9 @@ namespace dxvk {
// D3D10 level hardware supports this in D3D9 native.
enabled.core.features.fullDrawIndexUint32 = VK_TRUE;
// Enable depth bounds test if we support it.
enabled.core.features.depthBounds = supported.core.features.depthBounds;
return enabled;
}