summaryrefslogtreecommitdiff
path: root/src/panfrost/util
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>2023-07-20 08:24:40 -0400
committerMarge Bot <emma+marge@anholt.net>2023-07-21 11:25:48 +0000
commita8c0b6695fc14922ace05a72c5096a8355f0a5b8 (patch)
treec0bb282ec7f93954298d3e4908dbadc83c7d8c36 /src/panfrost/util
parenta08286f993a5d354de84d81e7bd85c1d7eee5a2a (diff)
panfrost: Remove unused helpers
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24253>
Diffstat (limited to 'src/panfrost/util')
-rw-r--r--src/panfrost/util/pan_ir.h29
1 files changed, 0 insertions, 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);