i965/fs: Use a const reference in fs_reg::equals instead of a pointer.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 10 May 2012 23:10:14 +0000 (16:10 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 14 May 2012 22:12:46 +0000 (15:12 -0700)
commitd1029f99884e2ba7f663765274cd6bdb4f82feed
tree86a97d8bf41a9c5af594e3a5bdbe07db344ef682
parentbf78806133f10d187e016e0d689f02f2b29d5ea0
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 <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp