projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af57378
)
ilo: fix a HiZ bo leakage
author
Chia-I Wu
<olvaffe@gmail.com>
Tue, 14 Jan 2014 05:33:22 +0000
(13:33 +0800)
committer
Chia-I Wu
<olvaffe@gmail.com>
Tue, 14 Jan 2014 07:19:41 +0000
(15:19 +0800)
Dereference the HiZ bo when the texture is destroyed.
src/gallium/drivers/ilo/ilo_resource.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/ilo/ilo_resource.c
b/src/gallium/drivers/ilo/ilo_resource.c
index e8c7b1e6c169fe56a27295ee069819f0bf195588..01d2d0853ecb2d6c22242264f8cdb2d0358b6c22 100644
(file)
--- a/
src/gallium/drivers/ilo/ilo_resource.c
+++ b/
src/gallium/drivers/ilo/ilo_resource.c
@@
-1103,6
+1103,9
@@
tex_create_hiz(struct ilo_texture *tex, const struct tex_layout *layout)
static void
tex_destroy(struct ilo_texture *tex)
{
+ if (tex->hiz.bo)
+ intel_bo_unreference(tex->hiz.bo);
+
if (tex->separate_s8)
tex_destroy(tex->separate_s8);