From 47d4b9ff70c82956a77e8ea7a6abccaa0a9f9083 Mon Sep 17 00:00:00 2001 From: Pauli Nieminen Date: Thu, 27 Aug 2009 00:07:05 +0300 Subject: [PATCH] radeon: Fix loop en condition so debug output doesn't flood meaningless values. --- src/mesa/drivers/dri/radeon/radeon_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2