diff options
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_live_variables.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_live_variables.cpp b/src/mesa/drivers/dri/i965/brw_fs_live_variables.cpp index 79070c1a878..e5936e023c6 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_live_variables.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_live_variables.cpp @@ -56,7 +56,7 @@ void 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 @@ -108,7 +108,7 @@ void 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); |