mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
radeonsi: release saved resources in si_compute_clear_12bytes_buffer
Fixes: 6c901f0675 ("radeonsi: use compute shader for clear 12-byte buffer")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
1acf714d57
commit
6912149ee5
1 changed files with 2 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue