i965/fs: Refactor offset() into a separate function taking the width as argument.
authorFrancisco Jerez <currojerez@riseup.net>
Fri, 27 May 2016 06:09:46 +0000 (23:09 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Mon, 30 May 2016 06:41:38 +0000 (23:41 -0700)
commit4db93592de73d68ce38b3d64eddd451aa6c373cc
tree03891ce45e2466795615f4f37ef67fa59064bb5a
parenta5b4f63c1593cdcbc253cce2838c85b2fd796dac
i965/fs: Refactor offset() into a separate function taking the width as argument.

This will be useful in the SIMD lowering pass to avoid having to
construct a builder object of the known region width just to pass it
as argument to offset(), which doesn't do anything with it other than
taking the builder dispatch_width as region width.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_ir_fs.h