number of outputs is nr_attribs - 2
authorZack Rusin <zack@tungstengraphics.com>
Wed, 7 Nov 2007 13:59:35 +0000 (08:59 -0500)
committerZack Rusin <zack@tungstengraphics.com>
Tue, 11 Dec 2007 14:49:33 +0000 (09:49 -0500)
src/mesa/pipe/draw/draw_vertex_shader_llvm.c

index 29de437595c7803bb9a02e02d315072c6153ca57..10fd33fbdee194a7ac6984b4aa98e343c7acb866 100644 (file)
@@ -133,7 +133,7 @@ void draw_vertex_shader_queue_flush_llvm(struct draw_context *draw)
    gallivm_prog_exec(prog, inputs, outputs, consts,
                      draw->vs.queue_nr,
                      draw->vertex_shader->state->num_inputs,
-                     draw->vertex_info.num_attribs);
+                     draw->vertex_info.num_attribs - 2);
 
    /* store machine results */
    for (int i = 0; i < draw->vs.queue_nr; ++i) {