Skip to content

mesa/st: Set uses_sample_shading when forcing per-sample

Alyssa Rosenzweig requested to merge alyssa/mesa:mesa/per-sample-metadata into main

In addition to requiring per-sample interpolation, sample shading changes the behaviour of gl_SampleMaskIn, so we need per-sample shading even if there are no shader-in variables at all. In that case, uses_sample_shading won't be set by glsl_to_nir. We need to do so here.

Affected dEQP test on asahi:

dEQP-GLES31.functional.shaders.sample_variables.sample_mask_in.bits_unique_per_two_samples.multisample_texture_4

Signed-off-by: Alyssa Rosenzweig alyssa@rosenzweig.io

Merge request reports