summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZack Rusin <zack@tungstengraphics.com>2007-11-07 08:59:35 -0500
committerZack Rusin <zack@tungstengraphics.com>2007-12-11 09:49:33 -0500
commit9d6e6e86d9592afbdbaa83fc89891e6813fc3f2f (patch)
tree12c94b932ac4da0e0a7d473ac9f1b2eb407bc21c
parent1f30efb7365075de0ae119a40ab70a16bc547670 (diff)
number of outputs is nr_attribs - 2
-rw-r--r--src/mesa/pipe/draw/draw_vertex_shader_llvm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/pipe/draw/draw_vertex_shader_llvm.c b/src/mesa/pipe/draw/draw_vertex_shader_llvm.c
index 29de437595..10fd33fbde 100644
--- a/src/mesa/pipe/draw/draw_vertex_shader_llvm.c
+++ b/src/mesa/pipe/draw/draw_vertex_shader_llvm.c
@@ -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) {