From 5f84568a710b61fae9cfc98cc117132007b1f81a Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 17 Feb 2021 14:13:30 -0500 Subject: [PATCH] pan/bi: Don't inline 64-bit constants Will drop the upper bits incorrectly. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/compiler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panfrost/bifrost/compiler.h b/src/panfrost/bifrost/compiler.h index b21acc8..95eb2a6 100644 --- a/src/panfrost/bifrost/compiler.h +++ b/src/panfrost/bifrost/compiler.h @@ -582,7 +582,7 @@ bi_temp_reg(bi_context *ctx) static inline bi_index bi_src_index(nir_src *src) { - if (nir_src_is_const(*src)) + if (nir_src_is_const(*src) && nir_src_bit_size(*src) <= 32) return bi_imm_u32(nir_src_as_uint(*src)); else if (src->is_ssa) return bi_get_index(src->ssa->index, false, 0); -- 2.7.4