From 3dc6da1ac1f5be2d6421940739b88f7e8d36cdf9 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 3 Nov 2020 16:33:16 +1000 Subject: [PATCH] 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 Part-of: --- 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;