summaryrefslogtreecommitdiff
path: root/src/compiler/nir/nir.c
diff options
context:
space:
mode:
authorEric Engestrom <eric.engestrom@intel.com>2019-03-19 09:04:26 +0000
committerEric Engestrom <eric.engestrom@intel.com>2019-03-19 12:51:53 +0000
commitdb57db5317e81fb4ce31bc294fdcc199db651542 (patch)
treef22a64053ade0543c1923a7aed2399973c8b2d32 /src/compiler/nir/nir.c
parent76f9ca6cf96e9969a9eeff772cfdee5890ae805e (diff)
downloadmesa-db57db5317e81fb4ce31bc294fdcc199db651542.tar.gz
nir: const `nir_call_instr::callee`
Fixes: c95afe56a8033a87dca7 "nir/spirv: handle kernel function parameters" Cc: Jason Ekstrand <jason@jlekstrand.net> Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Acked-by: Tapani Pälli <tapani.palli@intel.com> Acked-by: Karol Herbst <kherbst@redhat.com>
Diffstat (limited to 'src/compiler/nir/nir.c')
-rw-r--r--src/compiler/nir/nir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir.c b/src/compiler/nir/nir.c
index 4a7c757db3a..62a80aa87ac 100644
--- a/src/compiler/nir/nir.c
+++ b/src/compiler/nir/nir.c
@@ -515,7 +515,7 @@ nir_intrinsic_instr_create(nir_shader *shader, nir_intrinsic_op op)
}
nir_call_instr *
-nir_call_instr_create(nir_shader *shader, nir_function *callee)
+nir_call_instr_create(nir_shader *shader, const nir_function *callee)
{
const unsigned num_params = callee->num_params;
nir_call_instr *instr =