draw: add new debug code and comments in clip code template
authorBrian Paul <brianp@vmware.com>
Mon, 21 Jan 2013 18:32:49 +0000 (11:32 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 22 Jan 2013 21:53:58 +0000 (14:53 -0700)
commit4a938ef7136a89c828ebb16effe1bc5bea08b7d7
treef9deb4a2fc2c896a7770aec5b7ca0a9a20cc10a4
parent547a418888c455a3f5158c147a155292f398ea34
draw: add new debug code and comments in clip code template

In debug builds, set clipped vertex window coordinates to NaN values
to help debugging.  Otherwise, we're just leaving the coordinate in clip
space and it's invalid to use it later expecting it to be a window coord.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/draw/draw_cliptest_tmp.h