i965/fs: Use offset a lot more places
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 6 Sep 2014 20:48:34 +0000 (13:48 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 30 Sep 2014 17:29:13 +0000 (10:29 -0700)
commitf0d43c09b2fa32db66b7b6dc13becb0c7d3edeea
tree70990b9349d0330ca1aa93ea5f2453e85298569b
parent0089d025aa7f7497b3097c5067b589410cd40fbc
i965/fs: Use offset a lot more places

We have this wonderful offset() function for advancing registers, but we're
not using it.  Using offset() allows us to do some sanity checking and
avoid manually touching fs_reg::reg_offset.  In a few commits, we will make
offset do even more nifty things for us.

Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs_cse.cpp
src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp