Mesa (main): panfrost: Don't shadow Mesa's fui()

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Dec 6 21:18:32 UTC 2021


Module: Mesa
Branch: main
Commit: 745d7db74813b8e1ce52c879e0bbffde2ca6e6c1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=745d7db74813b8e1ce52c879e0bbffde2ca6e6c1

Author: Alyssa Rosenzweig <alyssa at collabora.com>
Date:   Thu Nov 18 22:43:36 2021 -0500

panfrost: Don't shadow Mesa's fui()

Will fix a compiler error when we #include the Valhall disassembler
header from pandecode.

Fixes: 688827f3c52 ("pan/va: Add disassembler generator")
Signed-off-by: Alyssa Rosenzweig <alyssa at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14063>

---

 src/panfrost/bifrost/valhall/disassemble.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/panfrost/bifrost/valhall/disassemble.h b/src/panfrost/bifrost/valhall/disassemble.h
index 7bde8b3cb9d..973888cc1ca 100644
--- a/src/panfrost/bifrost/valhall/disassemble.h
+++ b/src/panfrost/bifrost/valhall/disassemble.h
@@ -13,7 +13,6 @@
 #define MASK(count) ((1ull << (count)) - 1)
 #define SEXT(b, count) ((b ^ BIT(count - 1)) - BIT(count - 1))
 #define UNUSED __attribute__((unused))
-static inline float fui(uint32_t u) { float f; memcpy(&f, &u, 4); return f; }
 
 #define VA_SRC_UNIFORM_TYPE 0x2
 #define VA_SRC_IMM_TYPE 0x3



More information about the mesa-commit mailing list