mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 20:20:18 +01:00
panvk: never require dedicated allocation for images
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32361>
This commit is contained in:
parent
ed64fa034b
commit
dbdaefb6ed
1 changed files with 14 additions and 0 deletions
|
|
@ -430,6 +430,20 @@ panvk_GetImageMemoryRequirements2(VkDevice device,
|
|||
pMemoryRequirements->memoryRequirements.memoryTypeBits = 1;
|
||||
pMemoryRequirements->memoryRequirements.alignment = alignment;
|
||||
pMemoryRequirements->memoryRequirements.size = size;
|
||||
|
||||
vk_foreach_struct_const(ext, pMemoryRequirements->pNext) {
|
||||
switch (ext->sType) {
|
||||
case VK_STRUCTURE_TYPE_MEMORY_DEDICATED_REQUIREMENTS: {
|
||||
VkMemoryDedicatedRequirements *dedicated = (void *)ext;
|
||||
dedicated->requiresDedicatedAllocation = false;
|
||||
dedicated->prefersDedicatedAllocation = dedicated->requiresDedicatedAllocation;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
vk_debug_ignored_stype(ext->sType);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
VKAPI_ATTR void VKAPI_CALL
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue