From: Jason Ekstrand Date: Sat, 29 Aug 2015 00:21:19 +0000 (-0700) Subject: spirv: lower outputs to temporaries X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=44e6ea74b0d3119eb12537a284d9376fc91f4c21;p=mesa.git spirv: lower outputs to temporaries --- 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;