From 30acb5a14dfe5336993c69c512a26ce6b879864a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sun, 29 Jun 2025 21:40:49 -0400 Subject: [PATCH] radeonsi: disallow the compute copy for Z/S It doesn't work, and I think this path is actually never exercised. Reviewed-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/gallium/drivers/radeonsi/si_compute_blit.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_compute_blit.c b/src/gallium/drivers/radeonsi/si_compute_blit.c index e6ddfd597e6..e17c579fa1e 100644 --- a/src/gallium/drivers/radeonsi/si_compute_blit.c +++ b/src/gallium/drivers/radeonsi/si_compute_blit.c @@ -599,6 +599,9 @@ bool si_compute_copy_image(struct si_context *sctx, struct pipe_resource *dst, u assert(util_format_is_subsampled_422(src_format) == util_format_is_subsampled_422(dst_format)); + if (sdst->is_depth || ssrc->is_depth) + return false; + /* Interpret as integer values to avoid NaN issues */ if (!vi_dcc_enabled(ssrc, src_level) && !vi_dcc_enabled(sdst, dst_level) &&