summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/i915simple
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2007-11-07 13:07:20 +0000
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2007-11-07 13:41:09 +0000
commit3e22180fc893bb09bf6b990bc4e858fd85f522ab (patch)
tree0583012286b0078106ddc0579552a81e0a5206cf /src/mesa/pipe/i915simple
parentc28fdf309607ec2994ef9a1109931a8389854300 (diff)
Reset temporary vertices ids.
Diffstat (limited to 'src/mesa/pipe/i915simple')
-rw-r--r--src/mesa/pipe/i915simple/i915_prim_vbuf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/pipe/i915simple/i915_prim_vbuf.c b/src/mesa/pipe/i915simple/i915_prim_vbuf.c
index 8881d16c88..a78c2b0a6c 100644
--- a/src/mesa/pipe/i915simple/i915_prim_vbuf.c
+++ b/src/mesa/pipe/i915simple/i915_prim_vbuf.c
@@ -290,9 +290,11 @@ static void vbuf_flush_elements( struct draw_stage *stage )
break;
case PIPE_PRIM_LINES:
hwprim = PRIM3D_LINELIST;
+ assert(nr % 2 == 0);
break;
case PIPE_PRIM_TRIANGLES:
hwprim = PRIM3D_TRILIST;
+ assert(nr % 3 == 0);
break;
default:
assert(0);
@@ -365,7 +367,7 @@ static void vbuf_flush_vertices( struct draw_stage *stage )
* issues uploading vertices if the hardware wants to flush when
* we flush.
*/
- draw_vertex_cache_reset_vertex_ids( vbuf->i915->draw );
+ draw_reset_vertex_ids( vbuf->i915->draw );
}
/* FIXME: handle failure */