From: Jason Ekstrand Date: Wed, 21 Aug 2019 04:43:56 +0000 (-0500) Subject: nir: Add const to nir_intrinsic_src_components X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=989619c05b97e57d8d8a805954ff4553c4f3763c;p=mesa.git nir: Add const to nir_intrinsic_src_components Reviewed-by: Kenneth Graunke Part-of: --- diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index ba9c030df9b..d32bbab5dfc 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -1739,7 +1739,7 @@ typedef struct { extern const nir_intrinsic_info nir_intrinsic_infos[nir_num_intrinsics]; static inline unsigned -nir_intrinsic_src_components(nir_intrinsic_instr *intr, unsigned srcn) +nir_intrinsic_src_components(const nir_intrinsic_instr *intr, unsigned srcn) { const nir_intrinsic_info *info = &nir_intrinsic_infos[intr->intrinsic]; assert(srcn < info->num_srcs);