summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/draw/draw_pt_post_vs.c
diff options
context:
space:
mode:
authorZack Rusin <zackr@vmware.com>2010-04-02 18:52:32 -0400
committerZack Rusin <zackr@vmware.com>2010-04-02 18:52:32 -0400
commitcb31d3b5fec6260142ed27cc37f7155915ecfe89 (patch)
treee4aa841129354044f46950b86e0bec372e983fb4 /src/gallium/auxiliary/draw/draw_pt_post_vs.c
parent557b75248a3ebc6daabe3c2b69ac24d409aaa1e0 (diff)
draw llvm: fix storing of outputs for the rest of the pipeline
there's no good way of aligning the output's, and since the vertex_header is variable sized in the first place we need to extract elements from a vector and store them individually into an array. this gets the basic examples working again
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pt_post_vs.c')
-rw-r--r--src/gallium/auxiliary/draw/draw_pt_post_vs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_post_vs.c b/src/gallium/auxiliary/draw/draw_pt_post_vs.c
index 9728d5c2bd..7afbf6fa46 100644
--- a/src/gallium/auxiliary/draw/draw_pt_post_vs.c
+++ b/src/gallium/auxiliary/draw/draw_pt_post_vs.c
@@ -108,6 +108,9 @@ static boolean post_vs_cliptest_viewport_gl( struct pt_post_vs *pvs,
for (j = 0; j < count; j++) {
float *position = out->data[pos];
+ debug_printf("%d) %p %p = [%f, %f, %f, %f]\n",
+ j, out, position, position[0], position[1], position[2], position[3]);
+
out->clip[0] = position[0];
out->clip[1] = position[1];
out->clip[2] = position[2];