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@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7435>
This commit is contained in:
Dave Airlie 2020-11-03 16:33:16 +10:00 committed by Marge Bot
parent 4ff4d4e569
commit 3dc6da1ac1

View file

@ -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;