radeonsi: force the MSAA resolve shader to use 1 clause for MSAA loads
authorMarek Olšák <marek.olsak@amd.com>
Sat, 22 Oct 2022 00:30:41 +0000 (20:30 -0400)
committerMarge Bot <emma+marge@anholt.net>
Sat, 29 Oct 2022 18:38:33 +0000 (18:38 +0000)
commit8f1a9a8daeb8ca6aae37c96ac89a95b1b1817bae
tree7bf07d6fa838f77b670da1a83935a8e7a6ffed8a
parent0ac37b595a7f6ae135b9c47d6ebcaa133323ff65
radeonsi: force the MSAA resolve shader to use 1 clause for MSAA loads

LLVM can't keep consecutive loads in a clause.

Using the optimization barrier for sample indices produces the optimal code.
Deduced by trial and error.

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Mihai Preda <mhpreda@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19243>
src/gallium/drivers/radeonsi/si_shaderlib_nir.c