nak: Use more core NIR texture lowering

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24998>
This commit is contained in:
Faith Ekstrand 2023-04-10 17:23:32 -05:00 committed by Marge Bot
parent ad01fbdda0
commit 9d7e1d515f

View file

@ -186,10 +186,15 @@ nak_preprocess_nir(nir_shader *nir, const struct nak_compiler *nak)
OPT(nir, nir_lower_bit_size, lower_bit_size_cb, (void *)nak);
const nir_lower_tex_options tex_options = {
.lower_txd_3d = true,
.lower_txd_cube_map = true,
.lower_txd_clamp = true,
.lower_txd_shadow = true,
.lower_txp = ~0,
/* TODO: More lowering */
};
OPT(nir, nir_lower_tex, &tex_options);
OPT(nir, nir_normalize_cubemap_coords);
OPT(nir, nir_lower_global_vars_to_local);