[virglrenderer-devel] [PATCH 3/3] update hw_blend_state.independent_blend_enable after setting state
Dave Airlie
airlied at gmail.com
Tue Jul 10 05:51:33 UTC 2018
This patch also fixed piglit bin/fbo-drawbuffers-none glColorMaskIndexed,
so I pushed it on its own.
Dave.
On 3 July 2018 at 16:04, Erik Faye-Lund <erik.faye-lund at collabora.com> wrote:
> Otherwise, we'll end up destroying the state when restoring after
> clears.
>
> Fixes these test-cases:
> dEQP-GLES31.functional.draw_buffers_indexed.random.max_required_draw_buffers.7
> dEQP-GLES31.functional.draw_buffers_indexed.random.max_implementation_draw_buffers.13
>
> Signed-off-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
> ---
> src/vrend_renderer.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c
> index c19ab45..c5ae54a 100644
> --- a/src/vrend_renderer.c
> +++ b/src/vrend_renderer.c
> @@ -3601,6 +3601,7 @@ static void vrend_hw_emit_blend(struct vrend_context *ctx, struct pipe_blend_sta
> state->rt[0].colormask & PIPE_MASK_A ? GL_TRUE : GL_FALSE);
> }
> }
> + ctx->sub->hw_blend_state.independent_blend_enable = state->independent_blend_enable;
>
> if (vrend_state.have_multisample) {
> if (state->alpha_to_coverage)
> --
> 2.18.0.rc2
>
> _______________________________________________
> virglrenderer-devel mailing list
> virglrenderer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/virglrenderer-devel
More information about the virglrenderer-devel
mailing list