panfrost: decode: Fix decode_bifrost_constant() prototype

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>
This commit is contained in:
Boris Brezillon 2020-09-24 08:49:36 +02:00 committed by Marge Bot
parent 7568c97df1
commit 12b00b77c6

View 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);