mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 02:00:12 +01:00
panvk: Don't allocate a TEXTURE descriptor in CreateImageView()
The texture descriptor is stored in a CPU-only template that gets copied to the descriptor set. No need to reserve space in the texture payload BO. Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28104>
This commit is contained in:
parent
40c1d0d322
commit
b59d2a5137
1 changed files with 1 additions and 2 deletions
|
|
@ -116,8 +116,7 @@ panvk_per_arch(CreateImageView)(VkDevice _device,
|
|||
if (view->vk.usage &
|
||||
(VK_IMAGE_USAGE_SAMPLED_BIT | VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT)) {
|
||||
unsigned bo_size =
|
||||
GENX(panfrost_estimate_texture_payload_size)(&view->pview) +
|
||||
pan_size(TEXTURE);
|
||||
GENX(panfrost_estimate_texture_payload_size)(&view->pview);
|
||||
|
||||
view->bo = panvk_priv_bo_create(device, bo_size, 0, pAllocator,
|
||||
VK_SYSTEM_ALLOCATION_SCOPE_OBJECT);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue