diff options
author | Pierre-Eric Pelloux-Prayer <[email protected]> | 2020-01-09 14:57:41 +0100 |
---|---|---|
committer | Pierre-Eric Pelloux-Prayer <[email protected]> | 2020-01-10 08:41:38 +0100 |
commit | 6912149ee5eabf6e1f3f60f2c783c521cf631fb6 (patch) | |
tree | 2f9d2a1fdbc4c8916d0c3eb124b37d05914de0e5 | |
parent | 1acf714d579114ff591c00989b2e6a97de8830b8 (diff) |
radeonsi: release saved resources in si_compute_clear_12bytes_buffer
Fixes: 6c901f06752 ("radeonsi: use compute shader for clear 12-byte buffer")
Reviewed-by: Marek Olšák <[email protected]>
-rw-r--r-- | src/gallium/drivers/radeonsi/si_compute_blit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_compute_blit.c b/src/gallium/drivers/radeonsi/si_compute_blit.c index 18dafac1a45..10bbd8ef580 100644 --- a/src/gallium/drivers/radeonsi/si_compute_blit.c +++ b/src/gallium/drivers/radeonsi/si_compute_blit.c @@ -141,6 +141,8 @@ static void si_compute_clear_12bytes_buffer(struct si_context *sctx, ctx->set_constant_buffer(ctx, PIPE_SHADER_COMPUTE, 0, &saved_cb); si_compute_internal_end(sctx); + pipe_resource_reference(&saved_sb.buffer, NULL); + pipe_resource_reference(&saved_cb.buffer, NULL); } static void si_compute_do_clear_or_copy(struct si_context *sctx, |