panfrost: Check blend enabled state in pan_allow_forward_pixel_to_kill()
authorBoris Brezillon <boris.brezillon@collabora.com>
Fri, 7 Apr 2023 13:16:17 +0000 (15:16 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 3 May 2023 19:02:21 +0000 (19:02 +0000)
commite6bcbd57e36e9b6a6c87deca2aab28b63dfe26cd
treea09817cd9dc5a1ace8b6ef0176f34a3762d693fd
parent300327ba19d921308e5933910f925027538435c4
panfrost: Check blend enabled state in pan_allow_forward_pixel_to_kill()

The shader can write to a specific RT, but the blend descriptor gets
to decide if the RT is really updated. We need to take that into
account when initializing the rt_written local variable in
pan_allow_forward_pixel_to_kill() otherwise we might get inconsistent
results.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Suggested-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22465>
src/gallium/drivers/panfrost/pan_blend_cso.h
src/gallium/drivers/panfrost/pan_cmdstream.c