summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_shader.c
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2014-07-18 14:45:18 -0400
committerTom Stellard <[email protected]>2014-07-21 10:00:09 -0400
commitb0f780345ed4b75485a0fdd8cea65fa77c7675bd (patch)
treeddeb16a07f8a1b8d693b5fc2bdd1d2ed7213debc /src/gallium/drivers/radeonsi/si_shader.c
parent6cc5334e42c29e019b3d2a641034bac0983edfdc (diff)
radeonsi/compute: Add support scratch buffer support v2
The scratch buffer will be used for private memory and also register spilling. v2: - Code cleanups
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_shader.c')
-rw-r--r--src/gallium/drivers/radeonsi/si_shader.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c
index be18dfc88c7..2a7577f334a 100644
--- a/src/gallium/drivers/radeonsi/si_shader.c
+++ b/src/gallium/drivers/radeonsi/si_shader.c
@@ -2598,6 +2598,11 @@ int si_compile_llvm(struct si_context *sctx, struct si_pipe_shader *shader,
case R_0286CC_SPI_PS_INPUT_ENA:
shader->spi_ps_input_ena = value;
break;
+ case R_00B860_COMPUTE_TMPRING_SIZE:
+ /* WAVESIZE is in units of 256 dwords. */
+ shader->scratch_bytes_per_wave =
+ G_00B860_WAVESIZE(value) * 256 * 4 * 1;
+ break;
default:
fprintf(stderr, "Warning: Compiler emitted unknown "
"config register: 0x%x\n", reg);