From: Rhys Perry Date: Fri, 14 Dec 2018 11:08:51 +0000 (+0000) Subject: nir: fix constness in nir_intrinsic_align() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ed4020fabe7c5b9d5f152ece64a2b4bb9b73c2bc;p=mesa.git nir: fix constness in nir_intrinsic_align() Signed-off-by: Rhys Perry Reviewed-by: Samuel Pitoiset --- diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index e8be2e101cc..403f3b066d3 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -1376,7 +1376,7 @@ nir_intrinsic_set_align(nir_intrinsic_instr *intrin, * to satisfy X % align == 0. */ static inline unsigned -nir_intrinsic_align(nir_intrinsic_instr *intrin) +nir_intrinsic_align(const nir_intrinsic_instr *intrin) { const unsigned align_mul = nir_intrinsic_align_mul(intrin); const unsigned align_offset = nir_intrinsic_align_offset(intrin);