From: Alyssa Rosenzweig Date: Fri, 13 Dec 2019 15:09:16 +0000 (-0500) Subject: pan/midgard: Remove unused ld/st packing hepers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f204791cd6cf5998b04ea9df2d8de37c89adda56;p=mesa.git pan/midgard: Remove unused ld/st packing hepers Identified by cppcheck. Signed-off-by: Alyssa Rosenzweig --- diff --git a/src/panfrost/midgard/helpers.h b/src/panfrost/midgard/helpers.h index 9cfb9fe780f..cf70884bf45 100644 --- a/src/panfrost/midgard/helpers.h +++ b/src/panfrost/midgard/helpers.h @@ -323,22 +323,4 @@ midgard_ldst_reg(unsigned reg, unsigned component) return packed; } -/* Unpacks a load/store argument */ - -static inline midgard_ldst_register_select -midgard_ldst_select(uint8_t u) -{ - midgard_ldst_register_select sel; - memcpy(&sel, &u, sizeof(u)); - return sel; -} - -static inline uint8_t -midgard_ldst_pack(midgard_ldst_register_select sel) -{ - uint8_t packed; - memcpy(&packed, &sel, sizeof(packed)); - return packed; -} - #endif