OSDN Git Service

minigbm: virtio-gpu: stride == level
authorGurchetan Singh <gurchetansingh@google.com>
Sat, 29 Jun 2019 00:21:40 +0000 (17:21 -0700)
committerchrome-bot <chrome-bot@chromium.org>
Tue, 17 Sep 2019 19:58:50 +0000 (12:58 -0700)
commit05e67cc5e06af2b9898ae6fa396fb544efd600df
treedf74129cdd13cc8668e1bcc67b605520e813d3ec
parentd014ed5b4c12e7c806260e2ae304accfcd6c73aa
minigbm: virtio-gpu: stride == level

Unfortunately, the kernel doesn't actually pass the guest layer_stride
and guest stride to the host (compare virtio_gpu.h and virtgpu_drm.h).
We can use the level to work around this.

BUG=b:132939420
TEST=none

Change-Id: I96927b22fae2662a3a37e5191b3dfdf86c99dd84
Reviewed-on: https://chromium-review.googlesource.com/1683087
Tested-by: David Stevens <stevensd@chromium.org>
Commit-Ready: David Stevens <stevensd@chromium.org>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: David Stevens <stevensd@chromium.org>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
virtio_gpu.c