From 44e6ea74b0d3119eb12537a284d9376fc91f4c21 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 28 Aug 2015 17:21:19 -0700 Subject: [PATCH] spirv: lower outputs to temporaries --- src/glsl/nir/spirv_to_nir.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/glsl/nir/spirv_to_nir.c b/src/glsl/nir/spirv_to_nir.c index ffaebf10502..612d2fff293 100644 --- a/src/glsl/nir/spirv_to_nir.c +++ b/src/glsl/nir/spirv_to_nir.c @@ -2973,6 +2973,11 @@ spirv_to_nir(const uint32_t *words, size_t word_count, vtn_handle_phi_second_pass); } + /* Because we can still have output reads in NIR, we need to lower + * outputs to temporaries before we are truely finished. + */ + nir_lower_outputs_to_temporaries(shader); + ralloc_free(b); return shader; -- 2.30.2