panfrost: decode: Fix decode_bifrost_constant() prototype
authorBoris Brezillon <boris.brezillon@collabora.com>
Thu, 24 Sep 2020 06:49:36 +0000 (08:49 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 2 Oct 2020 16:29:26 +0000 (16:29 +0000)
We expect a float, not an integer.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6886>

src/panfrost/lib/decode.c

index 6356796..ef0d151 100644 (file)
@@ -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);