diff options
author | Nanley Chery <nanley.g.chery@intel.com> | 2018-04-09 11:27:08 -0700 |
---|---|---|
committer | Nanley Chery <nanley.g.chery@intel.com> | 2018-04-20 17:14:37 -0700 |
commit | 010abacc95207f600bc750f01d690b1c899e112c (patch) | |
tree | 48b4641bb520e8b6eb5690a4e44040398bb5bf79 | |
parent | 9d2ef3c9ecf9b2e00efa42ae245132d59571d08d (diff) |
i965/miptree: Don't leak the clear_color_bo
Free the clear_color_bo in addition to freeing the
intel_miptree_aux_buffer which holds the reference to it.
Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c index 8d3ddd5654..0580cc0534 100644 --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c @@ -2877,8 +2877,7 @@ intel_miptree_make_shareable(struct brw_context *brw, ISL_AUX_USAGE_NONE, false); if (mt->mcs_buf) { - brw_bo_unreference(mt->mcs_buf->bo); - free(mt->mcs_buf); + intel_miptree_aux_buffer_free(mt->mcs_buf); mt->mcs_buf = NULL; /* Any pending MCS/CCS operations are no longer needed. Trying to |