mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
ir_to_mesa: Make the first temp index we use 1 to show off bugs.
Regs aren't allocated at the right times yet, so we see TEMP[0] a lot.
This commit is contained in:
parent
7aa0b034f7
commit
ae252d3613
2 changed files with 8 additions and 6 deletions
|
|
@ -496,6 +496,13 @@ ir_to_mesa_visitor::visit(ir_if *ir)
|
|||
exit(1);
|
||||
}
|
||||
|
||||
ir_to_mesa_visitor::ir_to_mesa_visitor()
|
||||
{
|
||||
result = NULL;
|
||||
next_temp = 1;
|
||||
next_constant = 0;
|
||||
}
|
||||
|
||||
static struct prog_src_register
|
||||
mesa_src_reg_from_ir_src_reg(ir_to_mesa_src_reg reg)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -92,12 +92,7 @@ public:
|
|||
|
||||
class ir_to_mesa_visitor : public ir_visitor {
|
||||
public:
|
||||
ir_to_mesa_visitor()
|
||||
{
|
||||
result = NULL;
|
||||
next_temp = 0;
|
||||
next_constant = 0;
|
||||
}
|
||||
ir_to_mesa_visitor();
|
||||
|
||||
int next_temp;
|
||||
int next_constant;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue