diff options
author | Gurchetan Singh <[email protected]> | 2019-01-02 16:27:56 -0800 |
---|---|---|
committer | Gert Wollny <[email protected]> | 2019-02-15 11:19:04 +0100 |
commit | 14f265b533217a9b63c5dbe48c3b326a5cd91d3b (patch) | |
tree | 6c6d63c1e2cc538f9971120b54b90de8ba302b9f /src/gallium/drivers/virgl/virgl_context.c | |
parent | 7626e6e18956cac0de9077694c97a388c739bdd0 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_context.c')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/virgl/virgl_context.c b/src/gallium/drivers/virgl/virgl_context.c index b924aa759d7..9a91df49fe8 100644 --- a/src/gallium/drivers/virgl/virgl_context.c +++ b/src/gallium/drivers/virgl/virgl_context.c @@ -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; } |