diff options
author | Erico Nunes <nunes.erico@gmail.com> | 2019-12-07 04:38:03 +0100 |
---|---|---|
committer | Erico Nunes <nunes.erico@gmail.com> | 2019-12-14 07:44:43 +0100 |
commit | 8bf2b5db786b8608ddd7c83fffa695ae011bf6b3 (patch) | |
tree | f71cb27c5e05fd2441fc826236d67cb1db407a69 /src/gallium/drivers/lima | |
parent | 9fb45c5bbd11fa54c0777021a236114e414207f8 (diff) |
gallium/util: add alignment parameter to util_upload_index_buffer
At least on Mali Utgard, index buffers need to be aligned on 0x40.
To avoid duplicating this, add an alignment parameter.
Keep the previous default for the other existing users.
Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2445>
Diffstat (limited to 'src/gallium/drivers/lima')
-rw-r--r-- | src/gallium/drivers/lima/lima_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/lima/lima_draw.c b/src/gallium/drivers/lima/lima_draw.c index 768e2c8ce05..02d6baadb74 100644 --- a/src/gallium/drivers/lima/lima_draw.c +++ b/src/gallium/drivers/lima/lima_draw.c @@ -848,7 +848,7 @@ lima_pack_plbu_cmd(struct lima_context *ctx, const struct pipe_draw_info *info) unsigned index_offset = 0; struct lima_resource *res; if (info->has_user_indices) { - util_upload_index_buffer(&ctx->base, info, &indexbuf, &index_offset); + util_upload_index_buffer(&ctx->base, info, &indexbuf, &index_offset, 0x40); res = lima_resource(indexbuf); } else |