pan/mdg: Use MAX2 to set min_alignment
authorIcecream95 <ixn@disroot.org>
Fri, 10 Dec 2021 10:44:25 +0000 (23:44 +1300)
committerMarge Bot <emma+marge@anholt.net>
Tue, 10 May 2022 13:16:50 +0000 (13:16 +0000)
commitb281843974aa86594288ca3c096eedf9965739f5
treec1c56d0d4ab8efe55b66d1365844edbe7a8d7372
parentb1ecb90941c9b3d9a9780b9dbb264e7b3b097fdb
pan/mdg: Use MAX2 to set min_alignment

If a value is written in a vector CSEL but then written again by other
instructions, it still needs full alignment, so set min_alignment
using MAX2 to avoid ever reducing it.

Fixes: 1798f6bfc33 ("pan/midgard: Fix masks/alignment for 64-bit loads")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16382>
src/panfrost/midgard/midgard_ra.c