Module: Mesa
Branch: master
Commit: 933e3c4145d97e73000beaf1f96db2a70f209f26
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=933e3c4145d97e73000beaf1f96db2a70f209f26

Author: Marek Olšák <[email protected]>
Date:   Sat Jan 16 04:09:45 2016 +0100

radeonsi: use 32_AR for alpha-to-coverage without a color buffer

This avoids the fp16 packing instructions.

Reviewed-by: Nicolai Hähnle <[email protected]>

---

 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 &&

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to