draw: cliptest and viewport done in a single loop in vertex shader
authorHui Qi Tay <tayhuiqithq@gmail.com>
Tue, 28 Sep 2010 16:49:25 +0000 (17:49 +0100)
committerKeith Whitwell <keithw@vmware.com>
Wed, 29 Sep 2010 09:10:09 +0000 (10:10 +0100)
commit94f65d095a1365b69a041302b473e40c6ccae3c3
treeecb69a784ca58b75b0808450bd9ff42abe0ff164
parent6bf12c8b7366a9db8c88b9cacaa06266b41a73b5
draw: cliptest and viewport done in a single loop in vertex shader

Cliptesting now done at the end of vs in draw_llvm instead of
draw_pt_post_vs.

Added viewport mapping transformation and further cliptesting to
vertex shader in draw_llvm.c

Alternative path where vertex header setup, clip coordinates store,
cliptesting and viewport mapping are done earlier in the vertex
shader.

Still need to hook this up properly according to the return value of
"draw_llvm_shader" function.
src/gallium/auxiliary/draw/draw_llvm.c
src/gallium/auxiliary/draw/draw_llvm.h