summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2014-09-06 10:37:22 -0700
committerJason Ekstrand <[email protected]>2014-09-30 10:29:13 -0700
commitf9da0740e22f27a6f8bd429f0bb768752b311398 (patch)
tree9f05d9bd4df5f628ade605b43ad91d6a5d2116d8 /src/mesa
parent75afe17b7954984ea5b55c2a6d5d124f5eb03328 (diff)
i965/fs_live_variables: Use var_from_vgrf insead of repeating the calculation
Signed-off-by: Jason Ekstrand <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_live_variables.cpp4
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(&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(&reg);
assert(var < num_vars);
start[var] = MIN2(start[var], ip);