ilo: fix a HiZ bo leakage

Dereference the HiZ bo when the texture is destroyed.
This commit is contained in:
Chia-I Wu 2014-01-14 13:33:22 +08:00
parent af57378e59
commit 5b1c516080

View file

@ -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);