summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/v3d/v3d_screen.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2018-12-07 10:30:09 -0800
committerEric Anholt <[email protected]>2018-12-07 16:48:23 -0800
commit3bd73d31a862fd1e198a7c83ec656a4a376c593a (patch)
tree81a8b1135af744ce750ddc71efd65ad16aa7aeb4 /src/gallium/drivers/v3d/v3d_screen.c
parentbad95bb13c7f857df0d9767040dd28d4187715c2 (diff)
v3d: Fix a leak of the transfer helper on screen destroy.
Fixes: 7a30517cce8f ("broadcom/vc5: Start adding support for rendering to Z32F_S8X24_UINT.")
Diffstat (limited to 'src/gallium/drivers/v3d/v3d_screen.c')
-rw-r--r--src/gallium/drivers/v3d/v3d_screen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/v3d/v3d_screen.c b/src/gallium/drivers/v3d/v3d_screen.c
index 49ea489d5ef..cfde1295ef0 100644
--- a/src/gallium/drivers/v3d/v3d_screen.c
+++ b/src/gallium/drivers/v3d/v3d_screen.c
@@ -32,6 +32,7 @@
#include "util/u_format.h"
#include "util/u_hash_table.h"
#include "util/u_screen.h"
+#include "util/u_transfer_helper.h"
#include "util/ralloc.h"
#include <xf86drm.h>
@@ -74,6 +75,7 @@ v3d_screen_destroy(struct pipe_screen *pscreen)
v3d_simulator_destroy(screen);
v3d_compiler_free(screen->compiler);
+ u_transfer_helper_destroy(pscreen->transfer_helper);
close(screen->fd);
ralloc_free(pscreen);