From a28f9738e1781ebdfb6e485284544905793d42d3 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 27 Jun 2023 14:19:33 -0400 Subject: [PATCH] asahi: Use txf_ms for MSAA background programs Fixes regression in assorted dEQP tests including: dEQP-EGL.functional.color_clears.multi_context.gles3.rgba8888_window Fixes: d4424950ace ("asahi: Use txf for background program") Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/lib/agx_meta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/asahi/lib/agx_meta.c b/src/asahi/lib/agx_meta.c index 70c593c2493..b21e5994859 100644 --- a/src/asahi/lib/agx_meta.c +++ b/src/asahi/lib/agx_meta.c @@ -44,7 +44,7 @@ build_background_op(nir_builder *b, enum agx_meta_op op, unsigned rt, /* The type doesn't matter as long as it matches the store */ tex->dest_type = nir_type_uint32; tex->sampler_dim = msaa ? GLSL_SAMPLER_DIM_MS : GLSL_SAMPLER_DIM_2D; - tex->op = nir_texop_txf; + tex->op = msaa ? nir_texop_txf_ms : nir_texop_txf; tex->src[0] = nir_tex_src_for_ssa(nir_tex_src_coord, nir_u2u32(b, nir_load_pixel_coord(b)));