aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2016-03-08 19:01:13 +0100
committerSamuel Pitoiset <[email protected]>2016-03-08 21:24:46 +0100
commit752769e0531bc9b15e95a2bb2250dc0970b1a421 (patch)
treebc9a117be01a24463d0aabd54efbd108495d9778 /src/gallium/drivers/nouveau/nvc0/nvc0_surface.c
parent3146014d5f0f68b3c7524257ca095f1b475d25f2 (diff)
nv50,nvc0: make sure to destroy the mutex used for blits
This mutex is initialized when the blitter is created, but it is never destroyed. This doesn't hurt anything but it makes sense to destroy it at blitter deletion. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/nvc0/nvc0_surface.c')
-rw-r--r--src/gallium/drivers/nouveau/nvc0/nvc0_surface.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c b/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c
index 49577969d3d..09b31153ab8 100644
--- a/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c
+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c
@@ -1644,6 +1644,7 @@ nvc0_blitter_destroy(struct nvc0_screen *screen)
}
}
+ pipe_mutex_destroy(blitter->mutex);
FREE(blitter);
}