pan/bi: Set the sample ID for blend shader LD_TILE
authorAlyssa Rosenzweig <alyssa@collabora.com>
Wed, 18 Aug 2021 22:08:31 +0000 (22:08 +0000)
committerMarge Bot <eric+marge@anholt.net>
Fri, 20 Aug 2021 20:13:27 +0000 (20:13 +0000)
commit16394dc71a4e78bfeb762ffd05f314b329c17f54
tree5dd583df009b6fafcb4a6af0d16d9ce2f0579129
parent9f19a883bc536374d38f295f26eadeb3e1a56d47
pan/bi: Set the sample ID for blend shader LD_TILE

Use the explicit sample mode and set the sample ID in the pixel indices
structure to the current sample ID. This fixes tilebuffer loads in blend
shaders on multisampled framebuffers.

Make sure the new routine is broken out to a helper for use with ST_TILE
in the next commit.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12478>
src/panfrost/bifrost/bifrost_compile.c