Commit 6f89e51c authored by Jason Ekstrand's avatar Jason Ekstrand

i965/draw: Use the correct buffer index for interleaved VBO sizes

The buffer_range_* arrays are indexed by buffer index not element index.
Reviewed-by: Kristian H. Kristensen's avatarKristian Høgsberg <>
parent e58fabc9
......@@ -529,8 +529,10 @@ brw_prepare_vertices(struct brw_context *brw)
input->buffer = brw->vb.enabled[k]->buffer;
input->offset = glarray->Ptr - other->Ptr;
buffer_range_start[k] = MIN2(buffer_range_start[k], start);
buffer_range_end[k] = MAX2(buffer_range_end[k], start + range);
buffer_range_start[input->buffer] =
MIN2(buffer_range_start[input->buffer], start);
buffer_range_end[input->buffer] =
MAX2(buffer_range_end[input->buffer], start + range);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment