OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c874c1
)
v3d: Fix leak of the renderonly struct on screen destruction.
author
Eric Anholt
<eric@anholt.net>
Tue, 12 Mar 2019 21:59:21 +0000
(14:59 -0700)
committer
Eric Anholt
<eric@anholt.net>
Tue, 12 Mar 2019 23:15:40 +0000
(16:15 -0700)
This makes v3d match vc4's destroy path.
Fixes:
e113b21cb779
("v3d: Add renderonly support.")
src/gallium/drivers/v3d/v3d_screen.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/v3d/v3d_screen.c
b/src/gallium/drivers/v3d/v3d_screen.c
index
e413b00
..
7ccf5b1
100644
(file)
--- a/
src/gallium/drivers/v3d/v3d_screen.c
+++ b/
src/gallium/drivers/v3d/v3d_screen.c
@@
-70,6
+70,7
@@
v3d_screen_destroy(struct pipe_screen *pscreen)
util_hash_table_destroy(screen->bo_handles);
v3d_bufmgr_destroy(pscreen);
slab_destroy_parent(&screen->transfer_pool);
+ free(screen->ro);
if (using_v3d_simulator)
v3d_simulator_destroy(screen);