i965/vec4: Simplify src/dst_reg to brw_reg conversion by using byte_offset().
authorFrancisco Jerez <currojerez@riseup.net>
Fri, 9 Sep 2016 01:00:11 +0000 (18:00 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Wed, 14 Sep 2016 21:50:58 +0000 (14:50 -0700)
commit230615e2280e6d28456e7d6a42b1e42645515b4d
tree297f93979eeb109bab7bbc2b685ae1a3d14f4f1a
parenteb746a80e5e99bafd3957a1cb2d9db8548a1a6be
i965/vec4: Simplify src/dst_reg to brw_reg conversion by using byte_offset().

This should also have the side effect of fixing convert_to_hw_regs()
to handle sub-GRF register offsets.

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