From: Alyssa Rosenzweig Date: Thu, 5 Mar 2020 21:52:29 +0000 (-0500) Subject: pan/bi: Call nir_lower_io_to_temporaries in cmdline X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=977a38c87f5816828fa42d1da02626d69ba1662f;p=mesa.git 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 Part-of: --- diff --git a/src/panfrost/bifrost/cmdline.c b/src/panfrost/bifrost/cmdline.c index 7658c7cc343..73fbaad1360 100644 --- a/src/panfrost/bifrost/cmdline.c +++ b/src/panfrost/bifrost/cmdline.c @@ -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);