Mesa (master): gallium: add a non-multisample sample mask out behaviour flag.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Nov 4 02:44:17 UTC 2020


Module: Mesa
Branch: master
Commit: 3dc6da1ac1f5be2d6421940739b88f7e8d36cdf9
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3dc6da1ac1f5be2d6421940739b88f7e8d36cdf9

Author: Dave Airlie <airlied at redhat.com>
Date:   Tue Nov  3 16:33:16 2020 +1000

gallium: add a non-multisample sample mask out behaviour flag.

Vulkan/DX want to use output sample mask even when not multisampling
GL wants it ignored.

Add a rasterizer flag to lavapipe can get correct behaviour.

Reviewed-by: Roland Scheidegger <sroland at vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7435>

---

 src/gallium/include/pipe/p_state.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h
index 0ae0297e30b..fbf463618da 100644
--- a/src/gallium/include/pipe/p_state.h
+++ b/src/gallium/include/pipe/p_state.h
@@ -111,6 +111,7 @@ struct pipe_rasterizer_state
    unsigned point_tri_clip:1; /** large points clipped as tris or points */
    unsigned point_size_per_vertex:1; /**< size computed in vertex shader */
    unsigned multisample:1;         /* XXX maybe more ms state in future */
+   unsigned no_ms_sample_mask_out;
    unsigned force_persample_interp:1;
    unsigned line_smooth:1;
    unsigned line_stipple_enable:1;



More information about the mesa-commit mailing list