panfrost: Implement alpha testing natively

Graphics / Mesa 3D Graphics Library / Mesa - Alyssa Rosenzweig [collabora.com] - 13 January 2021 15:17 UTC

On Midgard, we still have to lower on v6+. Passes Piglit ./fbo-mrt-alphatest (saving a cycle in the fragment shader to compare/discard).

275277a2b48 panfrost: Implement alpha testing natively
src/gallium/drivers/panfrost/pan_cmdstream.c | 6 +++++-
src/gallium/drivers/panfrost/pan_context.c | 5 +++--
src/gallium/drivers/panfrost/pan_context.h | 1 +
src/gallium/drivers/panfrost/pan_screen.c | 3 +++
4 files changed, 12 insertions(+), 3 deletions(-)

Upstream: cgit.freedesktop.org


  • Share