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

Author: Alyssa Rosenzweig <[email protected]>
Date:   Thu Jul 20 08:24:40 2023 -0400

panfrost: Remove unused helpers

Signed-off-by: Alyssa Rosenzweig <[email protected]>
Reviewed-by: Faith Ekstrand <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24253>

---

 src/panfrost/util/pan_ir.h | 29 -----------------------------
 1 file changed, 29 deletions(-)

diff --git a/src/panfrost/util/pan_ir.h b/src/panfrost/util/pan_ir.h
index 0faf816ec5b..5551fc7526a 100644
--- a/src/panfrost/util/pan_ir.h
+++ b/src/panfrost/util/pan_ir.h
@@ -386,35 +386,6 @@ void pan_block_add_successor(pan_block *block, pan_block 
*successor);
 /* IR indexing */
 #define PAN_IS_REG (1)
 
-static inline unsigned
-pan_ssa_index(nir_ssa_def *ssa)
-{
-   /* Off-by-one ensures BIR_NO_ARG is skipped */
-   return ((ssa->index + 1) << 1) | 0;
-}
-
-static inline unsigned
-pan_src_index(nir_src *src)
-{
-   if (src->is_ssa)
-      return pan_ssa_index(src->ssa);
-   else {
-      assert(!src->reg.indirect);
-      return (src->reg.reg->index << 1) | PAN_IS_REG;
-   }
-}
-
-static inline unsigned
-pan_dest_index(nir_dest *dst)
-{
-   if (dst->is_ssa)
-      return pan_ssa_index(&dst->ssa);
-   else {
-      assert(!dst->reg.indirect);
-      return (dst->reg.reg->index << 1) | PAN_IS_REG;
-   }
-}
-
 /* IR printing helpers */
 void pan_print_alu_type(nir_alu_type t, FILE *fp);
 

Reply via email to