]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/exynos: fb: use drm_format_num_planes to get buffer count
authorTobias Jakobi <tjakobi@math.uni-bielefeld.de>
Mon, 27 Apr 2015 21:10:13 +0000 (23:10 +0200)
committerInki Dae <daeinki@gmail.com>
Tue, 19 May 2015 13:50:51 +0000 (22:50 +0900)
commitd10ebb9f136669a1e9fa388fc450bf1822c93dd5
tree1134c245efca65f77c1be90059aebfce85fc8793
parent64d237e66d562348f04a9c04a45455c1f3201ced
drm/exynos: fb: use drm_format_num_planes to get buffer count

The previous code had some special case handling for the buffer
count in exynos_drm_format_num_buffers().

This code was incorrect though, since this special case doesn't
exist for DRM. It stemmed from the existence of the special NV12M
V4L2 format. NV12 is a bi-planar format (separate planes for luma
and chroma) and V4L2 differentiates between a NV12 buffer where
luma and chroma is contiguous in memory (so no data between
luma/chroma), and a NV12 buffer where luma and chroma have two
explicit memory locations (which is then called NV12M).

This distinction doesn't exist for DRM. A bi-planar format always
explicitly comes with the information about its two planes (even
if these planes should be contiguous).

Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Acked-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_fb.c