From dab5b62ecf966e3dd65af6ea0e27bec3aa89881d Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 11 May 2022 12:21:38 -0400 Subject: [PATCH] pan/bi: Remove bi_word and bi_word_node They are no longer used, as offsets are no longer used for normal values (only for FAU). Keep it like that. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/compiler.h | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/panfrost/bifrost/compiler.h b/src/panfrost/bifrost/compiler.h index 0beb224c787..442408ff382 100644 --- a/src/panfrost/bifrost/compiler.h +++ b/src/panfrost/bifrost/compiler.h @@ -200,14 +200,6 @@ bi_passthrough(enum bifrost_packed_src value) }; } -/* Extracts a word from a vectored index */ -static inline bi_index -bi_word(bi_index idx, unsigned component) -{ - idx.offset += component; - return idx; -} - /* Helps construct swizzles */ static inline bi_index bi_swz_16(bi_index idx, bool x, bool y) @@ -1337,13 +1329,6 @@ bi_dontcare(bi_builder *b) return bi_passthrough(BIFROST_SRC_FAU_HI); } -static inline unsigned -bi_word_node(bi_index idx) -{ - assert(idx.type == BI_INDEX_NORMAL && !idx.reg); - return (idx.value << 2) | idx.offset; -} - /* * Vertex ID and Instance ID are preloaded registers. Where they are preloaded * changed from Bifrost to Valhall. Provide helpers that smooth over the