/[packages]/cauldron/mesa/current/SOURCES/0006-vc4-Fix-a-leak-of-the-transfer-helper-on-screen-dest.patch
ViewVC logotype

Contents of /cauldron/mesa/current/SOURCES/0006-vc4-Fix-a-leak-of-the-transfer-helper-on-screen-dest.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1355920 - (show annotations) (download)
Sun Jan 13 14:22:00 2019 UTC (5 years, 3 months ago) by tmb
File size: 1118 byte(s)
add current fixes from upstream staging/18.3 branch
1 From 61b8ae8cc8929e991d9ca6940400646813fe9197 Mon Sep 17 00:00:00 2001
2 From: Eric Anholt <eric@anholt.net>
3 Date: Fri, 7 Dec 2018 10:31:27 -0800
4 Subject: [PATCH 06/78] vc4: Fix a leak of the transfer helper on screen
5 destroy.
6
7 Fixes: d009463a6549 ("vc4: Switch to using u_transfer_helper for MSAA maps.")
8 (cherry picked from commit 7f8d8b7d27868037a146f7fca04fef56b29bb85e)
9 ---
10 src/gallium/drivers/vc4/vc4_screen.c | 3 +++
11 1 file changed, 3 insertions(+)
12
13 diff --git a/src/gallium/drivers/vc4/vc4_screen.c b/src/gallium/drivers/vc4/vc4_screen.c
14 index 14ee6cf09e..e7f7c82c27 100644
15 --- a/src/gallium/drivers/vc4/vc4_screen.c
16 +++ b/src/gallium/drivers/vc4/vc4_screen.c
17 @@ -33,6 +33,7 @@
18 #include "util/u_format.h"
19 #include "util/u_hash_table.h"
20 #include "util/u_screen.h"
21 +#include "util/u_transfer_helper.h"
22 #include "util/ralloc.h"
23
24 #include <xf86drm.h>
25 @@ -110,6 +111,8 @@ vc4_screen_destroy(struct pipe_screen *pscreen)
26 vc4_simulator_destroy(screen);
27 #endif
28
29 + u_transfer_helper_destroy(pscreen->transfer_helper);
30 +
31 close(screen->fd);
32 ralloc_free(pscreen);
33 }
34 --
35 2.20.1
36

  ViewVC Help
Powered by ViewVC 1.1.30