From 12b00b77c6f1d9f0ec2353fbe5dc91ad54779667 Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Thu, 24 Sep 2020 08:49:36 +0200 Subject: [PATCH] panfrost: decode: Fix decode_bifrost_constant() prototype We expect a float, not an integer. Signed-off-by: Boris Brezillon Reviewed-by: Alyssa Rosenzweig Part-of: --- src/panfrost/lib/decode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panfrost/lib/decode.c b/src/panfrost/lib/decode.c index 63567968a44..ef0d151c613 100644 --- a/src/panfrost/lib/decode.c +++ b/src/panfrost/lib/decode.c @@ -589,7 +589,7 @@ pandecode_shader_address(const char *name, mali_ptr ptr) /* Decodes a Bifrost blend constant. See the notes in bifrost_blend_rt */ -static unsigned +static float decode_bifrost_constant(u16 constant) { float lo = (float) (constant & 0xFF);