mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
aco/ra: Remove preprocessor guards for print_regs
This debug helper isn't used anywhere by default, but compiling it anyway ensures future refactors don't break it. Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8719>
This commit is contained in:
parent
3675aefa84
commit
5fdc298e4b
1 changed files with 1 additions and 3 deletions
|
|
@ -355,8 +355,7 @@ private:
|
|||
|
||||
|
||||
/* helper function for debugging */
|
||||
#if 0
|
||||
void print_regs(ra_ctx& ctx, bool vgprs, RegisterFile& reg_file)
|
||||
UNUSED void print_regs(ra_ctx& ctx, bool vgprs, RegisterFile& reg_file)
|
||||
{
|
||||
unsigned max = vgprs ? ctx.program->max_reg_demand.vgpr : ctx.program->max_reg_demand.sgpr;
|
||||
PhysRegInterval regs { vgprs ? PhysReg{256} : PhysReg{0}, max };
|
||||
|
|
@ -418,7 +417,6 @@ void print_regs(ra_ctx& ctx, bool vgprs, RegisterFile& reg_file)
|
|||
else if (prev)
|
||||
printf("]\n");
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
unsigned get_subdword_operand_stride(chip_class chip, const aco_ptr<Instruction>& instr, unsigned idx, RegClass rc)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue