panfrost: Fix stack shift calculation
authorIcecream95 <ixn@disroot.org>
Fri, 13 Nov 2020 11:12:26 +0000 (00:12 +1300)
committerMarge Bot <eric+marge@anholt.net>
Fri, 13 Nov 2020 20:49:06 +0000 (20:49 +0000)
commit12dec2004ed0b50b0cb0ad7cc635f2a706be9891
tree573981efc7b4541b58edc6861295ab1d7f4a95b8
parent24c553c9753841bcd56409d433aad1e29cc1b3ac
panfrost: Fix stack shift calculation

Fixes flickering in Neverwinter Nights.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3789
Fixes: e6152091ca9 ("panfrost: Use canonical characterization of tls_size")
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7613>
src/panfrost/lib/pan_scratch.c