mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 06:00:14 +01:00
nak: Use more core NIR texture lowering
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24998>
This commit is contained in:
parent
ad01fbdda0
commit
9d7e1d515f
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue