summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Dergachev <volodya@freedesktop.org>2005-03-03 23:18:19 +0000
committerVladimir Dergachev <volodya@freedesktop.org>2005-03-03 23:18:19 +0000
commit984d52762665d0a23b55e950a33e89174279eda3 (patch)
tree138bc8945346be70a3248f9298fa356f0cac6d02
parentfdb5a87f91c80e271f78cdaaa3359c7b4d81319b (diff)
Add a couple of helper functions for completeness.
-rw-r--r--src/mesa/drivers/dri/r300/r300_emit.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_emit.h b/src/mesa/drivers/dri/r300/r300_emit.h
index 4c155eb64b..eb2a913f1c 100644
--- a/src/mesa/drivers/dri/r300/r300_emit.h
+++ b/src/mesa/drivers/dri/r300/r300_emit.h
@@ -107,6 +107,25 @@ static __inline__ uint32_t cmdcpdelay(unsigned short count)
return cmd.u;
}
+static __inline__ uint32_t cmdwait(unsigned char flags)
+{
+ drm_r300_cmd_header_t cmd;
+
+ cmd.wait.cmd_type = R300_CMD_WAIT;
+ cmd.wait.flags = flags;
+
+ return cmd.u;
+}
+
+static __inline__ uint32_t cmdpacify(void)
+{
+ drm_r300_cmd_header_t cmd;
+
+ cmd.header.cmd_type = R300_CMD_END3D;
+
+ return cmd.u;
+}
+
/* Prepare to write a register value to register at address reg.
If num_extra > 0 then the following extra values are written
to registers with address +4, +8 and so on.. */