1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-29 17:52:18 +01:00

[dxvk] Use strict rasterization order when depth test is disabled

This commit is contained in:
Philip Rebohle 2018-01-19 09:01:28 +01:00
parent 7d721797fe
commit 3bb7b45c33
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -283,9 +283,9 @@ namespace dxvk {
if (m_device->hasOption(DxvkOption::AssumeNoZfight))
return VK_RASTERIZATION_ORDER_RELAXED_AMD;
if (state.dsDepthCompareOp == VK_COMPARE_OP_NEVER
|| state.dsDepthCompareOp == VK_COMPARE_OP_LESS
|| state.dsDepthCompareOp == VK_COMPARE_OP_GREATER)
if (state.dsEnableDepthTest && state.dsEnableDepthWrite
&& (state.dsDepthCompareOp == VK_COMPARE_OP_LESS
|| state.dsDepthCompareOp == VK_COMPARE_OP_GREATER))
return VK_RASTERIZATION_ORDER_RELAXED_AMD;
}