]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: Roundup fb->height into tile's height at calucation fb->size
authorXiong Zhang <xiong.y.zhang@intel.com>
Wed, 10 Apr 2019 04:16:33 +0000 (12:16 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 11 Apr 2019 03:09:53 +0000 (11:09 +0800)
commitf95e63f6d1b98436119af572ae52880a07443bba
tree84dfcd5181d7b3b4f082840de5032e718d23f1c8
parentc8c50c3140059e0a69cb19788e7b49a1bd34dbc6
drm/i915/gvt: Roundup fb->height into tile's height at calucation fb->size

When fb is tiled and fb->height isn't the multiple of tile's height,
the format fb->size = fb->stride * fb->height, will get a smaller size
than the actual size. As the memory height of tiled fb should be multiple
of tile's height.

Fixes: dd3efb2341ac ("drm/i915/gvt: Correct the calculation of plane size")
Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
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