Mesa (master): ilo: fix a HiZ bo leakage
Chia-I Wu
olv at kemper.freedesktop.org
Tue Jan 14 07:43:42 UTC 2014
Module: Mesa
Branch: master
Commit: 5b1c516080989c950796a1e9087a07284887602b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5b1c516080989c950796a1e9087a07284887602b
Author: Chia-I Wu <olvaffe at gmail.com>
Date: Tue Jan 14 13:33:22 2014 +0800
ilo: fix a HiZ bo leakage
Dereference the HiZ bo when the texture is destroyed.
---
src/gallium/drivers/ilo/ilo_resource.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/gallium/drivers/ilo/ilo_resource.c b/src/gallium/drivers/ilo/ilo_resource.c
index e8c7b1e..01d2d08 100644
--- 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);
More information about the mesa-commit
mailing list