mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
radeonsi: release saved resources in si_retile_dcc
Fixes: 1f21396431 ("radeonsi: add support for displayable DCC for multi-RB chips")
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2330
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
39c1892dd8
commit
9211cbe07a
1 changed files with 4 additions and 0 deletions
|
|
@ -564,6 +564,10 @@ void si_retile_dcc(struct si_context *sctx, struct si_texture *tex)
|
|||
/* Restore states. */
|
||||
ctx->bind_compute_state(ctx, saved_cs);
|
||||
ctx->set_shader_images(ctx, PIPE_SHADER_COMPUTE, 0, 3, saved_img);
|
||||
|
||||
for (unsigned i = 0; i < 3; i++) {
|
||||
pipe_resource_reference(&saved_img[i].resource, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
/* Expand FMASK to make it identity, so that image stores can ignore it. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue