/[packages]/cauldron/mesa/current/SOURCES/0003-v3d-Fix-leak-of-the-renderonly-struct-on-screen-dest.patch
ViewVC logotype

Contents of /cauldron/mesa/current/SOURCES/0003-v3d-Fix-leak-of-the-renderonly-struct-on-screen-dest.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1379265 - (show annotations) (download)
Wed Mar 20 17:08:42 2019 UTC (5 years, 1 month ago) by tmb
File size: 1025 byte(s)
more fixes from staging/19.0 branch
1 From f953d0f52f0d3463e1b1810b02ab53a19545968b Mon Sep 17 00:00:00 2001
2 From: Eric Anholt <eric@anholt.net>
3 Date: Tue, 12 Mar 2019 14:59:21 -0700
4 Subject: [PATCH 03/24] v3d: Fix leak of the renderonly struct on screen
5 destruction.
6
7 This makes v3d match vc4's destroy path.
8
9 Fixes: e113b21cb779 ("v3d: Add renderonly support.")
10 (cherry picked from commit 486b181fd758c246c2d1eaa1975a858e84d64c32)
11 ---
12 src/gallium/drivers/v3d/v3d_screen.c | 1 +
13 1 file changed, 1 insertion(+)
14
15 diff --git a/src/gallium/drivers/v3d/v3d_screen.c b/src/gallium/drivers/v3d/v3d_screen.c
16 index c539daf02b9..81246600f85 100644
17 --- a/src/gallium/drivers/v3d/v3d_screen.c
18 +++ b/src/gallium/drivers/v3d/v3d_screen.c
19 @@ -70,6 +70,7 @@ v3d_screen_destroy(struct pipe_screen *pscreen)
20 util_hash_table_destroy(screen->bo_handles);
21 v3d_bufmgr_destroy(pscreen);
22 slab_destroy_parent(&screen->transfer_pool);
23 + free(screen->ro);
24
25 if (using_v3d_simulator)
26 v3d_simulator_destroy(screen);
27 --
28 2.21.0
29

  ViewVC Help
Powered by ViewVC 1.1.30