Commit bd6f585a authored by Yusuf Khan's avatar Yusuf Khan
Browse files

nvk: advertise correct align for image memory requirments



Signed-off-by: Yusuf Khan's avatarYusuf Khan <yusisamerican@gmail.com>
parent c20d433f
Pipeline #675643 waiting for manual action with stages
in 19 seconds
......@@ -331,11 +331,9 @@ nvk_GetImageMemoryRequirements2(VkDevice _device,
VK_FROM_HANDLE(nvk_device, device, _device);
VK_FROM_HANDLE(nvk_image, image, pInfo->image);
uint32_t memory_types = (1 << device->pdev->mem_type_cnt) - 1;
// TODO hope for the best?
pMemoryRequirements->memoryRequirements.memoryTypeBits = memory_types;
pMemoryRequirements->memoryRequirements.alignment = 0x1000;
pMemoryRequirements->memoryRequirements.memoryTypeBits = BITFIELD_MASK(device->pdev->mem_type_cnt);
pMemoryRequirements->memoryRequirements.alignment = image->mem->bo->align;
pMemoryRequirements->memoryRequirements.size = image->nil.size_B;
vk_foreach_struct_const(ext, pMemoryRequirements->pNext) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment