ctx_disassemble_program(struct gen_batch_decode_ctx *ctx,
uint32_t ksp, const char *type)
{
- uint64_t addr = ctx->instruction_base.addr + ksp;
+ uint64_t addr = ctx->instruction_base + ksp;
struct gen_batch_decode_bo bo = ctx_get_bo(ctx, addr);
if (!bo.map)
return;
while (gen_field_iterator_next(&iter)) {
if (strcmp(iter.name, "Surface State Base Address") == 0) {
- ctx->surface_base = ctx_get_bo(ctx, iter.raw_value);
+ ctx->surface_base = iter.raw_value;
} else if (strcmp(iter.name, "Dynamic State Base Address") == 0) {
- ctx->dynamic_base = ctx_get_bo(ctx, iter.raw_value);
+ ctx->dynamic_base = iter.raw_value;
} else if (strcmp(iter.name, "Instruction Base Address") == 0) {
- ctx->instruction_base = ctx_get_bo(ctx, iter.raw_value);
+ ctx->instruction_base = iter.raw_value;
}
}
}
}
struct gen_batch_decode_bo bind_bo =
- ctx_get_bo(ctx, ctx->surface_base.addr + offset);
+ ctx_get_bo(ctx, ctx->surface_base + offset);
if (bind_bo.map == NULL) {
fprintf(ctx->fp, " binding table unavailable\n");
if (pointers[i] == 0)
continue;
- uint64_t addr = ctx->surface_base.addr + pointers[i];
+ uint64_t addr = ctx->surface_base + pointers[i];
struct gen_batch_decode_bo bo = ctx_get_bo(ctx, addr);
uint32_t size = strct->dw_length * 4;
if (count < 0)
count = update_count(ctx, offset, strct->dw_length, 4);
- uint64_t state_addr = ctx->dynamic_base.addr + offset;
+ uint64_t state_addr = ctx->dynamic_base + offset;
struct gen_batch_decode_bo bo = ctx_get_bo(ctx, state_addr);
const void *state_map = bo.map;
}
}
- uint64_t desc_addr = ctx->dynamic_base.addr + descriptor_offset;
+ uint64_t desc_addr = ctx->dynamic_base + descriptor_offset;
struct gen_batch_decode_bo bo = ctx_get_bo(ctx, desc_addr);
const void *desc_map = bo.map;
}
}
- uint64_t state_addr = ctx->dynamic_base.addr + state_offset;
+ uint64_t state_addr = ctx->dynamic_base + state_offset;
struct gen_batch_decode_bo bo = ctx_get_bo(ctx, state_addr);
const void *state_map = bo.map;