draw/llvm: fix viewport transformations
authorZack Rusin <zackr@vmware.com>
Tue, 23 Apr 2013 22:47:08 +0000 (18:47 -0400)
committerZack Rusin <zackr@vmware.com>
Sat, 27 Apr 2013 03:01:46 +0000 (23:01 -0400)
commitd996622cfad484817c1038caded20032759ec93b
tree9b91be5c1f6d9efc0a517a40878c56d353564e11
parent5d9ef5b3652e59a14bf8e2ce20a61118b2a074dc
draw/llvm: fix viewport transformations

This was a very serious bug. We were always doing the viewport
transformations on the first output of the vertex shader. That means
that every application that was storing position in anything but
OUT[0] was outputing untransformed vertices and had broken output
for whatever it was storing at OUT[0]. Correctly take into
consideration where the vertex position is actually stored.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/draw/draw_llvm.c