From: Zack Rusin Date: Wed, 7 Nov 2007 13:59:35 +0000 (-0500) Subject: number of outputs is nr_attribs - 2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9d6e6e86d9592afbdbaa83fc89891e6813fc3f2f;p=mesa.git number of outputs is nr_attribs - 2 --- diff --git a/src/mesa/pipe/draw/draw_vertex_shader_llvm.c b/src/mesa/pipe/draw/draw_vertex_shader_llvm.c index 29de437595c..10fd33fbdee 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) {