Mesa (radeon-rewrite): r300: set u to 0 so debug logs are easier to read

Dave Airlie airlied at kemper.freedesktop.org
Mon Feb 23 04:08:01 UTC 2009


Module: Mesa
Branch: radeon-rewrite
Commit: 6ffd472b0e44f835c1c8880e3e27bdd33905e08e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6ffd472b0e44f835c1c8880e3e27bdd33905e08e

Author: Dave Airlie <airlied at redhat.com>
Date:   Mon Feb 23 13:35:10 2009 +1000

r300: set u to 0 so debug logs are easier to read

---

 src/mesa/drivers/dri/r300/r300_emit.h |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/r300/r300_emit.h b/src/mesa/drivers/dri/r300/r300_emit.h
index 6c02646..6bc8f8e 100644
--- a/src/mesa/drivers/dri/r300/r300_emit.h
+++ b/src/mesa/drivers/dri/r300/r300_emit.h
@@ -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;




More information about the mesa-commit mailing list