aboutsummaryrefslogtreecommitdiffstats
path: root/src/freedreno
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2020-02-24 11:55:29 -0800
committerMarge Bot <[email protected]>2020-02-28 16:53:41 +0000
commitc02cd8afbd6a2f2b1aaaec9d499e6ede55aebe8c (patch)
tree247d5c744497f00215a758cdb0a91602f74bad32 /src/freedreno
parent2fa64729db95655d61b92c5e155a4746101c1cfc (diff)
freedreno/ir3: remove regmask_set_if_not()
No longer used. Signed-off-by: Rob Clark <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3989>
Diffstat (limited to 'src/freedreno')
-rw-r--r--src/freedreno/ir3/ir3.h21
1 files changed, 0 insertions, 21 deletions
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)
{