Mesa (main): lavapipe: update more states on null multisample pipeline info

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu May 6 15:09:34 UTC 2021


Module: Mesa
Branch: main
Commit: 788121158ae3d6c06c7c9d0ed82d8dc78f52ecf7
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=788121158ae3d6c06c7c9d0ed82d8dc78f52ecf7

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Wed May  5 09:25:01 2021 -0400

lavapipe: update more states on null multisample pipeline info

these all need to be unset to ensure expected functionality

Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10625>

---

 src/gallium/frontends/lavapipe/lvp_execute.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/gallium/frontends/lavapipe/lvp_execute.c b/src/gallium/frontends/lavapipe/lvp_execute.c
index ea2d215fc2b..6ae6e71d051 100644
--- a/src/gallium/frontends/lavapipe/lvp_execute.c
+++ b/src/gallium/frontends/lavapipe/lvp_execute.c
@@ -510,6 +510,11 @@ static void handle_graphics_pipeline(struct lvp_cmd_buffer_entry *cmd,
       state->min_samples_dirty = true;
    } else {
       state->rs_state.multisample = false;
+      state->sample_mask_dirty = state->sample_mask != 0xffffffff;
+      state->sample_mask = 0xffffffff;
+      state->min_samples_dirty = state->min_samples;
+      state->min_samples = 0;
+      state->blend_dirty |= state->blend_state.alpha_to_coverage || state->blend_state.alpha_to_one;
       state->blend_state.alpha_to_coverage = false;
       state->blend_state.alpha_to_one = false;
       state->rs_dirty = true;



More information about the mesa-commit mailing list