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:
fd389ad
)
radv/rmv: Fix import memory
author
Friedrich Vock
<friedrich.vock@gmx.de>
Mon, 17 Apr 2023 14:18:37 +0000
(16:18 +0200)
committer
Marge Bot
<emma+marge@anholt.net>
Tue, 25 Apr 2023 16:07:00 +0000
(16:07 +0000)
For some import memory, it is valid to specify zero size.
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22532>
src/amd/vulkan/radv_rmv.c
patch
|
blob
|
history
diff --git
a/src/amd/vulkan/radv_rmv.c
b/src/amd/vulkan/radv_rmv.c
index
a2689d0
..
27f57da
100644
(file)
--- a/
src/amd/vulkan/radv_rmv.c
+++ b/
src/amd/vulkan/radv_rmv.c
@@
-492,6
+492,10
@@
radv_rmv_log_heap_create(struct radv_device *device, VkDeviceMemory heap, bool i
RADV_FROM_HANDLE(radv_device_memory, memory, heap);
+ /* Do not log zero-sized device memory objects. */
+ if (!memory->alloc_size)
+ return;
+
radv_rmv_log_bo_allocate(device, memory->bo, memory->alloc_size, false);
simple_mtx_lock(&device->vk.memory_trace_data.token_mtx);