[Mesa-dev] [PATCH v3 1/9] i965/miptree: Don't leak the clear_color_bo
Nanley Chery
nanleychery at gmail.com
Wed Apr 11 20:42:18 UTC 2018
Free the clear_color_bo in addition to freeing the
intel_miptree_aux_buffer which holds the reference to it.
---
src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 3 +--
1 file changed, 1 insertion(+), 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 8d3ddd56544..0580cc05346 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
--
2.16.2
More information about the mesa-dev
mailing list