Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
fs_live_variables::setup_one_read(bblock_t *block, fs_inst *inst,
int ip, fs_reg reg)
{
- int var = var_from_vgrf[reg.reg] + reg.reg_offset;
+ int var = var_from_reg(®);
assert(var < num_vars);
/* In most cases, a register can be written over safely by the
fs_live_variables::setup_one_write(bblock_t *block, fs_inst *inst,
int ip, fs_reg reg)
{
- int var = var_from_vgrf[reg.reg] + reg.reg_offset;
+ int var = var_from_reg(®);
assert(var < num_vars);
start[var] = MIN2(start[var], ip);