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.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gallium/drivers/radeonsi/si_shader.h') diff --git a/src/gallium/drivers/radeonsi/si_shader.h b/src/gallium/drivers/radeonsi/si_shader.h index 6891604db6c..a68c25a0c53 100644 --- a/src/gallium/drivers/radeonsi/si_shader.h +++ b/src/gallium/drivers/radeonsi/si_shader.h @@ -178,10 +178,12 @@ struct si_pipe_shader { struct si_shader shader; struct si_pm4_state *pm4; struct r600_resource *bo; + struct r600_resource *scratch_bo; unsigned num_sgprs; unsigned num_vgprs; unsigned lds_size; unsigned spi_ps_input_ena; + unsigned scratch_bytes_per_wave; unsigned spi_shader_col_format; unsigned spi_shader_z_format; unsigned db_shader_control; -- cgit v1.2.3