Mesa (master): r600: update max threads per block for evergreen compute
Dave Airlie
airlied at kemper.freedesktop.org
Tue Dec 5 20:32:23 UTC 2017
Module: Mesa
Branch: master
Commit: 5c78d000e60266fcee08c8c7f509913a49e68c56
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5c78d000e60266fcee08c8c7f509913a49e68c56
Author: Dave Airlie <airlied at redhat.com>
Date: Fri Nov 3 11:23:55 2017 +1000
r600: update max threads per block for evergreen compute
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
src/gallium/drivers/r600/r600_pipe_common.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/gallium/drivers/r600/r600_pipe_common.c b/src/gallium/drivers/r600/r600_pipe_common.c
index d20d2f4bb0..e02c43f93b 100644
--- a/src/gallium/drivers/r600/r600_pipe_common.c
+++ b/src/gallium/drivers/r600/r600_pipe_common.c
@@ -993,6 +993,10 @@ const char *r600_get_llvm_processor_name(enum radeon_family family)
static unsigned get_max_threads_per_block(struct r600_common_screen *screen,
enum pipe_shader_ir ir_type)
{
+ if (ir_type != PIPE_SHADER_IR_TGSI)
+ return 256;
+ if (screen->chip_class >= EVERGREEN)
+ return 2048;
return 256;
}
More information about the mesa-commit
mailing list