diff options
author | Tomeu Vizoso <[email protected]> | 2018-10-04 16:40:08 +0200 |
---|---|---|
committer | Gert Wollny <[email protected]> | 2018-10-06 13:12:44 +0200 |
commit | 9d81cd8e7c0cb44e09cf650da4834a1dc647a4d2 (patch) | |
tree | 3a22e22d20f464cecee77a32b6925a5fe0d680df /src/gallium/auxiliary/gallivm | |
parent | 5d7858f1517eb0961811e4106ba11c011d7002e3 (diff) |
virgl: Pass resource size and transfer offsets
Pass the size of a resource when creating it so a backing can be kept in
the other side.
Also pass the required offset to transfer commands.
This moves vtest closer to how virtio-gpu works, making it more useful
for testing.
v2: - Use new messages for creation and transfers, as changing the
behavior of the existing messages would be messy given that we don't
want to break compatibility with older servers.
v3: - Use correct strides: The resource corresponding to the output display
might have a differnt line stride then the IOVs, so when reading back
to this resource take the resource stride and the the IOV stride
into account.
v4: Fix transfer size calculation (Andrey Simiklit)
v5: Add comment about transfer size value in the PUT commend (Gurchetan).
Add a comment about the size correction for transfers for reading and
writing the resource. Fixing this by correctly evaluating the size
upfront will need some work also on the virglrenderer side.
Signed-off-by: Tomeu Vizoso <[email protected]> (v2)
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Gurchetan Singh <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/gallivm')
0 files changed, 0 insertions, 0 deletions