i965/fs: Fix fs_inst::regs_written calculation for instructions with scalar dst.
authorFrancisco Jerez <currojerez@riseup.net>
Tue, 3 Feb 2015 19:57:38 +0000 (21:57 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Tue, 10 Feb 2015 14:05:51 +0000 (16:05 +0200)
commit3df2cb2f863836ec909f5259693c1eeef675a594
tree1995c0f57e2548a25a704bb892cb61c3b6c01c53
parentf2668f9f214201503419342b980d3afa8b796926
i965/fs: Fix fs_inst::regs_written calculation for instructions with scalar dst.

Scalar registers are required to have zero stride, fix the
regs_written calculation not to assume that the instruction writes
zero registers in that case.

v2: Rename CEILING() to DIV_ROUND_UP(). (Matt, Ken)

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs.cpp