From 6d3009d758576da3a5b1fe803cdb86ad4fe5cb74 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 24 Feb 2023 13:56:10 -0500 Subject: [PATCH] lavapipe: be slightly more permissive for bad apps (and cts) with dynrender this is stupid, but it makes the default color output "write the output" instead of zero, which is still wrong, but at least maybe it's wrong in a way that's useful instead of just being confusing Acked-by: Konstantin Seurer Part-of: --- src/gallium/frontends/lavapipe/lvp_execute.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/frontends/lavapipe/lvp_execute.c b/src/gallium/frontends/lavapipe/lvp_execute.c index e59ed25c3ce..49ea19cb732 100644 --- a/src/gallium/frontends/lavapipe/lvp_execute.c +++ b/src/gallium/frontends/lavapipe/lvp_execute.c @@ -907,6 +907,7 @@ static void handle_graphics_pipeline(struct lvp_pipeline *pipeline, } } else if (ps->rp->color_attachment_count == 0) { memset(&state->blend_state, 0, sizeof(state->blend_state)); + state->blend_state.rt[0].colormask = 0xf; state->blend_dirty = true; }