From c66be7521fb49b3e222912959a79b0778962b3a4 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Sun, 9 Apr 2023 10:21:32 -0400 Subject: [PATCH] nir/lower_blend: Enable per-sample shading Loading output require per-sample blending, so enable per-sample execution of the shader as a whole so the right sample values are blended. Affects: dEQP-GLES31.functional.multisample.default_framebuffer.sample_mask_sum_of_inverses Signed-off-by: Alyssa Rosenzweig Reviewed-by: Faith Ekstrand Part-of: --- src/compiler/nir/nir_lower_blend.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compiler/nir/nir_lower_blend.c b/src/compiler/nir/nir_lower_blend.c index f61a22178ca..bfbf985fa2e 100644 --- a/src/compiler/nir/nir_lower_blend.c +++ b/src/compiler/nir/nir_lower_blend.c @@ -533,6 +533,7 @@ nir_lower_blend_instr(nir_builder *b, nir_instr *instr, void *data) b->shader->info.outputs_read |= BITFIELD64_BIT(sem.location); b->shader->info.fs.uses_fbfetch_output = true; + b->shader->info.fs.uses_sample_shading = true; sem.fb_fetch_output = true; dst = nir_load_output(b, 4, nir_src_bit_size(store->src[0]),