radv: Allocate space for temp. semaphore parts.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 30 Oct 2019 18:52:51 +0000 (19:52 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 30 Oct 2019 19:51:39 +0000 (20:51 +0100)
Calculated the number for allocation and did not
reserve space ....

Fixes: 2117c53b723 "radv: Add temporary datastructure for submissions."
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_device.c

index 5fcc17e6e6d9396253c82db9f34983ab61018954..0ab421b23772b15b914a6b4a2741466b2a9f0047 100644 (file)
@@ -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);