]> git.baikalelectronics.ru Git - kernel.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)
commit60e50f94845f3e6d70b7c9144b98226a3be5d350
tree834f64cd9b880f7e19044cf6f7508c92cb081fac
parentd1ff4d2afd551f97b3a02c5195f138c3718f38ef
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: 493676e3dbd2 ("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