From b0f780345ed4b75485a0fdd8cea65fa77c7675bd Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Fri, 18 Jul 2014 14:45:18 -0400 Subject: radeonsi/compute: Add support scratch buffer support v2 The scratch buffer will be used for private memory and also register spilling. v2: - Code cleanups --- src/gallium/drivers/radeonsi/si_shader.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gallium/drivers/radeonsi/si_shader.c') 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); -- cgit v1.2.3