diff options
author | Jason Ekstrand <jason@jlekstrand.net> | 2020-06-11 13:29:02 -0500 |
---|---|---|
committer | Jason Ekstrand <jason@jlekstrand.net> | 2020-07-23 22:43:21 -0500 |
commit | 196db51fc27090012ce6f94bfffc3909f78c44d3 (patch) | |
tree | 32d3eae620c2017c3a4dc401e974257f2521f474 /src/mesa | |
parent | 66c8628b65c4239022b799a9ef569d1d44819e9e (diff) |
anv,turnip,radv,clover,glspirv: Run nir_copy_prop before nir_opt_deref
We're about to make the SPIR-V -> NIR path generate a bit more complex
SSA chains for certain derefs. This will ensure we don't regress anyone
when we start making vec2's of derefs.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5278>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/glspirv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/glspirv.c b/src/mesa/main/glspirv.c index 64daf54ec42..dc0a0d29dd3 100644 --- a/src/mesa/main/glspirv.c +++ b/src/mesa/main/glspirv.c @@ -285,6 +285,7 @@ _mesa_spirv_to_nir(struct gl_context *ctx, NIR_PASS_V(nir, nir_lower_variable_initializers, nir_var_function_temp); NIR_PASS_V(nir, nir_lower_returns); NIR_PASS_V(nir, nir_inline_functions); + NIR_PASS_V(nir, nir_copy_prop); NIR_PASS_V(nir, nir_opt_deref); /* Pick off the single entrypoint that we want */ |