diff options
author | Inki Dae <inki.dae@samsung.com> | 2012-08-20 07:05:56 -0400 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2012-10-03 21:06:00 -0400 |
commit | 01ed812671c1163b35bf6ce9be221bd371bf9a8f (patch) | |
tree | f79d48db7a6ae3cda29beedb9a827e7ea45ba87f /drivers/gpu/drm/exynos/exynos_drm_fbdev.c | |
parent | 3d05859fd78bbc0b04cca929aea494f5e6b8235b (diff) |
drm/exynos: check NV12M format specific to Exynos properly
this patch adds buf_cnt variable in exynos_drm_fb structure and
that means a buffer count to drm framebuffer and also adds two
functions to get/set the buffer count from/to exynos_drm_fb structure.
if pixel format is not DRM_FORMAT_NV12MT then it gets a buffer count
to drm framebuffer refering to mode_cmd->handles and offsets.
but when booted, the buffer count will always be 1 because pixel
format of console framebuffer is RGB format.
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_drm_fbdev.c')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_fbdev.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fbdev.c b/drivers/gpu/drm/exynos/exynos_drm_fbdev.c index f4ac43356583..d7205f8b2301 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fbdev.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fbdev.c | |||
@@ -79,6 +79,9 @@ static int exynos_drm_fbdev_update(struct drm_fb_helper *helper, | |||
79 | return -EFAULT; | 79 | return -EFAULT; |
80 | } | 80 | } |
81 | 81 | ||
82 | /* buffer count to framebuffer always is 1 at booting time. */ | ||
83 | exynos_drm_fb_set_buf_cnt(fb, 1); | ||
84 | |||
82 | offset = fbi->var.xoffset * (fb->bits_per_pixel >> 3); | 85 | offset = fbi->var.xoffset * (fb->bits_per_pixel >> 3); |
83 | offset += fbi->var.yoffset * fb->pitches[0]; | 86 | offset += fbi->var.yoffset * fb->pitches[0]; |
84 | 87 | ||