summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2017-11-03 11:23:55 +1000
committerDave Airlie <[email protected]>2017-12-05 20:31:37 +0000
commit5c78d000e60266fcee08c8c7f509913a49e68c56 (patch)
tree8fb528cbb2f3dd8e35c22019662a4b9e6baf87ca
parent5f15d35efc86a9d6e5147b183756a3f8e63f8a33 (diff)
r600: update max threads per block for evergreen compute
Signed-off-by: Dave Airlie <[email protected]>
-rw-r--r--src/gallium/drivers/r600/r600_pipe_common.c4
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;
}