diff options
author | Kenneth Graunke <[email protected]> | 2012-05-10 16:10:14 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2012-05-14 15:12:46 -0700 |
commit | d1029f99884e2ba7f663765274cd6bdb4f82feed (patch) | |
tree | 86a97d8bf41a9c5af594e3a5bdbe07db344ef682 /src/mesa/drivers/dri/i965/brw_fs.cpp | |
parent | bf78806133f10d187e016e0d689f02f2b29d5ea0 (diff) |
i965/fs: Use a const reference in fs_reg::equals instead of a pointer.
This lets you omit some ampersands and is more idiomatic C++. Using
const also marks the function as not altering either register (which
was obvious, but nice to enforce).
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index fd67318f550..bcdedf07e66 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -1618,7 +1618,7 @@ fs_visitor::get_instruction_generating_reg(fs_inst *start, end->predicated || end->force_uncompressed || end->force_sechalf || - !reg.equals(&end->dst)) { + !reg.equals(end->dst)) { return NULL; } else { return end; |