From d7f3096ee9b5363853569f7d196c8f97927947f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timur=20Krist=C3=B3f?= Date: Tue, 21 Oct 2025 17:43:01 +0200 Subject: [PATCH] radeonsi: Remove previous mitigation of CS regalloc hang bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Now that all larger workgroup sizes are lowered to 256, the old workaround is not needed anymore. Signed-off-by: Timur Kristóf Part-of: --- src/gallium/drivers/radeonsi/si_compute.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_compute.c b/src/gallium/drivers/radeonsi/si_compute.c index 652c3cb779c..b46be1f4809 100644 --- a/src/gallium/drivers/radeonsi/si_compute.c +++ b/src/gallium/drivers/radeonsi/si_compute.c @@ -836,11 +836,6 @@ static void si_launch_grid(struct pipe_context *ctx, const struct pipe_grid_info if (program->shader.compilation_failed) return; - bool cs_regalloc_hang = sscreen->info.has_cs_regalloc_hang_bug && - info->block[0] * info->block[1] * info->block[2] > 256; - if (cs_regalloc_hang) - si_set_barrier_flags(sctx, SI_BARRIER_SYNC_PS | SI_BARRIER_SYNC_CS); - si_check_dirty_buffers_textures(sctx); if (sctx->is_gfx_queue) { @@ -970,9 +965,6 @@ static void si_launch_grid(struct pipe_context *ctx, const struct pipe_grid_info if (unlikely(sctx->perfetto_enabled)) trace_si_end_compute(&sctx->trace, info->grid[0], info->grid[1], info->grid[2]); - - if (cs_regalloc_hang) - si_set_barrier_flags(sctx, SI_BARRIER_SYNC_CS); } void si_destroy_compute(struct si_compute *program)