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>
}
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