Re: [PATCH] virtio-gpu: Optimize 2D resource data transfer

2023-06-12 Thread Marc-André Lureau
Hi On Mon, Jun 12, 2023 at 4:15 AM Keqian Zhu via wrote: > The following points sometimes can reduce much data > to copy: > 1. When width matches, we can transfer data with one > call of iov_to_buf(). > 2. Only the required height need to transfer, not > whole image. > > Signed-off-by: Keqian Zh

[PATCH] virtio-gpu: Optimize 2D resource data transfer

2023-06-11 Thread Keqian Zhu via
The following points sometimes can reduce much data to copy: 1. When width matches, we can transfer data with one call of iov_to_buf(). 2. Only the required height need to transfer, not whole image. Signed-off-by: Keqian Zhu --- hw/display/virtio-gpu.c | 22 +++--- 1 file changed