From: Pierre-Eric Pelloux-Prayer Date: Thu, 9 Jan 2020 13:40:44 +0000 (+0100) Subject: radeonsi: release saved resources in si_compute_clear_render_target X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e1e87466ae7d46c564fdd3154003ae3cddf3147b;p=mesa.git radeonsi: release saved resources in si_compute_clear_render_target Fixes: 984fd735152 ("radeonsi: use compute for clear_render_target when possible") 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 cb21a313afd..accf04ff9d0 100644 --- a/src/gallium/drivers/radeonsi/si_compute_blit.c +++ b/src/gallium/drivers/radeonsi/si_compute_blit.c @@ -755,4 +755,6 @@ void si_compute_clear_render_target(struct pipe_context *ctx, ctx->set_shader_images(ctx, PIPE_SHADER_COMPUTE, 0, 1, &saved_image); ctx->set_constant_buffer(ctx, PIPE_SHADER_COMPUTE, 0, &saved_cb); si_compute_internal_end(sctx); + pipe_resource_reference(&saved_image.resource, NULL); + pipe_resource_reference(&saved_cb.buffer, NULL); }