From 796109cb08c5246400cd45d998d7babf7b0612c3 Mon Sep 17 00:00:00 2001 From: Jesse Natalie Date: Mon, 24 Apr 2023 07:19:24 -0700 Subject: [PATCH] dzn: Align-up heap sizes when allocating memory Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8895 Part-of: --- src/microsoft/vulkan/dzn_device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/microsoft/vulkan/dzn_device.c b/src/microsoft/vulkan/dzn_device.c index 860f3ca5d28..a22385845c3 100644 --- a/src/microsoft/vulkan/dzn_device.c +++ b/src/microsoft/vulkan/dzn_device.c @@ -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);