summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVladimir Dergachev <volodya@freedesktop.org>2004-12-27 23:30:39 +0000
committerVladimir Dergachev <volodya@freedesktop.org>2004-12-27 23:30:39 +0000
commit6a50fc43cb856ce3e3b2a5ad7ca67bd5135cf4c6 (patch)
tree7f24323229ab1714af353d10e88b3e8a44adef81
parentc6cca6a3b8f3572687544514be52fb400e578878 (diff)
Use R300_CMD_END3D for end_3d().
-rw-r--r--src/mesa/drivers/dri/r300/r300_emit.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_emit.h b/src/mesa/drivers/dri/r300/r300_emit.h
index f420cec2ae6..cd995dcced2 100644
--- a/src/mesa/drivers/dri/r300/r300_emit.h
+++ b/src/mesa/drivers/dri/r300/r300_emit.h
@@ -136,5 +136,17 @@ static __inline__ uint32_t cmdvpu(int addr, int count)
cmd_written=1; \
cmd[0].i=cmdvpu((dest), _n/4); \
}
-
+
+ /* must be sent to switch to 2d commands */
+void static inline end_3d(PREFIX_VOID)
+{
+LOCAL_VARS
+
+cmd=(drm_radeon_cmd_header_t *) r300AllocCmdBuf(rmesa, \
+ 0, \
+ __FUNCTION__); \
+
+cmd[0].header.cmd_type=R300_CMD_END3D;
+}
+
#endif