[impeller] use greater equal rather than greater depth compare. (flutter/engine#56310)

Marking ready for review for golden testing

Fixes https://github.com/flutter/flutter/issues/153504
Fixes some other ones too?

It seems like metal and vulkan are already behaving like they are using greater equal depth compare. GL behaves correctly like greater compare, but that leads to rendering bugs. Just switch it to greater equal
This commit is contained in:
Jonah Williams
2024-11-01 14:03:19 -07:00
committed by GitHub
parent 8cced6a0ac
commit 1351637b59

View File

@@ -26,7 +26,7 @@ ContentContextOptions OptionsFromPass(const RenderPass& pass) {
FML_DCHECK(pass.HasDepthAttachment() == pass.HasStencilAttachment());
opts.has_depth_stencil_attachments = has_depth_stencil_attachments;
opts.depth_compare = CompareFunction::kGreater;
opts.depth_compare = CompareFunction::kGreaterEqual;
opts.stencil_mode = ContentContextOptions::StencilMode::kIgnore;
return opts;
}