i965/clip: Add support for gl_ClipVertex 01/6901/1
authorChris Forbes <chrisf@ijw.co.nz>
Mon, 20 May 2013 09:51:43 +0000 (21:51 +1200)
committerChris Forbes <chrisf@ijw.co.nz>
Fri, 7 Jun 2013 08:50:33 +0000 (20:50 +1200)
commit361594999099d981824e314f2f629cb4ab4c61f6
tree4940f3e0cb3770cbe4b116c8ef8b23f85c875949
parent9b34a7f29a54145d688e481c9c63c91614ab55b0
i965/clip: Add support for gl_ClipVertex

When clipping triangles against a user clip plane, and gl_ClipVertex
is provided in the vertex, use it instead of hpos.

TODO: A similar change should be made at some point for line clipping.

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.h
src/mesa/drivers/dri/i965/brw_clip_line.c
src/mesa/drivers/dri/i965/brw_clip_tri.c