mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
radeonsi: release saved resources in si_compute_do_clear_or_copy
Fixes: 9b331e462e ("radeonsi: use compute shaders for clear_buffer & copy_buffer")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
6912149ee5
commit
a5fe84aefb
1 changed files with 2 additions and 0 deletions
|
|
@ -255,6 +255,8 @@ static void si_compute_do_clear_or_copy(struct si_context *sctx,
|
|||
ctx->set_shader_buffers(ctx, PIPE_SHADER_COMPUTE, 0, src ? 2 : 1, saved_sb,
|
||||
saved_writable_mask);
|
||||
si_compute_internal_end(sctx);
|
||||
for (int i = 0; i < 2; i++)
|
||||
pipe_resource_reference(&saved_sb[i].buffer, NULL);
|
||||
}
|
||||
|
||||
void si_clear_buffer(struct si_context *sctx, struct pipe_resource *dst,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue