drm/i915/gvt: Add drm_format_mod update

Submitted by Zhang, Tina on March 28, 2018, 1:46 a.m.

Details

Message ID 1522201581-29420-1-git-send-email-tina.zhang@intel.com
State New
Headers show
Series "drm/i915/gvt: Add drm_format_mod update" ( rev: 1 ) in Intel GVT devel

Not browsing as part of any series.

Commit Message

Zhang, Tina March 28, 2018, 1:46 a.m.
Add drm_format_mod update, which is omitted.

Fixes: e546e281("drm/i915/gvt: Dmabuf support for GVT-g")
Signed-off-by: Tina Zhang <tina.zhang@intel.com>
---
 drivers/gpu/drm/i915/gvt/dmabuf.c | 1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/drivers/gpu/drm/i915/gvt/dmabuf.c b/drivers/gpu/drm/i915/gvt/dmabuf.c
index 459d37c..e332470 100644
--- a/drivers/gpu/drm/i915/gvt/dmabuf.c
+++ b/drivers/gpu/drm/i915/gvt/dmabuf.c
@@ -321,6 +321,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;

Comments

pls cc stable for 4.16 pickup

On 2018.03.28 09:46:21 +0800, Tina Zhang wrote:
> Add drm_format_mod update, which is omitted.
> 
> Fixes: e546e281("drm/i915/gvt: Dmabuf support for GVT-g")
> Signed-off-by: Tina Zhang <tina.zhang@intel.com>
> ---
>  drivers/gpu/drm/i915/gvt/dmabuf.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/gpu/drm/i915/gvt/dmabuf.c b/drivers/gpu/drm/i915/gvt/dmabuf.c
> index 459d37c..e332470 100644
> --- a/drivers/gpu/drm/i915/gvt/dmabuf.c
> +++ b/drivers/gpu/drm/i915/gvt/dmabuf.c
> @@ -321,6 +321,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;
> -- 
> 2.7.4
> 
> _______________________________________________
> intel-gvt-dev mailing list
> intel-gvt-dev@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gvt-dev