From cb1dde2cc360b34d85e019f8878ab00a9c590319 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Thu, 5 Feb 2026 11:17:06 +0100 Subject: [PATCH] radeonsi: Don't assert when using src texture in si_compute_clear_copy_buffer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This will be used for texture -> texture copy in next commit, to copy DPB (layered texture with multiple planes). It needs to use buffer copy, because VCN expects interleaved layers. (layer0_plane0, layer0_plane1, layer1_plane0, layer1_plane1, ...). Reviewed-by: Marek Olšák Part-of: --- src/gallium/drivers/radeonsi/si_compute_blit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_compute_blit.c b/src/gallium/drivers/radeonsi/si_compute_blit.c index 26b071ed1e7..b4299c44140 100644 --- a/src/gallium/drivers/radeonsi/si_compute_blit.c +++ b/src/gallium/drivers/radeonsi/si_compute_blit.c @@ -155,7 +155,7 @@ bool si_compute_clear_copy_buffer(struct si_context *sctx, struct pipe_resource bool fail_if_slow) { assert(dst->target != PIPE_BUFFER || dst_offset + size <= dst->width0); - assert(!src || src_offset + size <= src->width0); + assert(!src || src->target != PIPE_BUFFER || src_offset + size <= src->width0); bool is_copy = src != NULL; struct ac_cs_clear_copy_buffer_options options = {