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:
committed by
Gert Wollny
parent
7626e6e189
commit
14f265b533
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user