mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[dxvk] Use strict rasterization order when depth test is disabled
This commit is contained in:
parent
7d721797fe
commit
3bb7b45c33
@ -283,9 +283,9 @@ namespace dxvk {
|
|||||||
if (m_device->hasOption(DxvkOption::AssumeNoZfight))
|
if (m_device->hasOption(DxvkOption::AssumeNoZfight))
|
||||||
return VK_RASTERIZATION_ORDER_RELAXED_AMD;
|
return VK_RASTERIZATION_ORDER_RELAXED_AMD;
|
||||||
|
|
||||||
if (state.dsDepthCompareOp == VK_COMPARE_OP_NEVER
|
if (state.dsEnableDepthTest && state.dsEnableDepthWrite
|
||||||
|| state.dsDepthCompareOp == VK_COMPARE_OP_LESS
|
&& (state.dsDepthCompareOp == VK_COMPARE_OP_LESS
|
||||||
|| state.dsDepthCompareOp == VK_COMPARE_OP_GREATER)
|
|| state.dsDepthCompareOp == VK_COMPARE_OP_GREATER))
|
||||||
return VK_RASTERIZATION_ORDER_RELAXED_AMD;
|
return VK_RASTERIZATION_ORDER_RELAXED_AMD;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user