From c1ced4c2ffd096ff9279386338baa2f5ba11e02b Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Tue, 26 Apr 2011 09:33:49 +0200 Subject: [PATCH 2/2] Added HiZ bo deletion --- src/gallium/drivers/r600/r600_texture.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c index c416d09..5141bc2 100644 --- a/src/gallium/drivers/r600/r600_texture.c +++ b/src/gallium/drivers/r600/r600_texture.c @@ -337,6 +337,11 @@ static void r600_texture_destroy(struct pipe_screen *screen, if (resource->bo) { r600_bo_reference(radeon, &resource->bo, NULL); } + + if (rtex->hiz_bo) { + r600_bo_reference(radeon, &rtex->hiz_bo, NULL); + } + FREE(rtex); } -- 1.7.4.4