diff options
-rw-r--r-- | src/gallium/drivers/r600/r600_pipe_common.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |