From 47d463e954efcd15d20ab2c96a455aa16ddffdcc Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Fri, 2 Feb 2007 10:59:58 +0000 Subject: Modify assert to reflect rebase criteria --- src/mesa/drivers/dri/i965/brw_draw_upload.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/mesa/drivers') diff --git a/src/mesa/drivers/dri/i965/brw_draw_upload.c b/src/mesa/drivers/dri/i965/brw_draw_upload.c index 803a524324..feb0901d12 100644 --- a/src/mesa/drivers/dri/i965/brw_draw_upload.c +++ b/src/mesa/drivers/dri/i965/brw_draw_upload.c @@ -439,7 +439,15 @@ GLboolean brw_upload_vertices( struct brw_context *brw, } upload[nr_uploads++] = input; - assert(min_index == 0); + + /* We rebase drawing to start at element zero only when + * varyings are not in vbos, which means we can end up + * uploading non-varying arrays (stride != 0) when min_index + * is zero. This doesn't matter as the amount to upload is + * the same for these arrays whether the draw call is rebased + * or not - we just have to upload the one element. + */ + assert(min_index == 0 || input->glarray->StrideB == 0); } } -- cgit v1.2.3