aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_fs.cpp
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2012-05-10 16:10:14 -0700
committerKenneth Graunke <[email protected]>2012-05-14 15:12:46 -0700
commitd1029f99884e2ba7f663765274cd6bdb4f82feed (patch)
tree86a97d8bf41a9c5af594e3a5bdbe07db344ef682 /src/mesa/drivers/dri/i965/brw_fs.cpp
parentbf78806133f10d187e016e0d689f02f2b29d5ea0 (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.cpp2
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;