hwc: Remove need for intermediate for mdp3 composition
8x10 has a product line that is suppose to use 256MB. The intermediate buffers allocated are not needed when we can compose onto fb frame. Change-Id: I13fd2deb328a3ef4b6738cfe7030fe67ea7bd6c6
This commit is contained in:
@@ -1192,7 +1192,8 @@ int hwc_sync(hwc_context_t *ctx, hwc_display_contents_1_t* list, int dpy,
|
||||
|
||||
//Accumulate acquireFenceFds for MDP
|
||||
for(uint32_t i = 0; i < list->numHwLayers; i++) {
|
||||
if(list->hwLayers[i].compositionType == HWC_OVERLAY &&
|
||||
if((list->hwLayers[i].compositionType == HWC_OVERLAY ||
|
||||
list->hwLayers[i].compositionType == HWC_BLIT) &&
|
||||
list->hwLayers[i].acquireFenceFd >= 0) {
|
||||
if(UNLIKELY(swapzero))
|
||||
acquireFd[count++] = -1;
|
||||
@@ -1234,6 +1235,7 @@ int hwc_sync(hwc_context_t *ctx, hwc_display_contents_1_t* list, int dpy,
|
||||
|
||||
for(uint32_t i = 0; i < list->numHwLayers; i++) {
|
||||
if(list->hwLayers[i].compositionType == HWC_OVERLAY ||
|
||||
list->hwLayers[i].compositionType == HWC_BLIT ||
|
||||
list->hwLayers[i].compositionType == HWC_FRAMEBUFFER_TARGET) {
|
||||
//Populate releaseFenceFds.
|
||||
if(UNLIKELY(swapzero)) {
|
||||
|
||||
Reference in New Issue
Block a user