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_visitor.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_visitor.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp index 20d4c53a858..bb0c8bdb2f1 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp @@ -569,7 +569,7 @@ fs_visitor::emit_assignment_writes(fs_reg &l, fs_reg &r, l.type = brw_type_for_base_type(type); r.type = brw_type_for_base_type(type); - if (predicated || !l.equals(&r)) { + if (predicated || !l.equals(r)) { fs_inst *inst = emit(BRW_OPCODE_MOV, l, r); inst->predicated = predicated; } |