diff options
author | Chris Forbes <chrisf@ijw.co.nz> | 2013-07-07 21:42:39 +1200 |
---|---|---|
committer | Chris Forbes <chrisf@ijw.co.nz> | 2013-08-01 20:58:59 +1200 |
commit | 3f6fb5e1dd684434979ffca418184574e5c086f3 (patch) | |
tree | f2a897a2a38f13105c57c53aec951a14dd78cbb0 /src/mesa/drivers/dri/i965/brw_clip.h | |
parent | f0feb32eaf8d4b35e5c3a47ef90aa876b231ada6 (diff) | |
download | external_mesa3d-3f6fb5e1dd684434979ffca418184574e5c086f3.zip external_mesa3d-3f6fb5e1dd684434979ffca418184574e5c086f3.tar.gz external_mesa3d-3f6fb5e1dd684434979ffca418184574e5c086f3.tar.bz2 |
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>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_clip.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_clip.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_clip.h b/src/mesa/drivers/dri/i965/brw_clip.h index ecbf741..2b02f85 100644 --- a/src/mesa/drivers/dri/i965/brw_clip.h +++ b/src/mesa/drivers/dri/i965/brw_clip.h @@ -122,6 +122,7 @@ struct brw_clip_compile { struct brw_vue_map vue_map; bool has_flat_shading; + bool has_noperspective_shading; }; /** |