pan/mdg: Fix multiple spilt writes in the same bundle
authorIcecream95 <ixn@disroot.org>
Fri, 10 Dec 2021 10:51:06 +0000 (23:51 +1300)
committerMarge Bot <emma+marge@anholt.net>
Tue, 10 May 2022 13:16:50 +0000 (13:16 +0000)
commitc65afe541b764a75da68b6bf83aca60d72f88916
tree5dfcedce4ce2500b205cd7f56fc4f6155aac679c
parent7b9c976c2dabf07050efb1c9d0deb82d57efa944
pan/mdg: Fix multiple spilt writes in the same bundle

If two instructions in a single bundle both write to a spilt
destination, then we need to reuse the fill and spill instructions,
otherwise the value will be overwritten.

This and the rest of this set of Midgard bug fixes were found from a
vertex shader in Firefox WebRender that is used when a video is
clipped, for example by setting the border-radius CSS property.

CC: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16382>
src/panfrost/midgard/midgard_ra.c