mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 09:58:05 +02:00
radeonsi: release saved resources in si_compute_copy_image
Fixes: 1b25d340b7 ("radeonsi: use compute for resource_copy_region when possible")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
e1e87466ae
commit
1acf714d57
1 changed files with 3 additions and 0 deletions
|
|
@ -486,6 +486,9 @@ void si_compute_copy_image(struct si_context *sctx,
|
|||
ctx->set_shader_images(ctx, PIPE_SHADER_COMPUTE, 0, 2, saved_image);
|
||||
ctx->set_constant_buffer(ctx, PIPE_SHADER_COMPUTE, 0, &saved_cb);
|
||||
si_compute_internal_end(sctx);
|
||||
for (int i = 0; i < 2; i++)
|
||||
pipe_resource_reference(&saved_image[i].resource, NULL);
|
||||
pipe_resource_reference(&saved_cb.buffer, NULL);
|
||||
}
|
||||
|
||||
void si_retile_dcc(struct si_context *sctx, struct si_texture *tex)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue