panfrost: Allow pixels using discard to be killed
authorAlyssa Rosenzweig <alyssa@collabora.com>
Fri, 10 Jun 2022 16:09:13 +0000 (12:09 -0400)
committerMarge Bot <emma+marge@anholt.net>
Mon, 13 Jun 2022 14:23:55 +0000 (14:23 +0000)
commitc43882ad544af3cddd55278212f11cbd4686da63
treef78e93a325d30ba1e93562e56cba6e14fd25d75c
parent96e7e92f0dca44cc47b22e2e1a60e69eca632873
panfrost: Allow pixels using discard to be killed

info.fs.sidefx considers discard() to be a side effect. That definition is...
dubious at best. It certainly isn't the definition needed for forward pixel
kill. The only reason pixels couldn't be killed by FPK is if the shader has side
effects in the sense of writing to memory. Use that more precise condition so
FPK works more often.

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