diff options
author | Matt Turner <[email protected]> | 2014-10-29 13:58:45 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-12-01 16:42:13 -0800 |
commit | b37273b92431a2d986235774f04a9fba2aa1bf74 (patch) | |
tree | 60e2fe60bb77359d6d6cf8aa739ae1190d65a564 /src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp | |
parent | 60d507c3c5c7caed57119df0ab4d824ad1ea85dc (diff) |
i965/fs: Use const fs_reg & rather than a copy or pointer.
Also while we're touching var_from_reg, just make it an inline function.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp b/src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp index 347a78e5efd..a4145ac27d9 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp @@ -45,7 +45,7 @@ opt_saturate_propagation_local(fs_visitor *v, bblock_t *block) !inst->saturate) continue; - int src_var = v->live_intervals->var_from_reg(&inst->src[0]); + int src_var = v->live_intervals->var_from_reg(inst->src[0]); int src_end_ip = v->live_intervals->end[src_var]; bool interfered = false; |