lavapipe: be slightly more permissive for bad apps (and cts) with dynrender
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 24 Feb 2023 18:56:10 +0000 (13:56 -0500)
committerMarge Bot <emma+marge@anholt.net>
Thu, 3 Aug 2023 10:38:22 +0000 (10:38 +0000)
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 <konstantin.seurer@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24278>

src/gallium/frontends/lavapipe/lvp_execute.c

index e59ed25..49ea19c 100644 (file)
@@ -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;
    }