spirv: lower outputs to temporaries
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 29 Aug 2015 00:21:19 +0000 (17:21 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 29 Aug 2015 00:38:41 +0000 (17:38 -0700)
src/glsl/nir/spirv_to_nir.c

index ffaebf10502fff1066dee59ef2baf222a5da170e..612d2fff29311740c9ddc44aa0fc847f0864e450 100644 (file)
@@ -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;