summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorZack Rusin <[email protected]>2008-05-04 00:44:27 -0400
committerZack Rusin <[email protected]>2008-05-08 15:26:13 -0400
commitff1fee2cae9fabb47d6a2eb1f9f8094fec3c377f (patch)
tree265af07c3b8087419e77cf91b45445d1644510d9 /src
parentabb08e9335b5d7cb004dc9e6cec390ab6968abe5 (diff)
don't fill in linear fetch_elts
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/draw/draw_pt_varray.c4
-rw-r--r--src/gallium/auxiliary/draw/draw_pt_varray_tmp.h3
2 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_varray.c b/src/gallium/auxiliary/draw/draw_pt_varray.c
index 916373acc88..fb1b59d53e1 100644
--- a/src/gallium/auxiliary/draw/draw_pt_varray.c
+++ b/src/gallium/auxiliary/draw/draw_pt_varray.c
@@ -78,6 +78,7 @@ static void varray_flush(struct varray_frontend *varray)
static void varray_flush_linear(struct varray_frontend *varray)
{
if (varray->draw_count) {
+#if 0
debug_printf("FLUSH LINEAR fc = %d, dc = %d\n",
varray->fetch_count,
varray->draw_count);
@@ -86,8 +87,9 @@ static void varray_flush_linear(struct varray_frontend *varray)
varray->fetch_elts[varray->fetch_count-1],
varray->draw_elts[0],
varray->draw_elts[varray->draw_count-1]);
+#endif
varray->middle->run_linear(varray->middle,
- varray->fetch_elts[0],
+ varray->fetch_start,
varray->fetch_count,
varray->draw_elts,
varray->draw_count);
diff --git a/src/gallium/auxiliary/draw/draw_pt_varray_tmp.h b/src/gallium/auxiliary/draw/draw_pt_varray_tmp.h
index 67baafa3be4..a9f844a3571 100644
--- a/src/gallium/auxiliary/draw/draw_pt_varray_tmp.h
+++ b/src/gallium/auxiliary/draw/draw_pt_varray_tmp.h
@@ -87,8 +87,9 @@ static void FUNC(struct draw_pt_front_end *frontend,
TRIANGLE(varray, DRAW_PIPE_RESET_STIPPLE | DRAW_PIPE_EDGE_FLAG_ALL,
i + 0, i + 1, i + 2);
}
- fetch_init(varray, end);
+ varray->fetch_count = end;
varray_flush_linear(varray);
+ varray->fetch_start += end;
}
break;