diff options
author | Jason Ekstrand <[email protected]> | 2019-08-20 23:43:56 -0500 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-05-19 20:45:55 +0000 |
commit | 989619c05b97e57d8d8a805954ff4553c4f3763c (patch) | |
tree | b4142c13d3bc347fee43362281b05fe00cfc921d /src/compiler | |
parent | 29afa88941dc9319257f19daacec88eef9e72b29 (diff) |
nir: Add const to nir_intrinsic_src_components
Reviewed-by: Kenneth Graunke <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5108>
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/nir/nir.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); |