From 933e3c4145d97e73000beaf1f96db2a70f209f26 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sat, 16 Jan 2016 04:09:45 +0100 Subject: [PATCH] radeonsi: use 32_AR for alpha-to-coverage without a color buffer MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 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(-) diff --git a/src/gallium/drivers/radeonsi/si_state_shaders.c b/src/gallium/drivers/radeonsi/si_state_shaders.c index b368485..e08722d 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 && -- 2.7.4