nvk/heap: Set the right pitch for heap resize copies
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Wed, 3 May 2023 03:01:10 +0000 (22:01 -0500)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Aug 2023 21:32:05 +0000 (21:32 +0000)
commit6334cac28870ec03d5a454a2492af8441bbbfa00
treec88afadcfc350ad49f49ebeb6501641376f4580b
parent729b34be8a135e440672f4534439a1dacda6e011
nvk/heap: Set the right pitch for heap resize copies

Otherwise, once we need to grow past 2^17 B, we attempt to copy two
lines, the hardware errors out, and we get left with a junk heap.
While we're here, re-arrange the code a bit so we keep all the P_FOO
together.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
src/nouveau/vulkan/nvk_heap.c