nv50,nvc0: make sure to destroy the mutex used for blits
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 8 Mar 2016 18:01:13 +0000 (19:01 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 8 Mar 2016 20:24:46 +0000 (21:24 +0100)
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 <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nv50/nv50_surface.c
src/gallium/drivers/nouveau/nvc0/nvc0_surface.c

index 4db73cb7fefc94494fa7265a06af723e5ab5c3e9..84646f6adb12b6722ee4703faa9dc56ad941104a 100644 (file)
@@ -1756,6 +1756,7 @@ nv50_blitter_destroy(struct nv50_screen *screen)
       }
    }
 
+   pipe_mutex_destroy(blitter->mutex);
    FREE(blitter);
 }
 
index 49577969d3d4f0b9e49c14edb29eed9feff63263..09b31153ab899cbc30658d4261f9af4f7ffb8877 100644 (file)
@@ -1644,6 +1644,7 @@ nvc0_blitter_destroy(struct nvc0_screen *screen)
       }
    }
 
+   pipe_mutex_destroy(blitter->mutex);
    FREE(blitter);
 }