mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2025-12-20 04:40:07 +01:00
vulkan-renderer: fix VkMemoryDedicatedRequirements usage
This needs to extend the VkMemoryRequirements2 struct, not
VkImageMemoryRequirementsInfo2.
Fixes: ad0f4cf9 ("vulkan-renderer: make dmabuf import dedicated allocation optional")
Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
This commit is contained in:
parent
12334b3e75
commit
1a868b7244
1 changed files with 1 additions and 1 deletions
|
|
@ -3332,7 +3332,7 @@ import_dmabuf(struct vulkan_renderer *vr,
|
|||
.sType = VK_STRUCTURE_TYPE_MEMORY_DEDICATED_REQUIREMENTS,
|
||||
};
|
||||
if (vulkan_device_has(vr, EXTENSION_KHR_DEDICATED_ALLOCATION))
|
||||
pnext(&mem_reqs_info, &mem_dedicated_req);
|
||||
pnext(&mem_reqs, &mem_dedicated_req);
|
||||
|
||||
vr->get_image_memory_requirements2(vr->dev, &mem_reqs_info, &mem_reqs);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue