diff --git a/src/panfrost/bifrost/bifrost_compile.c b/src/panfrost/bifrost/bifrost_compile.c index a8df91075dd..651eaf7d690 100644 --- a/src/panfrost/bifrost/bifrost_compile.c +++ b/src/panfrost/bifrost/bifrost_compile.c @@ -1514,8 +1514,8 @@ bi_fexp_32(bi_builder *b, bi_index dst, bi_index s0, bi_index log2_base) bi_index fixed_pt = bi_f32_to_s32(b, scale, BI_ROUND_NONE); /* Compute the result for the fixed-point input, but pass along - * the original input for correct NaN propagation */ - bi_fexp_f32_to(b, dst, fixed_pt, s0); + * the floating-point scale for correct NaN propagation */ + bi_fexp_f32_to(b, dst, fixed_pt, scale); } static void