diff options
author | Matt Turner <[email protected]> | 2014-03-11 13:06:20 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-03-24 11:06:26 -0700 |
commit | dc0f5099fa3cb564c25eb892fde93cacd29df8f1 (patch) | |
tree | f5f6f2d08208feabcbcd2f52050387fdbe49cd0b /src/mesa/drivers/dri/i965/brw_vec4.cpp | |
parent | 89ccd11eebeee884d581e831b61368ac97057b43 (diff) |
i965/vec4: Track live ranges per-channel, not per vgrf.
Will be squashed with the next patch.
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vec4.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4.cpp b/src/mesa/drivers/dri/i965/brw_vec4.cpp index d07e8c558c2..135cc425dca 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4.cpp @@ -888,7 +888,10 @@ vec4_visitor::opt_register_coalesce() /* Can't coalesce this GRF if someone else was going to * read it later. */ - if (this->virtual_grf_end[inst->src[0].reg] > ip) + if (this->virtual_grf_end[inst->src[0].reg * 4 + 0] > ip || + this->virtual_grf_end[inst->src[0].reg * 4 + 1] > ip || + this->virtual_grf_end[inst->src[0].reg * 4 + 2] > ip || + this->virtual_grf_end[inst->src[0].reg * 4 + 3] > ip) continue; /* We need to check interference with the final destination between this |