summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Pinchart2016-03-26 18:24:01 +0100
committerLaurent Pinchart2016-12-19 10:24:52 +0100
commit4d20dfc053c7e0b2d155cbc6cb0817717753e2b5 (patch)
tree569e1a59ef6b4da16d416f0c5ca1f5ccce0b4d5e
parentdrm: Kbuild: add omap_drm.h to the installed headers (diff)
downloadkernel-qcow2-linux-4d20dfc053c7e0b2d155cbc6cb0817717753e2b5.tar.gz
kernel-qcow2-linux-4d20dfc053c7e0b2d155cbc6cb0817717753e2b5.tar.xz
kernel-qcow2-linux-4d20dfc053c7e0b2d155cbc6cb0817717753e2b5.zip
drm: omapdrm: fb: Limit number of planes per framebuffer to two
The only multi-planar format supported by the driver is NV12, there will thus never be more than two planes per framebuffer. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r--drivers/gpu/drm/omapdrm/omap_fb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_fb.c b/drivers/gpu/drm/omapdrm/omap_fb.c
index 5f3337f1e9aa..7646df33f9a1 100644
--- a/drivers/gpu/drm/omapdrm/omap_fb.c
+++ b/drivers/gpu/drm/omapdrm/omap_fb.c
@@ -36,7 +36,7 @@ struct format {
struct {
int stride_bpp; /* this times width is stride */
int sub_y; /* sub-sample in y dimension */
- } planes[4];
+ } planes[2];
bool yuv;
};
@@ -90,7 +90,7 @@ struct omap_framebuffer {
struct drm_framebuffer base;
int pin_count;
const struct format *format;
- struct plane planes[4];
+ struct plane planes[2];
/* lock for pinning (pin_count and planes.paddr) */
struct mutex lock;
};