r600: update max threads per block for evergreen compute
authorDave Airlie <airlied@redhat.com>
Fri, 3 Nov 2017 01:23:55 +0000 (11:23 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 5 Dec 2017 20:31:37 +0000 (20:31 +0000)
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_pipe_common.c

index d20d2f4bb043b0f635dd593e491f4d845063f459..e02c43f93b8cd823f3a90fde2f31b23f103cc23c 100644 (file)
@@ -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;
 }