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>
}
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 =
typedef struct {
nir_instr instr;
- struct nir_function *callee;
+ const struct nir_function *callee;
unsigned num_params;
nir_src params[];
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);