OSDN Git Service

minigbm: virtio_gpu: fill transfer offset
authorGurchetan Singh <gurchetansingh@chromium.org>
Tue, 5 May 2020 16:18:22 +0000 (09:18 -0700)
committerCommit Bot <commit-bot@chromium.org>
Thu, 21 May 2020 19:10:29 +0000 (19:10 +0000)
commit1b57fe2655147d2dcb3968bc42f6d378d446a607
treef27ce76a9fbeda5323e292f8dacb829a02f09fe1
parenta9d3f77c4285edd052cce01db48f5bdfb074d1c1
minigbm: virtio_gpu: fill transfer offset

virglrenderer expects info->offset to be non-zero when a subregion
of the buffer is transferred.  Interestingly enough, minigbm doesn't
seem to hit that case in my (limited) testing.  Fill the transfer
offset and add logging statements.  Maybe we could fail on that case
if we don't encounter it in the wild.

BUG=none
TEST=manual testing with betty

Change-Id: I2f3afaff373777fb8808a0bea169be491d864d1a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/2182791
Reviewed-by: David Stevens <stevensd@chromium.org>
Reviewed-by: Chia-I Wu <olv@google.com>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Commit-Queue: Gurchetan Singh <gurchetansingh@chromium.org>
virtio_gpu.c