38 lines
1.7 KiB
Diff
38 lines
1.7 KiB
Diff
|
From 3b78dcec058e85321f636f353ad5c23c986e3a11 Mon Sep 17 00:00:00 2001
|
||
|
From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= <marek.olsak@amd.com>
|
||
|
Date: Mon, 27 Jan 2025 15:24:21 -0500
|
||
|
Subject: [PATCH] radeonsi: disallow compute queues on Raven/Raven2 due to
|
||
|
hangs
|
||
|
|
||
|
Fixes: 58b512ddd6e - radeonsi: execute clears at resource allocation using compute instead of gfx
|
||
|
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12310
|
||
|
|
||
|
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
|
||
|
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33248>
|
||
|
---
|
||
|
src/gallium/drivers/radeonsi/si_pipe.c | 8 +++++++-
|
||
|
1 file changed, 7 insertions(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c
|
||
|
index 52ac2fc3ead..38b45e5d356 100644
|
||
|
--- a/src/gallium/drivers/radeonsi/si_pipe.c
|
||
|
+++ b/src/gallium/drivers/radeonsi/si_pipe.c
|
||
|
@@ -517,7 +517,13 @@ static struct pipe_context *si_create_context(struct pipe_screen *screen, unsign
|
||
|
return NULL;
|
||
|
}
|
||
|
|
||
|
- sctx->has_graphics = sscreen->info.gfx_level == GFX6 || !(flags & PIPE_CONTEXT_COMPUTE_ONLY);
|
||
|
+ sctx->has_graphics = sscreen->info.gfx_level == GFX6 ||
|
||
|
+ /* Compute queues hang on Raven and derivatives, see:
|
||
|
+ * https://gitlab.freedesktop.org/mesa/mesa/-/issues/12310 */
|
||
|
+ ((sscreen->info.family == CHIP_RAVEN ||
|
||
|
+ sscreen->info.family == CHIP_RAVEN2) &&
|
||
|
+ !sscreen->info.has_dedicated_vram) ||
|
||
|
+ !(flags & PIPE_CONTEXT_COMPUTE_ONLY);
|
||
|
|
||
|
if (flags & PIPE_CONTEXT_DEBUG)
|
||
|
sscreen->record_llvm_ir = true; /* racy but not critical */
|
||
|
--
|
||
|
2.43.0
|
||
|
|