asahi: use NIR_PASS to validate more

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33682>
This commit is contained in:
Alyssa Rosenzweig 2025-01-24 16:57:27 -05:00 committed by Marge Bot
parent 290b8da8b6
commit e203d04f43

View file

@ -41,13 +41,13 @@ agx_compile_bg_eot_shader(struct agx_bg_eot_cache *cache, nir_shader *shader,
agx_preprocess_nir(shader);
if (tib) {
unsigned bindless_base = 0;
agx_nir_lower_tilebuffer(shader, tib, NULL, &bindless_base, NULL, NULL);
agx_nir_lower_monolithic_msaa(shader, tib->nr_samples);
agx_nir_lower_multisampled_image_store(shader);
agx_nir_lower_texture(shader);
nir_shader_intrinsics_pass(shader, lower_tex_handle_to_u0,
nir_metadata_control_flow, NULL);
NIR_PASS(_, shader, agx_nir_lower_tilebuffer, tib, NULL, &bindless_base,
NULL, NULL);
NIR_PASS(_, shader, agx_nir_lower_monolithic_msaa, tib->nr_samples);
NIR_PASS(_, shader, agx_nir_lower_multisampled_image_store);
NIR_PASS(_, shader, agx_nir_lower_texture);
NIR_PASS(_, shader, nir_shader_intrinsics_pass, lower_tex_handle_to_u0,
nir_metadata_control_flow, NULL);
}
struct agx_bg_eot_shader *res = rzalloc(cache->ht, struct agx_bg_eot_shader);