i965/vec4: Simplify the computation of coord_mask and zero_mask.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 9 Sep 2013 22:36:59 +0000 (15:36 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 11 Sep 2013 00:52:36 +0000 (17:52 -0700)
commit17eb1df7b8af800f03c5b1f35fdf4292abe32ea1
tree3a51b11224a2d04d1d426ba3d135780b015c9f57
parent66be7b4c2795b5a942f64821fc6525dfdfb3aba4
i965/vec4: Simplify the computation of coord_mask and zero_mask.

We can easily compute these without loops, resulting in simpler and
shorter code.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Suggested-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp