jay: fix omask on single sample

dEQP-GLES31.functional.shaders.sample_variables.sample_mask.discard_half_per_pixel.singlesample_rbo

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41688>
This commit is contained in:
Alyssa Rosenzweig 2026-05-19 13:35:56 -04:00 committed by Marge Bot
parent 6a02e228bc
commit 1e31be0e52

View file

@ -779,6 +779,11 @@ jay_emit_fb_write(jay_builder *b, nir_intrinsic_instr *intr)
const int target = MAX2(((signed) nir_intrinsic_target(intr)), 0);
const bool last = !nir_instr_next(&intr->instr);
/* The hardware freaks out if we give it an omask without multisampling. */
if (!b->shader->prog_data->fs.uses_omask) {
omask = jay_null();
}
/* If our alpha happens to match src0_alpha, we can skip sending it,
* as the hardware will use our alpha in that case.
*/