i965/vs: add support for emitting gl_ClipVertex
authorChris Forbes <chrisf@ijw.co.nz>
Mon, 20 May 2013 10:10:29 +0000 (22:10 +1200)
committerChris Forbes <chrisf@ijw.co.nz>
Fri, 7 Jun 2013 08:50:33 +0000 (20:50 +1200)
commit06a503ca7163174e9763adcf64186d38997fee83
tree717946f19435ade116c78c101ff56fe8bc5beea7
parent361594999099d981824e314f2f629cb4ab4c61f6
i965/vs: add support for emitting gl_ClipVertex

Removes the special-case suppression of gl_ClipVertex in the VUE map.

Also calculate vertex outcodes for user clip planes based on
gl_ClipVertex if written; otherwise gl_Position.

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_vec4_visitor.cpp
src/mesa/drivers/dri/i965/brw_vs.c