diff options
author | Gurchetan Singh <[email protected]> | 2019-01-03 13:33:12 -0800 |
---|---|---|
committer | Gert Wollny <[email protected]> | 2019-02-15 11:19:05 +0100 |
commit | 5510cc67e06d8c1b7ba24f3eac4d0dcee5472f45 (patch) | |
tree | 17b925987f3aa3a4d1dbe3416b27186e1dba5eef /src/gallium/winsys/virgl/vtest | |
parent | 90e96505855442fb235b50e29e548cbf8e559edd (diff) |
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 <[email protected]>
Diffstat (limited to 'src/gallium/winsys/virgl/vtest')
-rw-r--r-- | src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c b/src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c index 5422b29e55a..479a98fe499 100644 --- a/src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c +++ b/src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c @@ -411,7 +411,8 @@ alloc: return res; } -static struct virgl_cmd_buf *virgl_vtest_cmd_buf_create(struct virgl_winsys *vws) +static struct virgl_cmd_buf *virgl_vtest_cmd_buf_create(struct virgl_winsys *vws, + uint32_t size) { struct virgl_vtest_cmd_buf *cbuf; @@ -700,6 +701,7 @@ virgl_vtest_winsys_wrap(struct sw_winsys *sws) vtws->base.fence_wait = virgl_fence_wait; vtws->base.fence_reference = virgl_fence_reference; vtws->base.supports_fences = 0; + vtws->base.supports_encoded_transfers = 0; vtws->base.flush_frontbuffer = virgl_vtest_flush_frontbuffer; |