From 933e3c4145d97e73000beaf1f96db2a70f209f26 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Sat, 16 Jan 2016 04:09:45 +0100 Subject: radeonsi: use 32_AR for alpha-to-coverage without a color buffer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This avoids the fp16 packing instructions. Reviewed-by: Nicolai Hähnle --- src/gallium/drivers/radeonsi/si_state_shaders.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/drivers') diff --git a/src/gallium/drivers/radeonsi/si_state_shaders.c b/src/gallium/drivers/radeonsi/si_state_shaders.c index b368485541c..e08722d0d28 100644 --- a/src/gallium/drivers/radeonsi/si_state_shaders.c +++ b/src/gallium/drivers/radeonsi/si_state_shaders.c @@ -624,7 +624,7 @@ static inline void si_shader_selector_key(struct pipe_context *ctx, */ if (!(key->ps.spi_shader_col_format & 0xf) && blend && blend->alpha_to_coverage) - key->ps.spi_shader_col_format |= V_028710_SPI_SHADER_FP16_ABGR; + key->ps.spi_shader_col_format |= V_028710_SPI_SHADER_32_AR; if (rs) { bool is_poly = (sctx->current_rast_prim >= PIPE_PRIM_TRIANGLES && -- cgit v1.2.3