virgl: make winsys modifications for encoded transfers
authorGurchetan Singh <gurchetansingh@chromium.org>
Thu, 3 Jan 2019 21:33:12 +0000 (13:33 -0800)
committerGert Wollny <gert.wollny@collabora.com>
Fri, 15 Feb 2019 10:19:05 +0000 (11:19 +0100)
commit5510cc67e06d8c1b7ba24f3eac4d0dcee5472f45
tree17b925987f3aa3a4d1dbe3416b27186e1dba5eef
parent90e96505855442fb235b50e29e548cbf8e559edd
virgl: make winsys modifications for encoded transfers

The idea is to have two command buffers:

1) One for transfers
2) One for commands, which can include transfers

At flush time, (2) will be filled.  Otherwise, (1) will be
used to submit transfers if there are enough of them.

v2: Pass size directly to cmd_buf_create (@gerddie)
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
src/gallium/drivers/virgl/virgl_context.c
src/gallium/drivers/virgl/virgl_winsys.h
src/gallium/winsys/virgl/drm/virgl_drm_winsys.c
src/gallium/winsys/virgl/drm/virgl_drm_winsys.h
src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c