summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300/r300_cs_inlines.h
diff options
context:
space:
mode:
authorCorbin Simpson <MostAwesomeDude@gmail.com>2009-03-20 00:43:29 -0700
committerCorbin Simpson <MostAwesomeDude@gmail.com>2009-03-20 14:53:21 -0700
commit8066edb2a254d15ed92c2d350a7799adf3cca0d7 (patch)
treeeb7199af6ff2eb8a5dadadb0dd8614ad29af8441 /src/gallium/drivers/r300/r300_cs_inlines.h
parentf1429580848b471c487e55a9a81b904452f50df5 (diff)
r300-gallium: Simplify/neaten up packet3.
Deck chairs on the Hindenburg. :3
Diffstat (limited to 'src/gallium/drivers/r300/r300_cs_inlines.h')
-rw-r--r--src/gallium/drivers/r300/r300_cs_inlines.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_cs_inlines.h b/src/gallium/drivers/r300/r300_cs_inlines.h
index 03bb608eb9..64bd58193a 100644
--- a/src/gallium/drivers/r300/r300_cs_inlines.h
+++ b/src/gallium/drivers/r300/r300_cs_inlines.h
@@ -36,15 +36,24 @@
OUT_CS(CP_PACKET0(register, ((count) - 1)) | RADEON_ONE_REG_WR); \
} while (0)
+/* XXX might no longer be needed */
#define R300_PACIFY do { \
OUT_CS_REG(RADEON_WAIT_UNTIL, (1 << 14) | (1 << 15) | (1 << 16) | (1 << 17) | \
(1 << 18)); \
} while (0)
+/* XXX do we still use this? */
#define R300_SCREENDOOR do { \
OUT_CS_REG(R300_SC_SCREENDOOR, 0x0); \
R300_PACIFY; \
OUT_CS_REG(R300_SC_SCREENDOOR, 0xffffff); \
} while (0)
+#define CP_PACKET3(op, count) \
+ (RADEON_CP_PACKET3 | (op) | ((count) << 16))
+
+#define R300_CS_PKT3(op, count) do { \
+ OUT_CS(CP_PACKET3(op, count)); \
+} while (0)
+
#endif /* R300_CS_H */