i965/fs: Simplify byte_offset().
authorFrancisco Jerez <currojerez@riseup.net>
Fri, 2 Sep 2016 02:27:12 +0000 (19:27 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Wed, 14 Sep 2016 21:50:56 +0000 (14:50 -0700)
commitee930c0435b1996fc828654608315aed2aa05229
tree53f3bca6103d184bf0afa0ac75242519e3602ba5
parentbae3a411712d815bf8b8d4526c72c174512086d3
i965/fs: Simplify byte_offset().

In the most common case this can now be implemented as a simple
addition because the offset is already encoded as a single scalar
value in bytes.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/drivers/dri/i965/brw_ir_fs.h