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:
parent
6f93d3bf22
commit
b1edf227f8
@ -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)
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user