amd/registers: switch to new generated register definitions

Acked-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6423>
This commit is contained in:
Marek Olšák
2020-08-21 08:09:58 -04:00
parent e492a3195c
commit b7a6333ee4
22 changed files with 11165 additions and 32326 deletions

View File

@@ -765,14 +765,25 @@ radv_dump_sq_hw_regs(struct radv_device *device)
struct radv_sq_hw_reg *regs = (struct radv_sq_hw_reg *)&device->tma_ptr[6];
fprintf(stderr, "\nHardware registers:\n");
ac_dump_reg(stderr, device->physical_device->rad_info.chip_class,
R_000002_SQ_HW_REG_STATUS, regs->status, ~0);
ac_dump_reg(stderr, device->physical_device->rad_info.chip_class,
R_000003_SQ_HW_REG_TRAP_STS, regs->trap_sts, ~0);
ac_dump_reg(stderr, device->physical_device->rad_info.chip_class,
R_000004_SQ_HW_REG_HW_ID, regs->hw_id, ~0);
ac_dump_reg(stderr, device->physical_device->rad_info.chip_class,
R_000007_SQ_HW_REG_IB_STS, regs->ib_sts, ~0);
if (device->physical_device->rad_info.chip_class >= GFX10) {
ac_dump_reg(stderr, device->physical_device->rad_info.chip_class,
R_000408_SQ_WAVE_STATUS, regs->status, ~0);
ac_dump_reg(stderr, device->physical_device->rad_info.chip_class,
R_00040C_SQ_WAVE_TRAPSTS, regs->trap_sts, ~0);
ac_dump_reg(stderr, device->physical_device->rad_info.chip_class,
R_00045C_SQ_WAVE_HW_ID1, regs->hw_id, ~0);
ac_dump_reg(stderr, device->physical_device->rad_info.chip_class,
R_00041C_SQ_WAVE_IB_STS, regs->ib_sts, ~0);
} else {
ac_dump_reg(stderr, device->physical_device->rad_info.chip_class,
R_000048_SQ_WAVE_STATUS, regs->status, ~0);
ac_dump_reg(stderr, device->physical_device->rad_info.chip_class,
R_00004C_SQ_WAVE_TRAPSTS, regs->trap_sts, ~0);
ac_dump_reg(stderr, device->physical_device->rad_info.chip_class,
R_000050_SQ_WAVE_HW_ID, regs->hw_id, ~0);
ac_dump_reg(stderr, device->physical_device->rad_info.chip_class,
R_00005C_SQ_WAVE_IB_STS, regs->ib_sts, ~0);
}
fprintf(stderr, "\n\n");
}