Commit ba3849d5 authored by Eunchul Kim's avatar Eunchul Kim Committed by Dave Airlie

drm/exynos: add default pixel format for plane

DRM checks whether the plane supports a pixel format of fb when plane is
updated. This adds a default pixel format supporting format exynos drm
plane.
Signed-off-by: default avatarEunchul Kim <chulspro.kim@samsung.com>
Signed-off-by: default avatarJoonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 590f418a
...@@ -22,6 +22,10 @@ struct exynos_plane { ...@@ -22,6 +22,10 @@ struct exynos_plane {
bool enabled; bool enabled;
}; };
static const uint32_t formats[] = {
DRM_FORMAT_XRGB8888,
};
static int static int
exynos_update_plane(struct drm_plane *plane, struct drm_crtc *crtc, exynos_update_plane(struct drm_plane *plane, struct drm_crtc *crtc,
struct drm_framebuffer *fb, int crtc_x, int crtc_y, struct drm_framebuffer *fb, int crtc_x, int crtc_y,
...@@ -115,9 +119,9 @@ int exynos_plane_init(struct drm_device *dev, unsigned int nr) ...@@ -115,9 +119,9 @@ int exynos_plane_init(struct drm_device *dev, unsigned int nr)
exynos_plane->overlay.zpos = DEFAULT_ZPOS; exynos_plane->overlay.zpos = DEFAULT_ZPOS;
/* TODO: format */
return drm_plane_init(dev, &exynos_plane->base, possible_crtcs, return drm_plane_init(dev, &exynos_plane->base, possible_crtcs,
&exynos_plane_funcs, NULL, 0, false); &exynos_plane_funcs, formats, ARRAY_SIZE(formats),
false);
} }
int exynos_plane_set_zpos_ioctl(struct drm_device *dev, void *data, int exynos_plane_set_zpos_ioctl(struct drm_device *dev, void *data,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment