diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-03-05 16:52:29 -0500 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-07 00:37:39 +0000 |
commit | 977a38c87f5816828fa42d1da02626d69ba1662f (patch) | |
tree | a4c52dc3a98a157eac7aada3033c8dd8727d1cd6 /src/panfrost/bifrost/cmdline.c | |
parent | 55dab92073f14a9b9c42175af9ddc210277bca5e (diff) |
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 <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4097>
Diffstat (limited to 'src/panfrost/bifrost/cmdline.c')
-rw-r--r-- | src/panfrost/bifrost/cmdline.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |