mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
pan/bi: Call nir_lower_io_to_temporaries in cmdline
Normally mesa/st would do this for us, but we're using the standalone compiler (in advance of having the hardware) and need this pass particularly for fragment writeout. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4097>
This commit is contained in:
parent
55dab92073
commit
977a38c87f
1 changed files with 1 additions and 0 deletions
|
|
@ -55,6 +55,7 @@ compile_shader(char **argv)
|
|||
for (unsigned i = 0; i < 2; ++i) {
|
||||
nir[i] = glsl_to_nir(&local_ctx, prog, shader_types[i], &bifrost_nir_options);
|
||||
NIR_PASS_V(nir[i], nir_lower_global_vars_to_local);
|
||||
NIR_PASS_V(nir[i], nir_lower_io_to_temporaries, nir_shader_get_entrypoint(nir[i]), true, i == 0);
|
||||
NIR_PASS_V(nir[i], nir_split_var_copies);
|
||||
NIR_PASS_V(nir[i], nir_lower_var_copies);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue