diff options
author | Marek Olšák <[email protected]> | 2020-02-14 15:28:28 -0500 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-02-28 00:53:45 +0000 |
commit | 28d75fc286fd761cf1de98aa9c57dd4263d5321a (patch) | |
tree | b1665f779aa417c2d6a40e3b40b11fde5b362754 /src/gallium | |
parent | c9e4dc8d5e8f5e860f93eb3555a507402506b59a (diff) |
gallium/u_threaded: fix uploading user indices with start != 0
Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3990>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/auxiliary/util/u_threaded_context.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_threaded_context.c b/src/gallium/auxiliary/util/u_threaded_context.c index daed6c6950b..c1f74e70e32 100644 --- a/src/gallium/auxiliary/util/u_threaded_context.c +++ b/src/gallium/auxiliary/util/u_threaded_context.c @@ -2097,7 +2097,8 @@ tc_draw_vbo(struct pipe_context *_pipe, const struct pipe_draw_info *info) * e.g. transfer_unmap and flush partially-uninitialized draw_vbo * to the driver if it was done afterwards. */ - u_upload_data(tc->base.stream_uploader, 0, size, 4, info->index.user, + u_upload_data(tc->base.stream_uploader, 0, size, 4, + (uint8_t*)info->index.user + info->start * index_size, &offset, &buffer); if (unlikely(!buffer)) return; |