From: Pierre-Eric Pelloux-Prayer Date: Thu, 9 Jan 2020 13:39:24 +0000 (+0100) Subject: radeonsi: release saved resources in si_compute_expand_fmask X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6c019e28caf2124b13d2ea5d87e936bf43d8b4fd;p=mesa.git radeonsi: release saved resources in si_compute_expand_fmask Fixes: 095a58204d9 ("radeonsi: expand FMASK before MSAA image stores are used") Reviewed-by: Marek Olšák --- diff --git a/src/gallium/drivers/radeonsi/si_compute_blit.c b/src/gallium/drivers/radeonsi/si_compute_blit.c index 4d6c29ab43e..cb21a313afd 100644 --- a/src/gallium/drivers/radeonsi/si_compute_blit.c +++ b/src/gallium/drivers/radeonsi/si_compute_blit.c @@ -636,6 +636,7 @@ void si_compute_expand_fmask(struct pipe_context *ctx, struct pipe_resource *tex ctx->bind_compute_state(ctx, saved_cs); ctx->set_shader_images(ctx, PIPE_SHADER_COMPUTE, 0, 1, &saved_image); si_compute_internal_end(sctx); + pipe_resource_reference(&saved_image.resource, NULL); /* Array of fully expanded FMASK values, arranged by [log2(fragments)][log2(samples)-1]. */ #define INVALID 0 /* never used */