From 765a748840e6a67d64c2b29b149f6aadee3a39fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timur=20Krist=C3=B3f?= Date: Wed, 15 Oct 2025 02:43:09 +0200 Subject: [PATCH] radeonsi: Don't use compute queue with regalloc hang bug It already didn't use compute queues on GFX6, but some GFX7 chips are also affected by the same bug. Compute queues may run compute dispatches in parallel with the graphics queue, even from other processes/apps. At the moment we don't have a way to restrict all workgroups to 256 invocations, so instead let's make sure not to use the compute queue. Cc: mesa-stable Part-of: --- src/gallium/drivers/radeonsi/si_pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index 3aa3d959b59..3e07b4e2d4c 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -526,7 +526,7 @@ static struct pipe_context *si_create_context(struct pipe_screen *screen, unsign return NULL; } - sctx->is_gfx_queue = sscreen->info.gfx_level == GFX6 || + sctx->is_gfx_queue = sscreen->info.has_cs_regalloc_hang_bug || /* Compute queues hang on Raven and derivatives, see: * https://gitlab.freedesktop.org/mesa/mesa/-/issues/12310 */ ((sscreen->info.family == CHIP_RAVEN ||