[Mesa-dev] [PATCH 5/7] radeonsi: use 32_AR for alpha-to-coverage without a color buffer

Marek Olšák maraeo at gmail.com
Tue Jan 19 08:11:24 PST 2016


From: Marek Olšák <marek.olsak at amd.com>

This avoids the fp16 packing instructions.
---
 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 73a0ccc..158f1ce 100644
--- a/src/gallium/drivers/radeonsi/si_state_shaders.c
+++ b/src/gallium/drivers/radeonsi/si_state_shaders.c
@@ -623,7 +623,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.1.4



More information about the mesa-dev mailing list