diff options
author | Keqian Zhu <zhukeqian1@huawei.com> | 2023-06-12 10:13:58 +0800 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2023-06-27 17:08:47 +0200 |
commit | b097b80bc919fca5f45663c20722e57792a093ea (patch) | |
tree | 1d8a4bacef6f227c3c5f583433d799753359c8c3 /chardev/char-win-stdio.c | |
parent | 176e3783f2ab1476cdfd18a12bd2cfbe42e6b573 (diff) |
virtio-gpu: Optimize 2D resource data transfer
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 <zhukeqian1@huawei.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20230612021358.25068-1-zhukeqian1@huawei.com>
Diffstat (limited to 'chardev/char-win-stdio.c')
0 files changed, 0 insertions, 0 deletions