summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/radeon
diff options
context:
space:
mode:
authorPauli Nieminen <[email protected]>2009-08-12 00:05:24 +0300
committerPauli Nieminen <[email protected]>2009-08-21 19:12:29 +0300
commit0f41259eff62e341e9bfe6ec39f2a7fb8f1c7656 (patch)
treebb386366becd4d8c96b5fd1a5c50c3f578dc07dd /src/mesa/drivers/dri/radeon
parentfb1d0bfd47fb8790e0b350a0fad7bc0af39e70f4 (diff)
r200: Fix atom->check call to return emit size for atom.
This patch makes render emit size prediction count the corect maximum emit size for state. Signed-off-by: Pauli Nieminen <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/radeon')
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_common.c b/src/mesa/drivers/dri/radeon/radeon_common.c
index 20cf1f9a56c..4240ec5f18a 100644
--- a/src/mesa/drivers/dri/radeon/radeon_common.c
+++ b/src/mesa/drivers/dri/radeon/radeon_common.c
@@ -926,10 +926,10 @@ static void radeon_print_state_atom_kmm(radeonContextPtr radeon, struct radeon_s
int dwords = (*state->check) (radeon->glCtx, state);
uint32_t packet0;
- fprintf(stderr, " emit %s %d/%d\n", state->name, dwords, state->cmd_size);
+ fprintf(stderr, " emit %s %d/%d\n", state->name, state->cmd_size, dwords);
if (RADEON_DEBUG & DEBUG_VERBOSE) {
- for (i = 0; i < dwords;) {
+ for (i = 0; i < state->cmd_size;) {
packet0 = state->cmd[i];
reg = (packet0 & 0x1FFF) << 2;
count = ((packet0 & 0x3FFF0000) >> 16) + 1;