projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdc4e3a
)
dzn: Align-up heap sizes when allocating memory
author
Jesse Natalie
<jenatali@microsoft.com>
Mon, 24 Apr 2023 14:19:24 +0000
(07:19 -0700)
committer
Marge Bot
<emma+marge@anholt.net>
Mon, 24 Apr 2023 17:40:47 +0000
(17:40 +0000)
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8895
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22666>
src/microsoft/vulkan/dzn_device.c
patch
|
blob
|
history
diff --git
a/src/microsoft/vulkan/dzn_device.c
b/src/microsoft/vulkan/dzn_device.c
index
860f3ca
..
a223858
100644
(file)
--- 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);