]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915/gvt: Correct the calculation of plane size
authorXiong Zhang <xiong.y.zhang@intel.com>
Mon, 25 Mar 2019 08:29:19 +0000 (16:29 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 4 Apr 2019 00:44:37 +0000 (08:44 +0800)
commit7f1a93b1f1d1d2603a49a9e4226259db9272f305
tree834f64cd9b880f7e19044cf6f7508c92cb081fac
parent663a50ceac75c2208d2ad95365bc8382fd42f44d
drm/i915/gvt: Correct the calculation of plane size

stride isn't in unit of pixel, it is bytes, so calculation of
plane size doesn't need to multiple bpp.

Fixes: e546e281d33d ("drm/i915/gvt: Dmabuf support for GVT-g")
Signed-off-by: Xiong Zhang <xiong.y.zhang@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/dmabuf.c