Use R300_CMD_END3D for end_3d().
authorVladimir Dergachev <volodya@freedesktop.org>
Mon, 27 Dec 2004 23:30:39 +0000 (23:30 +0000)
committerVladimir Dergachev <volodya@freedesktop.org>
Mon, 27 Dec 2004 23:30:39 +0000 (23:30 +0000)
src/mesa/drivers/dri/r300/r300_emit.h

index f420cec2ae6a7693e7f8c1f1681870185b45dace..cd995dcced2a6d1c72faf80fda06e495ff4ae427 100644 (file)
@@ -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