Mesa (master): radv: Allocate space for temp. semaphore parts.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Oct 30 19:55:30 UTC 2019


Module: Mesa
Branch: master
Commit: ae454a03b7d01a08ce6c3bc309f150e0980e093c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ae454a03b7d01a08ce6c3bc309f150e0980e093c

Author: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Date:   Wed Oct 30 19:52:51 2019 +0100

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 <samuel.pitoiset at gmail.com>

---

 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);




More information about the mesa-commit mailing list