]> 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)
commit133eea064aa65463aae9e432be3ab81cbce1faa3
tree84dfcd5181d7b3b4f082840de5032e718d23f1c8
parent8a81e2075d9970bd11173ef44cbfda4e7f011d80
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: 60e50f94845f ("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