nouveau: trigger the current fence's work on destroy explicitly

Otherwise the delete yells at us that there's still work pending. This
isn't an actual problem, but annoying to see each time.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8462>
This commit is contained in:
Ilia Mirkin 2021-01-13 00:38:10 -05:00 committed by Marge Bot
parent 3b265e828f
commit f9237619d3

View file

@ -120,7 +120,10 @@ nouveau_fence_cleanup(struct nouveau_screen *screen)
}
screen->fence.head = NULL;
screen->fence.tail = NULL;
nouveau_fence_ref(NULL, &screen->fence.current);
if (screen->fence.current) {
nouveau_fence_trigger_work(screen->fence.current);
nouveau_fence_ref(NULL, &screen->fence.current);
}
}
void