summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir.h
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2019-03-19 09:04:26 +0000
committerEric Engestrom <[email protected]>2019-03-19 12:51:53 +0000
commitdb57db5317e81fb4ce31bc294fdcc199db651542 (patch)
treef22a64053ade0543c1923a7aed2399973c8b2d32 /src/compiler/nir/nir.h
parent76f9ca6cf96e9969a9eeff772cfdee5890ae805e (diff)
nir: const `nir_call_instr::callee`
Fixes: c95afe56a8033a87dca7 "nir/spirv: handle kernel function parameters" Cc: Jason Ekstrand <[email protected]> Signed-off-by: Eric Engestrom <[email protected]> Acked-by: Lionel Landwerlin <[email protected]> Acked-by: Tapani Pälli <[email protected]> Acked-by: Karol Herbst <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir.h')
-rw-r--r--src/compiler/nir/nir.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h
index 067287fab1c..f85b4be5a53 100644
--- a/src/compiler/nir/nir.h
+++ b/src/compiler/nir/nir.h
@@ -1084,7 +1084,7 @@ unsigned nir_deref_instr_ptr_as_array_stride(nir_deref_instr *instr);
typedef struct {
nir_instr instr;
- struct nir_function *callee;
+ const struct nir_function *callee;
unsigned num_params;
nir_src params[];
@@ -2435,7 +2435,7 @@ nir_intrinsic_instr *nir_intrinsic_instr_create(nir_shader *shader,
nir_intrinsic_op op);
nir_call_instr *nir_call_instr_create(nir_shader *shader,
- nir_function *callee);
+ const nir_function *callee);
nir_tex_instr *nir_tex_instr_create(nir_shader *shader, unsigned num_srcs);