pan/bi: Add some zero bytes after shaders on Bifrost
authorIcecream95 <ixn@disroot.org>
Tue, 12 Jan 2021 09:31:55 +0000 (22:31 +1300)
committerMarge Bot <eric+marge@anholt.net>
Wed, 13 Jan 2021 00:11:20 +0000 (00:11 +0000)
commitbfcdc8f1747eabad57449a309be7160dd27605ac
tree8473fe76cc6e90313c778c670d88e1ea51244f5a
parente74b2edcef9bd3aed41b8bb013efd9e771ae647c
pan/bi: Add some zero bytes after shaders on Bifrost

Bifrost will prefetch bytes after the end of shaders, so make sure
these bytes are allocated and zeroed.

Fixes GPU faults in Xonotic.

Suggested-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8428>
src/panfrost/bifrost/bifrost_compile.c