nvk: Handle zero-sized sparse buffers
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Wed, 4 Oct 2023 20:02:20 +0000 (15:02 -0500)
committerFaith Ekstrand <faith.ekstrand@collabora.com>
Thu, 5 Oct 2023 01:15:54 +0000 (20:15 -0500)
commit07744ba67ed551074c7519e18c9bcaddc8b01149
tree22995a46645aac3b58dfdc530ca910daa285c644
parent20e8760c75170f477cc1c13808e05b6576bb4d4d
nvk: Handle zero-sized sparse buffers

In the zero case, we don't want to allocate any VMA.

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