From 5c78d000e60266fcee08c8c7f509913a49e68c56 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 3 Nov 2017 11:23:55 +1000 Subject: r600: update max threads per block for evergreen compute Signed-off-by: Dave Airlie --- 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 d20d2f4bb04..e02c43f93b8 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; } -- cgit v1.2.3