diff options
author | Pauli Nieminen <[email protected]> | 2009-08-27 00:07:05 +0300 |
---|---|---|
committer | Pauli Nieminen <[email protected]> | 2009-08-27 00:07:05 +0300 |
commit | 47d4b9ff70c82956a77e8ea7a6abccaa0a9f9083 (patch) | |
tree | d76d9a65c55c6f0cececaa82498fcef7d2c1e5be /src/mesa/drivers/dri/radeon | |
parent | e0e76edf97d391f0c4be58b9d8b91bed0be56734 (diff) |
radeon: Fix loop en condition so debug output doesn't flood meaningless values.
Diffstat (limited to 'src/mesa/drivers/dri/radeon')
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_common.c | 2 |
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 9b301cd47c6..0894372fad1 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; |