r300: set u to 0 so debug logs are easier to read
authorDave Airlie <airlied@redhat.com>
Mon, 23 Feb 2009 03:35:10 +0000 (13:35 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 23 Feb 2009 04:04:19 +0000 (14:04 +1000)
src/mesa/drivers/dri/r300/r300_emit.h

index 6c026466058702215c40210ae4e8b1255d9c24a7..6bc8f8e9449a8467ef42f31519d02a6e15926f1b 100644 (file)
@@ -50,6 +50,7 @@ static INLINE uint32_t cmdpacket0(struct radeon_screen *rscrn,
     if (!rscrn->kernel_mm) {
            drm_r300_cmd_header_t cmd;
 
+       cmd.u = 0;
        cmd.packet0.cmd_type = R300_CMD_PACKET0;
            cmd.packet0.count = count;
        cmd.packet0.reghi = ((unsigned int)reg & 0xFF00) >> 8;
@@ -67,6 +68,7 @@ static INLINE uint32_t cmdvpu(struct radeon_screen *rscrn, int addr, int count)
 {
        drm_r300_cmd_header_t cmd;
 
+       cmd.u = 0;
        cmd.vpu.cmd_type = R300_CMD_VPU;
        cmd.vpu.count = count;
        cmd.vpu.adrhi = ((unsigned int)addr & 0xFF00) >> 8;
@@ -80,6 +82,7 @@ static INLINE uint32_t cmdr500fp(struct radeon_screen *rscrn,
 {
        drm_r300_cmd_header_t cmd;
 
+       cmd.u = 0;
        cmd.r500fp.cmd_type = R300_CMD_R500FP;
        cmd.r500fp.count = count;
        cmd.r500fp.adrhi_flags = ((unsigned int)addr & 0x100) >> 8;
@@ -94,6 +97,7 @@ static INLINE uint32_t cmdpacket3(struct radeon_screen *rscrn, int packet)
 {
        drm_r300_cmd_header_t cmd;
 
+       cmd.u = 0;
        cmd.packet3.cmd_type = R300_CMD_PACKET3;
        cmd.packet3.packet = packet;
 
@@ -105,6 +109,8 @@ static INLINE uint32_t cmdcpdelay(struct radeon_screen *rscrn,
 {
        drm_r300_cmd_header_t cmd;
 
+       cmd.u = 0;
+
        cmd.delay.cmd_type = R300_CMD_CP_DELAY;
        cmd.delay.count = count;
 
@@ -116,6 +122,7 @@ static INLINE uint32_t cmdwait(struct radeon_screen *rscrn,
 {
        drm_r300_cmd_header_t cmd;
 
+       cmd.u = 0;
        cmd.wait.cmd_type = R300_CMD_WAIT;
        cmd.wait.flags = flags;
 
@@ -126,6 +133,7 @@ static INLINE uint32_t cmdpacify(struct radeon_screen *rscrn)
 {
        drm_r300_cmd_header_t cmd;
 
+       cmd.u = 0;
        cmd.header.cmd_type = R300_CMD_END3D;
 
        return cmd.u;