st/nine: Fix value of pipe_draw_info's max_index vertex

max_index didn't include draw.start

Signed-off-by: Axel Davy <davyaxel0@gmail.com>
Acked-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10160>
This commit is contained in:
Axel Davy 2021-03-06 14:40:35 +01:00 committed by Marge Bot
parent f5a1f3c98d
commit 586cede4b6
1 changed files with 1 additions and 1 deletions

View File

@ -2376,7 +2376,7 @@ CSMT_ITEM_NO_WAIT(nine_context_draw_primitive,
draw.start = StartVertex;
info.index_bias = 0;
info.min_index = draw.start;
info.max_index = draw.count - 1;
info.max_index = draw.start + draw.count - 1;
info.index.resource = NULL;
context->pipe->draw_vbo(context->pipe, &info, NULL, &draw, 1);