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:
parent
7d721797fe
commit
3bb7b45c33
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user