summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/ir3/ir3.h
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2017-11-09 10:48:52 -0500
committerRob Clark <[email protected]>2017-11-12 12:28:59 -0500
commitdd75abc6f3909a2ed9e8e7c5a533be11c124a509 (patch)
tree2df244c2d933a7678d638f2dac47070f0181bbb2 /src/gallium/drivers/freedreno/ir3/ir3.h
parent2f8bdf2e2b8cc516b89cd042962d5dab81a695ec (diff)
freedreno/ir3: some SSBO cleanups/fixes
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/ir3/ir3.h')
-rw-r--r--src/gallium/drivers/freedreno/ir3/ir3.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/ir3.h b/src/gallium/drivers/freedreno/ir3/ir3.h
index b85e5e38bda..e5b1a2dce09 100644
--- a/src/gallium/drivers/freedreno/ir3/ir3.h
+++ b/src/gallium/drivers/freedreno/ir3/ir3.h
@@ -893,6 +893,8 @@ static inline unsigned ir3_cat3_absneg(opc_t opc)
}
}
+#define MASK(n) ((1 << (n)) - 1)
+
/* iterator for an instructions's sources (reg), also returns src #: */
#define foreach_src_n(__srcreg, __n, __instr) \
if ((__instr)->regs_count) \