Skip to content

panfrost: Fix near/far depth clip

What does this MR do and why?

Fix for #11506 (closed)

eduke32 utilizes GL_DEPTH_CLAMP to disable near/far depth clipping, which in panfrost is implemented by setting the minz/maxz to -/+INFINITY in the viewport. This does not work with Mali, causing all fragments to be clipped.

This MR changes the behavior of panfrost to not touch the minz/maxz values, but rather set depth_cull/depth_clamp appropriately in the depth stencil descriptor and primitive state.

Edited by Lars-Ivar Hesselberg Simonsen

Merge request reports