mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 19:58:09 +02:00
virgl: make alignment smaller when uploading index user buffers
Since we're just uploading to guest memory, let's just align to dword
size.
Fixes: e0f932 ("u_upload_mgr: pass alignment to u_upload_data manually")
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
This commit is contained in:
parent
7626e6e189
commit
14f265b533
1 changed files with 1 additions and 1 deletions
|
|
@ -724,7 +724,7 @@ static void virgl_draw_vbo(struct pipe_context *ctx,
|
|||
ib.offset = info.start * ib.index_size;
|
||||
|
||||
if (ib.user_buffer) {
|
||||
u_upload_data(vctx->uploader, 0, info.count * ib.index_size, 256,
|
||||
u_upload_data(vctx->uploader, 0, info.count * ib.index_size, 4,
|
||||
ib.user_buffer, &ib.offset, &ib.buffer);
|
||||
ib.user_buffer = NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue