v3d: Fix leak of the spill BO on context destruction.
authorEric Anholt <eric@anholt.net>
Thu, 5 Jul 2018 20:30:03 +0000 (13:30 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 5 Jul 2018 22:50:52 +0000 (15:50 -0700)
src/gallium/drivers/v3d/v3d_program.c

index b5742b3bb1e9ca395972a8ba052fa7333fbaa7d0..93228b53c5c5b6d3876efca9c804798301e098d7 100644 (file)
@@ -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);
 }