From: Dave Airlie Date: Fri, 3 Nov 2017 01:23:55 +0000 (+1000) Subject: r600: update max threads per block for evergreen compute X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5c78d000e60266fcee08c8c7f509913a49e68c56;p=mesa.git r600: update max threads per block for evergreen compute Signed-off-by: Dave Airlie --- 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; }