panfrost: Move early-z decision earlier
authorAlyssa Rosenzweig <alyssa@collabora.com>
Fri, 14 May 2021 22:50:23 +0000 (18:50 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 18 May 2021 22:51:56 +0000 (22:51 +0000)
commit00e3705f60da6d4b7b92b0f1e03729c70f9f989d
treee05889fb141c5285ebd07b9e6c46ec61d742fdb0
parentc05e04d5303fbd6c3d273f28260aca40ae37f195
panfrost: Move early-z decision earlier

These were already grouped nicely, just never got used. I also added
coverage writes to the list of reasons not to use early-z for
completeness. At the moment this doesn't do anything since this is a
Midgard flag and we haven't hooked up coverage writes on Midgard.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10869>
src/gallium/drivers/panfrost/pan_cmdstream.c
src/panfrost/lib/pan_shader.c
src/panfrost/util/pan_ir.h