Skip to contentSkip to conversation

drm/crtc-helper: use drm_framebuffer flags

PATCH In review Fabien DESSENNE 3 participants 4 messages Jul 1, 2014 – Jul 22, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/crtc-helper: use drm_framebuffer flags

The "flags" parameter of the DRM_IOCTL_MODE_ADDFB2 ioctl must be propagated and used by the driver.
The only possible value of flags is DRM_MODE_FB_INTERLACED.

---
 drivers/gpu/drm/drm_crtc_helper.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/drm_crtc_helper.c +1 -0
index 23500c0..5974489 100644
@@ -966,6 +966,7 @@ int drm_helper_mode_fill_fb_struct(struct drm_framebuffer *fb,
 	drm_fb_get_bpp_depth(mode_cmd->pixel_format, &fb->depth,
 				    &fb->bits_per_pixel);
 	fb->pixel_format = mode_cmd->pixel_format;
+	fb->flags = mode_cmd->flags;
 
 	return 0;
 }
Signature · 1 line
1.9.1
#1 lore raw

Hi,
Can anyone review this patch ?
Thanks for your time.
Fabien

Quoted 33 lines

-----Original Message-----
From: Fabien DESSENNE [mailto:[email protected]]
Sent: mardi 1 juillet 2014 14:41
To: [email protected]
Cc: Benjamin Gaignard; Vincent ABRIOU; Fabien DESSENNE
Subject: [PATCH] drm/crtc-helper: use drm_framebuffer flags

The "flags" parameter of the DRM_IOCTL_MODE_ADDFB2 ioctl must be propagated and used by the driver.
The only possible value of flags is DRM_MODE_FB_INTERLACED.

---
 drivers/gpu/drm/drm_crtc_helper.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/drm_crtc_helper.c +1 -0
index 23500c0..5974489 100644
@@ -966,6 +966,7 @@ int drm_helper_mode_fill_fb_struct(struct
 drm_framebuffer *fb,
 	drm_fb_get_bpp_depth(mode_cmd->pixel_format, &fb->depth,
 				    &fb->bits_per_pixel);
 	fb->pixel_format = mode_cmd->pixel_format;
+	fb->flags = mode_cmd->flags;
 
 	return 0;

}
--
1.9.1

#2 lore raw

Adding LKML and David in diffusion list to get an opinion on this patch

2014-07-10 10:01 GMT+02:00 Fabien DESSENNE <[email protected]>:

Quoted 39 lines

Hi,
Can anyone review this patch ?
Thanks for your time.
Fabien

Quoted 33 lines

-----Original Message-----
From: Fabien DESSENNE [mailto:[email protected]]
Sent: mardi 1 juillet 2014 14:41
To: [email protected]
Cc: Benjamin Gaignard; Vincent ABRIOU; Fabien DESSENNE
Subject: [PATCH] drm/crtc-helper: use drm_framebuffer flags

The "flags" parameter of the DRM_IOCTL_MODE_ADDFB2 ioctl must be propagated and used by the driver.
The only possible value of flags is DRM_MODE_FB_INTERLACED.

---
 drivers/gpu/drm/drm_crtc_helper.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/drm_crtc_helper.c +1 -0
index 23500c0..5974489 100644
@@ -966,6 +966,7 @@ int drm_helper_mode_fill_fb_struct(struct
 drm_framebuffer *fb,
      drm_fb_get_bpp_depth(mode_cmd->pixel_format, &fb->depth,
                                  &fb->bits_per_pixel);
      fb->pixel_format = mode_cmd->pixel_format;
+     fb->flags = mode_cmd->flags;
 
      return 0;

}
--
1.9.1

Signature · 11 lines
Benjamin Gaignard

Graphic Working Group

Linaro.org │ Open source software for ARM SoCs

Follow Linaro: Facebook | Twitter | Blog
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
maintainer
#3 lore raw
Quoted 5 lines · Benjamin Gaignard

Adding LKML and David in diffusion list to get an opinion on this patch

2014-07-10 10:01 GMT+02:00 Fabien DESSENNE <[email protected]>:

Quoted 2 lines

Hi,
Can anyone review this patch ?

It's been in drm-next for a few weeks.

Dave.