i965 Gen4/5: clip: Add support for noperspective varyings
authorChris Forbes <chrisf@ijw.co.nz>
Sun, 7 Jul 2013 09:42:39 +0000 (21:42 +1200)
committerChris Forbes <chrisf@ijw.co.nz>
Thu, 1 Aug 2013 08:58:59 +0000 (20:58 +1200)
commit3f6fb5e1dd684434979ffca418184574e5c086f3
treef2a897a2a38f13105c57c53aec951a14dd78cbb0
parentf0feb32eaf8d4b35e5c3a47ef90aa876b231ada6
i965 Gen4/5: clip: Add support for noperspective varyings

Adds support for interpolating noperspective varyings linearly in screen
space when clipping.

Based on Olivier Galibert's patch from last year:
http://lists.freedesktop.org/archives/mesa-dev/2012-July/024341.html

At this point all -fixed and -vertex interpolation tests work.

V5: Add brw_clip_compile.has_noperspective_shading rather than another
key flag.
V6: Real bools.

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