summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2018-07-05 13:30:03 -0700
committerEric Anholt <[email protected]>2018-07-05 15:50:52 -0700
commit6b111313738bb6ec82e7fac9d0be844e62c6e622 (patch)
tree15c564cdbb6306a9ae8a41c7ba83399b4bce3da8 /src
parent4b2ba18ff35774eb97a1931cba5bdef0bf4ccba9 (diff)
v3d: Fix leak of the spill BO on context destruction.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/v3d/v3d_program.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/v3d/v3d_program.c b/src/gallium/drivers/v3d/v3d_program.c
index b5742b3bb1e..93228b53c5c 100644
--- a/src/gallium/drivers/v3d/v3d_program.c
+++ b/src/gallium/drivers/v3d/v3d_program.c
@@ -681,4 +681,6 @@ v3d_program_fini(struct pipe_context *pctx)
ralloc_free(shader);
_mesa_hash_table_remove(v3d->vs_cache, entry);
}
+
+ v3d_bo_unreference(&v3d->prog.spill_bo);
}