mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
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 cbd4bc1346)
This commit is contained in:
parent
d449afaa55
commit
d963a16352
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue