[virglrenderer-devel] [PATCH 3/3] update hw_blend_state.independent_blend_enable after setting state
Erik Faye-Lund
erik.faye-lund at collabora.com
Tue Jul 3 06:04:50 UTC 2018
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
More information about the virglrenderer-devel
mailing list