From: Alyssa Rosenzweig Date: Sun, 9 Apr 2023 14:21:32 +0000 (-0400) Subject: nir/lower_blend: Enable per-sample shading X-Git-Tag: upstream/23.3.3~10202 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c66be7521fb49b3e222912959a79b0778962b3a4;p=platform%2Fupstream%2Fmesa.git 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: --- diff --git a/src/compiler/nir/nir_lower_blend.c b/src/compiler/nir/nir_lower_blend.c index f61a221..bfbf985 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]),