summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTopi Pohjolainen <topi.pohjolainen@intel.com>2016-12-04 14:17:05 +0200
committerTopi Pohjolainen <topi.pohjolainen@intel.com>2016-12-04 14:17:05 +0200
commit2015a8c5b424e2184d708d3f4bb88b162fa99fac (patch)
tree6ed119694a104be35e41a67f13e838c9f3b4898f
parentaa730e3126a770cab338b728604e03456d8ec913 (diff)
i965: When resolving for sharing also release the aux bufferrelease_aux_when_sharing
-rw-r--r--src/mesa/drivers/dri/i965/intel_mipmap_tree.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
index a9b350e25e..7cda0190b4 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
@@ -2326,6 +2326,9 @@ intel_miptree_make_shareable(struct brw_context *brw,
if (mt->mcs_buf) {
intel_miptree_all_slices_resolve_color(brw, mt, 0);
mt->no_ccs = true;
+ drm_intel_bo_unreference(mt->mcs_buf->bo);
+ free(mt->mcs_buf);
+ mt->mcs_buf = NULL;
}
}