summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw/draw_pt_fetch.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2012-01-02 17:41:34 +0000
committerDave Airlie <airlied@redhat.com>2012-01-06 13:36:35 +0000
commit293a3916bd0dfa4fb8850e58f81743bfab0f89dc (patch)
tree4c791d366fc78407de73fb36038f1d1de7422508 /src/gallium/auxiliary/draw/draw_pt_fetch.c
parent2fe6c254f72628c22473800c5ce002d09391d102 (diff)
downloadexternal_mesa3d-293a3916bd0dfa4fb8850e58f81743bfab0f89dc.zip
external_mesa3d-293a3916bd0dfa4fb8850e58f81743bfab0f89dc.tar.gz
external_mesa3d-293a3916bd0dfa4fb8850e58f81743bfab0f89dc.tar.bz2
draw: fix piglit base vertex + user vertex array tests
This fixes draw-elements-base-vertex user_varrays draw-elements-instanced-base-vertex user_varrays for softpipe with no llvm support (DRAW_USE_LLVM=false) I'm not sure if this is the correct answer, but these tests were showing a max_index of 7, then trying to fetch up to 43, maybe it should be fixing max_index earlier somewhere to take care of this. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pt_fetch.c')
-rw-r--r--src/gallium/auxiliary/draw/draw_pt_fetch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_fetch.c b/src/gallium/auxiliary/draw/draw_pt_fetch.c
index 5589a82..81c7ec7 100644
--- a/src/gallium/auxiliary/draw/draw_pt_fetch.c
+++ b/src/gallium/auxiliary/draw/draw_pt_fetch.c
@@ -166,7 +166,7 @@ void draw_pt_fetch_run_linear( struct pt_fetch *fetch,
((char *)draw->pt.user.vbuffer[i] +
draw->pt.vertex_buffer[i].buffer_offset),
draw->pt.vertex_buffer[i].stride,
- draw->pt.user.max_index);
+ draw->pt.user.max_index + draw->pt.user.eltBias);
}
translate->run( translate,