hwc: Revert reset pipebook format and retain 8992 specific change
This reverts commit 87a1cd1c88f886c1774f0cde7a76a082b319f485 and retain
8992 specific changes
Change-Id: Ie19e9ea543f24f9b324fa0ef6e900ff95d423a7c
diff --git a/liboverlay/overlay.cpp b/liboverlay/overlay.cpp
index 113bd48..da24382 100644
--- a/liboverlay/overlay.cpp
+++ b/liboverlay/overlay.cpp
@@ -153,8 +153,6 @@
return getPipe_8x52(pipeSpecs);
} else if(MDPVersion::getInstance().is8994()) {
return getPipe_8994(pipeSpecs);
- } else if(MDPVersion::getInstance().is8992()) {
- return getPipe_8992(pipeSpecs);
}
eDest dest = OV_INVALID;
@@ -261,13 +259,6 @@
//supported since we at least need 1 round in between where the DMA is
//unused
eDest dest = OV_INVALID;
-
- // Reset format type to FORMAT_NONE to select the pipe irrespective of the
- // format specifed by the client. This is required for the device where
- // SMP starvation is unlikely, we need not keep track of formats
- // programmed in the pipes to avoid potential pipe crunching.
- resetPipeBookFormat(pipeSpecs.dpy);
-
if(pipeSpecs.formatClass == FORMAT_YUV) {
return nextPipe(OV_MDP_PIPE_VG, pipeSpecs);
} else {
@@ -279,14 +270,9 @@
dest = nextPipe(OV_MDP_PIPE_DMA, pipeSpecs);
}
}
-
return dest;
}
-utils::eDest Overlay::getPipe_8992(const PipeSpecs& pipeSpecs) {
- return getPipe_8994(pipeSpecs);
-}
-
void Overlay::endAllSessions() {
for(int i = 0; i < PipeBook::NUM_PIPES; i++) {
if(mPipeBook[i].valid() && mPipeBook[i].mSession==PipeBook::START)
diff --git a/liboverlay/overlay.h b/liboverlay/overlay.h
index 2782fc2..affb4db 100644
--- a/liboverlay/overlay.h
+++ b/liboverlay/overlay.h
@@ -179,9 +179,6 @@
utils::eDest getPipe_8x39(const PipeSpecs& pipeSpecs);
utils::eDest getPipe_8x52(const PipeSpecs& pipeSpecs);
utils::eDest getPipe_8994(const PipeSpecs& pipeSpecs);
- utils::eDest getPipe_8992(const PipeSpecs& pipeSpecs);
-
- void resetPipeBookFormat(const int &dpy);
/* Returns the handle to libscale.so's programScale function */
static int (*getFnProgramScale())(struct mdp_overlay_list *);
@@ -448,14 +445,6 @@
return "Invalid";
}
-inline void Overlay::resetPipeBookFormat(const int &dpy) {
- for(int i = 0; i < PipeBook::NUM_PIPES; i++) {
- if (mPipeBook[i].mDisplay == dpy) {
- mPipeBook[i].mFormatType = FORMAT_NONE;
- }
- }
-}
-
}; // overlay
#endif // OVERLAY_H