i965/fs: fix subreg_offset overflow in byte_offset()
authorIago Toral Quiroga <itoral@igalia.com>
Wed, 6 Apr 2016 08:27:14 +0000 (10:27 +0200)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Mon, 16 May 2016 07:55:32 +0000 (09:55 +0200)
commit17decd940c1e105506db74e8539a77db271adbc5
tree73cef29e31c8b19be8c8beba3aeddabcda94eaf7
parent2fd79ebe8fe4f0f0397bba1624deed9fa4e7fc3b
i965/fs: fix subreg_offset overflow in byte_offset()

This can happen if the register already has a non-zero subreg_offset
when byte_offset() is called.

v2 (Sam):
- Refactor byte_offset() (Jordan).

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_ir_fs.h