mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
dzn: Align-up heap sizes when allocating memory
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8895 Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22666>
This commit is contained in:
parent
bdc4e3a5a6
commit
796109cb08
1 changed files with 1 additions and 0 deletions
|
|
@ -2612,6 +2612,7 @@ dzn_device_memory_create(struct dzn_device *device,
|
|||
D3D12_DEFAULT_RESOURCE_PLACEMENT_ALIGNMENT;
|
||||
}
|
||||
|
||||
heap_desc.SizeInBytes = ALIGN_POT(heap_desc.SizeInBytes, heap_desc.Alignment);
|
||||
heap_desc.Flags =
|
||||
dzn_physical_device_get_heap_flags_for_mem_type(pdevice,
|
||||
pAllocateInfo->memoryTypeIndex);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue