[Mesa-dev] [PATCH] i965: Release aux buffer when disabling ccs
Kenneth Graunke
kenneth at whitecape.org
Sun Dec 4 22:26:02 UTC 2016
On Monday, December 5, 2016 12:08:13 AM PST Topi Pohjolainen wrote:
> Otherwise subsequent render cycles keep on using compression
> and/or fast clear.
>
> Signed-off-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
> CC: Kalyan Kondapally <kalyan.kondapally at intel.com>
> CC: Kenneth Graunke <kenneth at whitecape.org>
> ---
> src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> index a9b350e..7cda019 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;
> }
> }
>
>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20161204/f401d88b/attachment.sig>
More information about the mesa-dev
mailing list