i965/fs: Print fs_reg::offset field consistently for all register files.
authorFrancisco Jerez <currojerez@riseup.net>
Fri, 2 Sep 2016 03:31:47 +0000 (20:31 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Wed, 14 Sep 2016 21:50:57 +0000 (14:50 -0700)
commitec259f5307bc801f8482f2825ca9d52fe5ead95e
treeb4252554ec5c7126e9fea1a49c36ec5d5b65eb9e
parent950af5ed40895ba7eb664a64e869cf4ae1104fc7
i965/fs: Print fs_reg::offset field consistently for all register files.

The offset printing code in fs_visitor::dump_instruction() was doing
things differently for sources and destinations and for each register
file -- In some cases it would be added to the base register number
fs_reg::nr, in other cases it would follow the base register separated
with a plus sign, in other cases (uniforms) it would do both (!).  The
sub-register offset was also being printed or not rather
inconsistently.  Fix it.

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