Skip to contentSkip to conversation

drm/exynos: fix the number of overlay planes

PATCH New Hyungwon Hwang 1 participant 1 message Mar 12, 2015

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

PATCH 1/1 drm/exynos: fix the number of overlay planes

The number of overlay planes is one less than the maximum number of planes, because the one is used for primary plane.

---
 drivers/gpu/drm/exynos/exynos_drm_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/exynos/exynos_drm_drv.c +1 -1
index 90168d7..98a239a 100644
@@ -81,7 +81,7 @@ static int exynos_drm_load(struct drm_device *dev, unsigned long flags)
 
 	exynos_drm_mode_config_init(dev);
 
-	for (nr = 0; nr < MAX_PLANE; nr++) {
+	for (nr = 0; nr < MAX_PLANE - 1; nr++) {
 		struct drm_plane *plane;
 		unsigned long possible_crtcs = (1 << MAX_CRTC) - 1;
 
Signature · 6 lines
1.9.1

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel