i965/fs: Simplify a bunch of fs_inst::size_written calculations by using component_si...
authorFrancisco Jerez <currojerez@riseup.net>
Fri, 2 Sep 2016 01:43:48 +0000 (18:43 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Wed, 14 Sep 2016 21:50:56 +0000 (14:50 -0700)
commit2d7d4a791083ff63f37ac1e40bfe8b448e7f8045
tree5c2413d5587d8f78822d756241fdd0661a09964e
parent0bc46cc9619b8ae43e7a7c96bfe91f19371d301d
i965/fs: Simplify a bunch of fs_inst::size_written calculations by using component_size().

Using component_size() is easier and generally more correct because it
takes into account the register type and stride for you.

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