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>
This commit is contained in:
committed by
Marge Bot
parent
a08286f993
commit
a8c0b6695f
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user