radeon: Fix loop en condition so debug output doesn't flood meaningless values.

This commit is contained in:
Pauli Nieminen 2009-08-27 00:07:05 +03:00
parent e0e76edf97
commit 47d4b9ff70
1 changed files with 1 additions and 1 deletions

View File

@ -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;