}
}
-static void
-decode_structure(struct gen_spec *spec, struct gen_group *strct,
- const uint32_t *p)
-{
- decode_group(spec, strct, p, 0);
-}
-
static void
dump_binding_table(struct gen_spec *spec, uint32_t offset)
{
fprintf(outfile, "pointer %u: %08x\n", i, pointers[i]);
}
- decode_structure(spec, surface_state, gtt + start);
+ decode_group(spec, surface_state, gtt + start, 0);
}
}
start = dynamic_state_base + offset;
for (i = 0; i < 4; i++) {
fprintf(outfile, "sampler state %d\n", i);
- decode_structure(spec, sampler_state, gtt + start + i * 16);
+ decode_group(spec, sampler_state, gtt + start + i * 16, 0);
}
}
descriptors = gtt + start;
for (i = 0; i < length; i++, descriptors += 8) {
fprintf(outfile, "descriptor %u: %08x\n", i, *descriptors);
- decode_structure(spec, descriptor_structure, descriptors);
+ decode_group(spec, descriptor_structure, descriptors, 0);
start = instruction_base + descriptors[0];
if (!valid_offset(start)) {
start = dynamic_state_base + (p[1] & ~0x1fu);
for (uint32_t i = 0; i < 4; i++) {
fprintf(outfile, "viewport %d\n", i);
- decode_structure(spec, cc_viewport, gtt + start + i * 8);
+ decode_group(spec, cc_viewport, gtt + start + i * 8, 0);
}
}
start = dynamic_state_base + (p[1] & ~0x3fu);
for (uint32_t i = 0; i < 4; i++) {
fprintf(outfile, "viewport %d\n", i);
- decode_structure(spec, sf_clip_viewport, gtt + start + i * 64);
+ decode_group(spec, sf_clip_viewport, gtt + start + i * 64, 0);
}
}
blend_state = gen_spec_find_struct(spec, "BLEND_STATE");
start = dynamic_state_base + (p[1] & ~0x3fu);
- decode_structure(spec, blend_state, gtt + start);
+ decode_group(spec, blend_state, gtt + start, 0);
}
static void
cc_state = gen_spec_find_struct(spec, "COLOR_CALC_STATE");
start = dynamic_state_base + (p[1] & ~0x3fu);
- decode_structure(spec, cc_state, gtt + start);
+ decode_group(spec, cc_state, gtt + start, 0);
}
static void
scissor_rect = gen_spec_find_struct(spec, "SCISSOR_RECT");
start = dynamic_state_base + (p[1] & ~0x1fu);
- decode_structure(spec, scissor_rect, gtt + start);
+ decode_group(spec, scissor_rect, gtt + start, 0);
}
static void
if (reg != NULL) {
fprintf(outfile, "register %s (0x%x): 0x%x\n",
reg->name, reg->register_offset, p[2]);
- decode_structure(spec, reg, &p[2]);
+ decode_group(spec, reg, &p[2], 0);
}
}