nir: Add const to nir_intrinsic_src_components
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 21 Aug 2019 04:43:56 +0000 (23:43 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 19 May 2020 20:45:55 +0000 (20:45 +0000)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5108>

src/compiler/nir/nir.h

index ba9c030df9b9b0660cbf68b2e435fb7d40fea37b..d32bbab5dfc8fdd6e91866dcf06176d1abd35ef6 100644 (file)
@@ -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);