summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2021-01-13 00:38:10 -0500
committerMarge Bot <eric+marge@anholt.net>2021-01-13 16:59:18 +0000
commitf9237619d353d34c6d471cd39fe31c765d8dc529 (patch)
tree9151c31f8497358f2987ccb97a196bfd18d6a6b0 /src
parent3b265e828f9034fba770c034410a1a383e9f160f (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/nouveau/nouveau_fence.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/nouveau/nouveau_fence.c b/src/gallium/drivers/nouveau/nouveau_fence.c
index f317d0451d4..49f686bfbb5 100644
--- a/src/gallium/drivers/nouveau/nouveau_fence.c
+++ b/src/gallium/drivers/nouveau/nouveau_fence.c
@@ -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