Skip to content
Snippets Groups Projects
Commit edc8119d authored by Lionel Landwerlin's avatar Lionel Landwerlin Committed by Marge Bot
Browse files

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: default avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
Closes: mesa/mesa#3226


Fixes: 34f32a6d ("anv: implement VK_KHR_timeline_semaphore")
Reviewed-by: default avatarBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: default avatarJason Ekstrand <jason@jlekstrand.net>
Part-of: <mesa/mesa!5774>
parent 137d8f98
No related branches found
No related tags found
Loading
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment