panfrost: Add the MALI_WRITES_{Z,S} flags

Graphics / Mesa 3D Graphics Library / Mesa - Boris Brezillon [collabora.com] - 5 February 2020 15:41 UTC

We discovered 2 new shader flags used when a fragment shader updates the depth/stencil value through a ZS writeout. If those flags are not set, the depth/stencil value stored in the depth/stencil tilebuffer remain unchanged.

While at it, rename unknown2 into flags_hi and rename flags into flags_lo.

8ed94d38b41 panfrost: Add the MALI_WRITES_{Z,S} flags
src/gallium/drivers/panfrost/pan_assemble.c | 2 +-
src/gallium/drivers/panfrost/pan_context.c | 12 ++++++------
src/panfrost/include/panfrost-job.h | 14 +++++++++++---
src/panfrost/pandecode/decode.c | 20 ++++++++++++++------
4 files changed, 32 insertions(+), 16 deletions(-)

Upstream: cgit.freedesktop.org


  • Share