Mesa (master): draw: Fix vertex buffer indexation.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Thu Apr 8 03:00:49 PDT 2010


Module: Mesa
Branch: master
Commit: 3ceafcf143d2e0cf73ecf116a2391e540873ca18
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3ceafcf143d2e0cf73ecf116a2391e540873ca18

Author: José Fonseca <jfonseca at vmware.com>
Date:   Thu Apr  8 11:00:42 2010 +0100

draw: Fix vertex buffer indexation.

---

 src/gallium/auxiliary/draw/draw_llvm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/draw/draw_llvm.c b/src/gallium/auxiliary/draw/draw_llvm.c
index ef93da7..122e7ba 100644
--- a/src/gallium/auxiliary/draw/draw_llvm.c
+++ b/src/gallium/auxiliary/draw/draw_llvm.c
@@ -662,7 +662,7 @@ draw_llvm_generate(struct draw_llvm *llvm, struct draw_llvm_variant *variant)
                                                  velem->vertex_buffer_index,
                                                  0);
             LLVMValueRef vb = LLVMBuildGEP(builder, vb_ptr,
-                                           &vb_index, 0, "");
+                                           &vb_index, 1, "");
             generate_fetch(builder, vbuffers_ptr,
                            &aos_attribs[j][i], velem, vb, true_index);
          }



More information about the mesa-commit mailing list