diff options
author | Jason Ekstrand <[email protected]> | 2016-05-24 16:57:38 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-05-24 20:50:35 -0700 |
commit | 6f89e51c8477f21b64d1f4420b06e407de9022ff (patch) | |
tree | eead7365387f305aa9ba89b5aa88ed39816c0cb5 /src/mesa/drivers/dri | |
parent | e58fabc93a25ccc910369f3638b302d46de12271 (diff) |
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øgsberg <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_draw_upload.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_draw_upload.c b/src/mesa/drivers/dri/i965/brw_draw_upload.c index 3349161754b..f4d1b2c6af1 100644 --- a/src/mesa/drivers/dri/i965/brw_draw_upload.c +++ b/src/mesa/drivers/dri/i965/brw_draw_upload.c @@ -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); break; } } |