From: Rob Clark Date: Mon, 24 Feb 2020 19:55:29 +0000 (-0800) Subject: freedreno/ir3: remove regmask_set_if_not() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c02cd8afbd6a2f2b1aaaec9d499e6ede55aebe8c;p=mesa.git freedreno/ir3: remove regmask_set_if_not() No longer used. Signed-off-by: Rob Clark Part-of: --- diff --git a/src/freedreno/ir3/ir3.h b/src/freedreno/ir3/ir3.h index 609e93f0299..c02b748810c 100644 --- a/src/freedreno/ir3/ir3.h +++ b/src/freedreno/ir3/ir3.h @@ -1623,27 +1623,6 @@ static inline void regmask_or(regmask_t *dst, regmask_t *a, regmask_t *b) (*dst)[i] = (*a)[i] | (*b)[i]; } -/* set bits in a if not set in b, conceptually: - * a |= (reg & ~b) - */ -static inline void regmask_set_if_not(regmask_t *a, - struct ir3_register *reg, regmask_t *b) -{ - unsigned idx = regmask_idx(reg); - if (reg->flags & IR3_REG_RELATIV) { - unsigned i; - for (i = 0; i < reg->size; i++, idx++) - if (!((*b)[idx / 8] & (1 << (idx % 8)))) - (*a)[idx / 8] |= 1 << (idx % 8); - } else { - unsigned mask; - for (mask = reg->wrmask; mask; mask >>= 1, idx++) - if (mask & 1) - if (!((*b)[idx / 8] & (1 << (idx % 8)))) - (*a)[idx / 8] |= 1 << (idx % 8); - } -} - static inline bool regmask_get(regmask_t *regmask, struct ir3_register *reg) {