diff options
author | Gowtham Tammana <g-tammana@ti.com> | 2016-11-29 16:41:16 -0600 |
---|---|---|
committer | Gowtham Tammana <g-tammana@ti.com> | 2016-12-02 17:48:17 -0500 |
commit | 8016f61eb13a71f31b826a4b131ccd0c7ea29f1e (patch) | |
tree | 1063946f0b46384cca4a311356cb39561355fded | |
parent | e5ab0250318bab6473cceb6b4c579e56710f439f (diff) | |
download | dra7xx-d-marshmallow-mr2-release.tar.gz |
hwc: Reset only the planes available on a displayd-marshmallow-mr2-release
When configuring pipes for display, reset planes only if they
are available for a given display.
Change-Id: I8ccf9b14225b7fbe94e431a12deb1cc18b674304
Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
-rw-r--r-- | hwcomposer/display.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hwcomposer/display.c b/hwcomposer/display.c index 746cbd8..e1168ab 100644 --- a/hwcomposer/display.c +++ b/hwcomposer/display.c @@ -1007,7 +1007,7 @@ static int display_configure_pipes(display_t *display) ALOGE("Failed setting crtc_id"); } } - for (i = comp->used_ovls; i < DSS_AVAILABLE_PIPES; i++) { + for (i = comp->used_ovls; i < comp->used_ovls + comp->avail_ovls; i++) { drmModeSetPlane(hwc_dev->drm_fd, comp->plane_info[i].plane_id, kdisp->crtc_id, 0, 0, 0, 0, 0, 0, |