]> 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)
commitdd3efb2341ace96b568ebf6910abec0455454136
tree834f64cd9b880f7e19044cf6f7508c92cb081fac
parent2fb84a2832a79c7cc76396f1dea040fbf0f1bf45
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: e11f6b115b50 ("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