panvk: Don't allocate memory for a buffer descriptor in CreateBufferView()

The buffer descriptor is copied to the descriptor set, and there's no
side-band data to allocate in GPU memory.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Christoph Pillmayer <christoph.pillmayer@arm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36385>
This commit is contained in:
Boris Brezillon 2025-12-02 20:08:43 +01:00
parent b5e47ba894
commit c9e94f92a0
2 changed files with 6 additions and 1 deletions

View file

@ -20,7 +20,10 @@
struct panvk_buffer_view {
struct vk_buffer_view vk;
#if PAN_ARCH < 9
struct panvk_priv_mem mem;
#endif
struct {
#if PAN_ARCH >= 9

View file

@ -63,7 +63,6 @@ panvk_per_arch(CreateBufferView)(VkDevice _device,
};
#if PAN_ARCH >= 9
view->mem = panvk_pool_alloc_desc(&device->mempools.rw, BUFFER);
GENX(pan_buffer_texture_emit)(&bview, &view->descs.buf);
#else
view->mem =
@ -122,6 +121,9 @@ panvk_per_arch(DestroyBufferView)(VkDevice _device, VkBufferView bufferView,
if (!view)
return;
#if PAN_ARCH < 9
panvk_pool_free_mem(&view->mem);
#endif
vk_buffer_view_destroy(&device->vk, pAllocator, &view->vk);
}