radeonsi/sdma: fix bogus assert

src can use dcc even for non sdma v5 variants because si_decompress_dcc
is called in si_sdma_copy_image.

Fixes: 46c95047bd ("radeonsi: implement si_sdma_copy_image for gfx7+")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13550>
This commit is contained in:
Pierre-Eric Pelloux-Prayer 2021-10-28 11:56:01 +02:00
parent 84d4bda8e5
commit d86d602ed0

View file

@ -161,8 +161,7 @@ bool si_sdma_v4_v5_copy_texture(struct si_context *sctx, struct si_texture *sdst
uint64_t linear_address = linear == ssrc ? src_address : dst_address;
struct radeon_cmdbuf *cs = sctx->sdma_cs;
/* Only SDMA 5 supports DCC with SDMA */
bool dcc = vi_dcc_enabled(tiled, 0);
assert(!dcc || is_v5);
bool dcc = vi_dcc_enabled(tiled, 0) && is_v5;
assert(tiled->buffer.b.b.depth0 == 1);
linear_address += linear->surface.u.gfx9.offset[0];