From 1ace200b2b916d4e9696ae7f711578dcdd5d28e0 Mon Sep 17 00:00:00 2001 From: Michel Dänzer Date: Fri, 21 Dec 2012 15:39:26 +0100 Subject: radeonsi: Set SPI_SHADER_COL_FORMAT to what the pixel shader actually exports. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Instead of deriving it from the colour buffer formats only. Fixes a number of piglit tests which export depth from the pixel shader. Reviewed-by: Christian König Signed-off-by: Michel Dänzer --- src/gallium/drivers/radeonsi/radeonsi_shader.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium/drivers/radeonsi/radeonsi_shader.h') diff --git a/src/gallium/drivers/radeonsi/radeonsi_shader.h b/src/gallium/drivers/radeonsi/radeonsi_shader.h index 6f12e760b8e..07b2f9fc3e6 100644 --- a/src/gallium/drivers/radeonsi/radeonsi_shader.h +++ b/src/gallium/drivers/radeonsi/radeonsi_shader.h @@ -94,6 +94,7 @@ struct si_pipe_shader { unsigned num_sgprs; unsigned num_vgprs; unsigned spi_ps_input_ena; + unsigned spi_shader_col_format; unsigned sprite_coord_enable; unsigned so_strides[4]; struct si_shader_key key; -- cgit v1.2.3