Mesa (staging/18.1): r600: reduce num compute threads to 1024.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Aug 1 16:43:38 UTC 2018
Module: Mesa
Branch: staging/18.1
Commit: 8e49c2ebc186c0c43236c6c5f1a0d54e5fcdb17c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8e49c2ebc186c0c43236c6c5f1a0d54e5fcdb17c
Author: Dave Airlie <airlied at redhat.com>
Date: Wed Jul 25 13:14:58 2018 +1000
r600: reduce num compute threads to 1024.
I copied this value from radeonsi, but it was wrong, 1024
seems to be correct answer from looking at gpuinfo.
This should fix a few compute shader related hangs. (at least in CTS)
Cc: <mesa-stable at lists.freedesktop.org>
(airlied: pushed because it avoids hangs)
(cherry picked from commit 9039cf70fa0b785f390c649486e12d6c10e9142b)
---
src/gallium/drivers/r600/r600_pipe_common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/r600/r600_pipe_common.c b/src/gallium/drivers/r600/r600_pipe_common.c
index 255a1e01b7..2a05e44199 100644
--- a/src/gallium/drivers/r600/r600_pipe_common.c
+++ b/src/gallium/drivers/r600/r600_pipe_common.c
@@ -996,7 +996,7 @@ static unsigned get_max_threads_per_block(struct r600_common_screen *screen,
if (ir_type != PIPE_SHADER_IR_TGSI)
return 256;
if (screen->chip_class >= EVERGREEN)
- return 2048;
+ return 1024;
return 256;
}
More information about the mesa-commit
mailing list