Revert "nir: const `nir_call_instr::callee`"
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 19 Mar 2019 15:18:49 +0000 (10:18 -0500)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 19 Mar 2019 15:19:42 +0000 (10:19 -0500)
commitcbfe31ccbe3eafcb5aeb74457e3b67641fd54ae1
treebacad16b799d2ec4dce2afd78117366463520f06
parent43b6dd05f746f3c946bc6d259c69fad744989c89
Revert "nir: const `nir_call_instr::callee`"

This reverts commit db57db5317e81fb4ce31bc294fdcc199db651542.  When
building IR, nothing is really immutable and, since C has no concept of
constness propagating beyond the first pointer, we have to be vary
careful with how we use it.  To just throw const into a function like
this is a lie.

Instead, we should just drop the unneeded const in spirv_to_nir which
this commit does along with the revert.
src/compiler/nir/nir.c
src/compiler/nir/nir.h
src/compiler/spirv/spirv_to_nir.c