projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f15d35
)
r600: update max threads per block for evergreen compute
author
Dave Airlie
<airlied@redhat.com>
Fri, 3 Nov 2017 01:23:55 +0000
(11:23 +1000)
committer
Dave 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
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r600/r600_pipe_common.c
b/src/gallium/drivers/r600/r600_pipe_common.c
index d20d2f4bb043b0f635dd593e491f4d845063f459..e02c43f93b8cd823f3a90fde2f31b23f103cc23c 100644
(file)
--- 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;
}