From 1e31be0e5220f50f451e472c11a6bae20408d179 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 19 May 2026 13:35:56 -0400 Subject: [PATCH] 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 Part-of: --- src/intel/compiler/jay/jay_from_nir.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/intel/compiler/jay/jay_from_nir.c b/src/intel/compiler/jay/jay_from_nir.c index c23c45c6851..722313ccf6c 100644 --- a/src/intel/compiler/jay/jay_from_nir.c +++ b/src/intel/compiler/jay/jay_from_nir.c @@ -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. */