[Mesa-dev] [PATCH 10/21] r600: update max threads per block for evergreen compute
Dave Airlie
airlied at gmail.com
Wed Nov 29 04:36:19 UTC 2017
From: Dave Airlie <airlied at redhat.com>
---
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 23f7d74..b611783 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;
}
--
2.9.5
More information about the mesa-dev
mailing list