i965 Gen4/5: clip: Don't mangle flat varyings
authorChris Forbes <chrisf@ijw.co.nz>
Sun, 7 Jul 2013 10:22:57 +0000 (22:22 +1200)
committerChris Forbes <chrisf@ijw.co.nz>
Thu, 1 Aug 2013 08:59:03 +0000 (20:59 +1200)
commit3eef7fec677f40eef1674e44e7ebd836bc7f8612
tree6343931222b5d3b0ad57c314cdffd996c8dbaa58
parent3f6fb5e1dd684434979ffca418184574e5c086f3
i965 Gen4/5: clip: Don't mangle flat varyings

This patch ensures that integers will pass through unscathed.  Doing
(useless) computations on them is risky, especially when their bit
patterns correspond to values like inf or nan.

[V1-2]: Signed-off-by: Olivier Galibert <galibert at pobox.com>
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_clip_util.c