From ae454a03b7d01a08ce6c3bc309f150e0980e093c Mon Sep 17 00:00:00 2001 From: Bas Nieuwenhuizen Date: Wed, 30 Oct 2019 19:52:51 +0100 Subject: [PATCH] radv: Allocate space for temp. semaphore parts. Calculated the number for allocation and did not reserve space .... Fixes: 2117c53b723 "radv: Add temporary datastructure for submissions." Reviewed-by: Samuel Pitoiset --- src/amd/vulkan/radv_device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 5fcc17e6e6d..0ab421b2377 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -3792,6 +3792,7 @@ radv_create_deferred_submission(struct radv_queue *queue, size += submission->buffer_bind_count * sizeof(VkSparseBufferMemoryBindInfo); size += submission->image_opaque_bind_count * sizeof(VkSparseImageOpaqueMemoryBindInfo); size += submission->wait_semaphore_count * sizeof(struct radv_semaphore_part *); + size += temporary_count * sizeof(struct radv_semaphore_part); size += submission->signal_semaphore_count * sizeof(struct radv_semaphore_part *); size += submission->wait_value_count * sizeof(uint64_t); size += submission->signal_value_count * sizeof(uint64_t); -- 2.30.2