diff options
author | Topi Pohjolainen <[email protected]> | 2016-12-04 14:17:05 +0200 |
---|---|---|
committer | Topi Pohjolainen <[email protected]> | 2016-12-05 09:20:05 +0200 |
commit | 5b27405eff7d94ef1eadd0693b3130ee188343f2 (patch) | |
tree | b52a04a0fcfa1a5e881fdc0ae02d1906adcb93bf | |
parent | 92d7563fba04219a0a96a4949182b1f94b6d79b0 (diff) |
i965: Release aux buffer when disabling ccs
Otherwise subsequent render cycles keep on using compression
and/or fast clear.
Signed-off-by: Topi Pohjolainen <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 3 |
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 a9b350e25e8..7cda0190b4a 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; } } |