From: Bas Nieuwenhuizen Date: Wed, 30 Oct 2019 18:52:51 +0000 (+0100) Subject: radv: Allocate space for temp. semaphore parts. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ae454a03b7d01a08ce6c3bc309f150e0980e093c;p=mesa.git 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 --- 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);