From ed4020fabe7c5b9d5f152ece64a2b4bb9b73c2bc Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Fri, 14 Dec 2018 11:08:51 +0000 Subject: [PATCH] nir: fix constness in nir_intrinsic_align() Signed-off-by: Rhys Perry Reviewed-by: Samuel Pitoiset --- src/compiler/nir/nir.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2