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