GPU: Avoid clears for non-simple depth values.

Some drivers don't round depth the same way for a clear vs for drawing,
which can cause mismatches.  We only do this if we see equals-style depth
comparison funcs used in drawing.
This commit is contained in:
Unknown W. Brackets committed 2022-11-08 20:06:08 -08:00
1 parent 818849c4b9
commit 3333f2a5aa
9 files changed
+38

No files matched your search

+1
View File
@@ -278,6 +278,7 @@ void DrawEngineVulkan::ConvertStateToVulkanKey(FramebufferManagerVulkan &fbManag
key.depthTestEnable = true;
key.depthCompareOp = compareOps[gstate.getDepthTestFunction()];
key.depthWriteEnable = gstate.isDepthWriteEnabled();
UpdateEverUsedEqualDepth(gstate.getDepthTestFunction());
} else {
key.depthTestEnable = false;
key.depthWriteEnable = false;