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:
parent
f5a1f3c98d
commit
586cede4b6
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue