mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
ilo: fix a HiZ bo leakage
Dereference the HiZ bo when the texture is destroyed.
This commit is contained in:
parent
af57378e59
commit
5b1c516080
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue