panfrost: Move special Z32_S8X24 case out of panfrost_setup_layout()
authorBoris Brezillon <boris.brezillon@collabora.com>
Thu, 25 Mar 2021 17:50:20 +0000 (18:50 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Apr 2021 18:06:37 +0000 (18:06 +0000)
commitf1d4df1cd72d8f0d15c19633572c44ff39e23559
treed7d9681656f785df078fead5d7d436195a831b37
parent50f39908aa876d43b9ca2748d62dfdecc3cff583
panfrost: Move special Z32_S8X24 case out of panfrost_setup_layout()

We are about to move the panfrost_setup_layout() logic out of the
gallium driver, and the Z32_S8X24 split is not mandatory (some GPU
support this format natively). Let's move this special case out of
panfrost_setup_layout() and patch the format of the first plane
instead.

Signed-off-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/10033>
src/gallium/drivers/panfrost/pan_resource.c