summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTina Zhang <tina.zhang@intel.com>2018-03-28 07:49:29 +0200
committerZhenyu Wang <zhenyuw@linux.intel.com>2018-03-30 08:47:20 +0200
commit10996f802109c83421ca30556cfe36ffc3bebae3 (patch)
tree742ca3d8f8a2b5ad01552a78efab975711be3607
parentdrm/i915/gvt: Disable primary/sprite/cursor plane at virtual display initiali... (diff)
downloadlinux-10996f802109c83421ca30556cfe36ffc3bebae3.tar.xz
linux-10996f802109c83421ca30556cfe36ffc3bebae3.zip
drm/i915/gvt: Add drm_format_mod update
Add drm_format_mod update, which is omitted. Fixes: e546e281("drm/i915/gvt: Dmabuf support for GVT-g") Cc: stable@vger.kernel.org Signed-off-by: Tina Zhang <tina.zhang@intel.com> Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
-rw-r--r--drivers/gpu/drm/i915/gvt/dmabuf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/gvt/dmabuf.c b/drivers/gpu/drm/i915/gvt/dmabuf.c
index b555eb26f9ce..6f4f8e941fc2 100644
--- a/drivers/gpu/drm/i915/gvt/dmabuf.c
+++ b/drivers/gpu/drm/i915/gvt/dmabuf.c
@@ -323,6 +323,7 @@ static void update_fb_info(struct vfio_device_gfx_plane_info *gvt_dmabuf,
struct intel_vgpu_fb_info *fb_info)
{
gvt_dmabuf->drm_format = fb_info->drm_format;
+ gvt_dmabuf->drm_format_mod = fb_info->drm_format_mod;
gvt_dmabuf->width = fb_info->width;
gvt_dmabuf->height = fb_info->height;
gvt_dmabuf->stride = fb_info->stride;