From: Marek Olšák Date: Sat, 16 Jan 2016 03:09:45 +0000 (+0100) Subject: radeonsi: use 32_AR for alpha-to-coverage without a color buffer X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=933e3c4145d97e73000beaf1f96db2a70f209f26;p=mesa.git radeonsi: use 32_AR for alpha-to-coverage without a color buffer This avoids the fp16 packing instructions. Reviewed-by: Nicolai Hähnle --- 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 &&