Mesa (master): anv: garbage collect timeline semaphore when querying value
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Jul 6 22:48:05 UTC 2020
Module: Mesa
Branch: master
Commit: edc8119da4eafb45ae90b70ba33b2c1f5b85c4c1
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=edc8119da4eafb45ae90b70ba33b2c1f5b85c4c1
Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date: Mon Jul 6 17:11:35 2020 +0300
anv: garbage collect timeline semaphore when querying value
If we don't garbage collect the timeline, the value never progresses
even though work completed.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3226
Fixes: 34f32a6d664807 ("anv: implement VK_KHR_timeline_semaphore")
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5774>
---
src/intel/vulkan/anv_queue.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/intel/vulkan/anv_queue.c b/src/intel/vulkan/anv_queue.c
index 1e3801daf4a..f997391bdb6 100644
--- a/src/intel/vulkan/anv_queue.c
+++ b/src/intel/vulkan/anv_queue.c
@@ -2184,6 +2184,7 @@ VkResult anv_GetSemaphoreCounterValue(
switch (impl->type) {
case ANV_SEMAPHORE_TYPE_TIMELINE: {
pthread_mutex_lock(&device->mutex);
+ anv_timeline_gc_locked(device, &impl->timeline);
*pValue = impl->timeline.highest_past;
pthread_mutex_unlock(&device->mutex);
return VK_SUCCESS;
More information about the mesa-commit
mailing list