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: d4424950ac ("asahi: Use txf for background program")
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23998>
This commit is contained in:
Alyssa Rosenzweig 2023-06-27 14:19:33 -04:00 committed by Marge Bot
parent 02ac7305a0
commit a28f9738e1

View file

@ -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)));