diff options
author | Arun Kumar K.R <akumarkr@codeaurora.org> | 2015-09-18 19:16:12 -0700 |
---|---|---|
committer | Arne Coucheron <arco68@gmail.com> | 2016-08-29 01:01:14 +0200 |
commit | 08b30db524a1a879bb4903ae123c48721821c8bb (patch) | |
tree | 5dad9498e40b23cb973d60fdb2bf62030352f0eb | |
parent | 17b8f5e7727dd631faa38253cbe8e39721f6bca7 (diff) | |
download | hardware_qcom_display-cm-13.0-caf-8960.tar.gz hardware_qcom_display-cm-13.0-caf-8960.tar.bz2 hardware_qcom_display-cm-13.0-caf-8960.zip |
hwc: Fix MDP comp array index accesscm-13.0-caf-8960
Fix MDP comp array index access in case of High Res pipe allocation.
This is already correct in case of Low Res allocation routine.
Bug: 24163261
Acked-by: Saurabh Shah <saurshah@codeaurora.org>
Change-Id: I7eaa0711ef8998ea03edba18b74db80459daf4c7
-rw-r--r-- | libhwcomposer/hwc_mdpcomp.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libhwcomposer/hwc_mdpcomp.cpp b/libhwcomposer/hwc_mdpcomp.cpp index 1762e3d2b..0b74360d4 100644 --- a/libhwcomposer/hwc_mdpcomp.cpp +++ b/libhwcomposer/hwc_mdpcomp.cpp @@ -1286,7 +1286,8 @@ bool MDPCompHighRes::allocLayerPipes(hwc_context_t *ctx, if(isYuvBuffer(hnd)) continue; - PipeLayerPair& info = mCurrentFrame.mdpToLayer[index]; + int mdpIndex = mCurrentFrame.layerToMDP[index]; + PipeLayerPair& info = mCurrentFrame.mdpToLayer[mdpIndex]; info.pipeInfo = new MdpPipeInfoHighRes; info.rot = NULL; MdpPipeInfoHighRes& pipe_info = *(MdpPipeInfoHighRes*)info.pipeInfo; |