summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2018-08-24 16:04:03 -0500
committerAndres Gomez <agomez@igalia.com>2018-08-28 15:50:59 +0300
commitd963a1635292388f278367a453a76dd7acb688eb (patch)
tree75f9fff564bc71605cdd5294967c4921ec01fc36
parentd449afaa55dbeff89119a5093d15950267581758 (diff)
intel/batch_decoder: Fix dynamic state printing
Instead of printing addresses like everyone else, we were accidentally printing the offset from state base address. Also, state_map is a void pointer so we were incrementing in bytes instead of dwords and every state other than the first was wrong. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> (cherry picked from commit cbd4bc1346f7397242e157bb66099b950a8c5643)
-rw-r--r--src/intel/common/gen_batch_decoder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/common/gen_batch_decoder.c b/src/intel/common/gen_batch_decoder.c
index f5be0018afc..9297dd4a691 100644
--- a/src/intel/common/gen_batch_decoder.c
+++ b/src/intel/common/gen_batch_decoder.c
@@ -666,10 +666,10 @@ decode_dynamic_state_pointers(struct gen_batch_decode_ctx *ctx,
for (int i = 0; i < count; i++) {
fprintf(ctx->fp, "%s %d\n", struct_type, i);
- ctx_print_group(ctx, state, state_offset, state_map);
+ ctx_print_group(ctx, state, state_addr, state_map);
state_addr += state->dw_length * 4;
- state_map += state->dw_length;
+ state_map += state->dw_length * 4;
}
}