summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPauli Nieminen <suokkos@gmail.com>2009-08-27 00:07:05 +0300
committerPauli Nieminen <suokkos@gmail.com>2009-08-27 00:07:05 +0300
commit47d4b9ff70c82956a77e8ea7a6abccaa0a9f9083 (patch)
treed76d9a65c55c6f0cececaa82498fcef7d2c1e5be
parente0e76edf97d391f0c4be58b9d8b91bed0be56734 (diff)
radeon: Fix loop en condition so debug output doesn't flood meaningless values.
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_common.c b/src/mesa/drivers/dri/radeon/radeon_common.c
index 9b301cd47c..0894372fad 100644
--- a/src/mesa/drivers/dri/radeon/radeon_common.c
+++ b/src/mesa/drivers/dri/radeon/radeon_common.c
@@ -952,7 +952,7 @@ static void radeon_print_state_atom(radeonContextPtr radeon, struct radeon_state
if (DEBUG_CMDBUF > 1 && RADEON_DEBUG & DEBUG_VERBOSE) {
if (dwords > state->cmd_size)
dwords = state->cmd_size;
- for (i = 0; i < state->cmd_size;) {
+ for (i = 0; i < dwords;) {
packet0 = state->cmd[i];
reg = (packet0 & 0x1FFF) << 2;
count = ((packet0 & 0x3FFF0000) >> 16) + 1;