freedreno/a6xx: Add support for ALPHA_TO_ONE.
authorEric Anholt <eric@anholt.net>
Fri, 5 Jun 2020 00:08:18 +0000 (17:08 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 5 Jun 2020 18:11:22 +0000 (18:11 +0000)
Fixes piglit ext_framebuffer_multisample-draw-buffers-alpha-to-one

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5343>

src/gallium/drivers/freedreno/a6xx/fd6_blend.c

index 3d4b100552471e0675746812d72457ff0d6b09d3..d69d3f0f59d7b1f7dc7ffc2d7da23767cd0061d6 100644 (file)
@@ -132,6 +132,7 @@ __fd6_setup_blend_variant(struct fd6_blend_stateobj *blend, unsigned sample_mask
        OUT_REG(ring, A6XX_RB_BLEND_CNTL(
                        .enable_blend      = mrt_blend,
                        .alpha_to_coverage = cso->alpha_to_coverage,
+                       .alpha_to_one = cso->alpha_to_one,
                        .independent_blend = cso->independent_blend_enable,
                        .sample_mask       = sample_mask
                ));