projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7568c97
)
panfrost: decode: Fix decode_bifrost_constant() prototype
author
Boris Brezillon
<boris.brezillon@collabora.com>
Thu, 24 Sep 2020 06:49:36 +0000
(08:49 +0200)
committer
Marge 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
patch
|
blob
|
history
diff --git
a/src/panfrost/lib/decode.c
b/src/panfrost/lib/decode.c
index
6356796
..
ef0d151
100644
(file)
--- 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);