virgl: use virgl_transfer in inline write
authorGurchetan Singh <gurchetansingh@chromium.org>
Wed, 28 Nov 2018 22:44:16 +0000 (14:44 -0800)
committerGert Wollny <gert.wollny@collabora.com>
Fri, 15 Feb 2019 10:19:05 +0000 (11:19 +0100)
commit503ffe46bb3961996c514b2650390d8263893579
treea6b5c8b060669f0a4649bdd05a58ae021c0e6019
parent0fcd48bac51f344b805e9cdc32156b0a8efdbba0
virgl: use virgl_transfer in inline write

Let's define a helper function and use it.

This commit also allows resources to be emitted into different command
buffers.

Like the ioctls, send 0 for layer_stride and stride.  If we actually
send the real values, there are various assumptions in virglrenderer
for non-1D buffers that may need to be modified.

Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
src/gallium/drivers/virgl/virgl_encode.c