pan/bi: Align accesses with packed TLS
authorAlyssa Rosenzweig <alyssa@collabora.com>
Thu, 16 Jun 2022 23:14:58 +0000 (19:14 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 21 Jun 2022 22:42:34 +0000 (22:42 +0000)
commit1a882ecdab06d3cf3786698d23eb015c2baa332a
treec3f0fa49e0a98ced8e78836aa72605ee945097ca
parent5ee1179c946a2710e6621192fe8f0cfbf49d368d
pan/bi: Align accesses with packed TLS

When lowering vars to scratch, we need to be careful with alignment on Valhall,
where packed TLS access must not straddle a 16-byte boundary. Fixes regressions
when enabling indirect access to temps on Valhall.

Fixes: 6761dbf8915 ("panfrost: Use packed TLS on Valhall")
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17101>
src/panfrost/bifrost/bifrost_compile.c