libhwcomposer: Check for downscaling with alpha

RGB pipe doesnot support downscaling with alpha on targets
with MDP 4.1 and less. Abort bypass for those targets if the
layer requires downscaling with alpha

Change-Id: I3450968458977626dfc90a9f35da593f08ced93c
This commit is contained in:
Raj kamal 2012-09-24 15:36:17 +05:30 committed by andrew.boren
parent e09a5d04db
commit 6d678fb683

View File

@ -17,6 +17,7 @@
*/
#include <cutils/properties.h>
#include <mdp_version.h>
#include "hwc_mdpcomp.h"
#include "hwc_qbuf.h"
#include "hwc_external.h"
@ -456,7 +457,12 @@ int MDPComp::mark_layers(hwc_layer_list_t* list, layer_mdp_info* layer_info,
if((layer_prop & MDPCOMP_LAYER_DOWNSCALE) &&
(layer_prop & MDPCOMP_LAYER_BLEND)) {
pipe_pref = PIPE_REQ_RGB;
if (qdutils::MDPVersion::getInstance().getMDPVersion() >=
qdutils::MDP_V4_2) {
pipe_pref = PIPE_REQ_RGB;
} else {
return MDPCOMP_ABORT;
}
}
int allocated_pipe = sPipeMgr.req_for_pipe( pipe_pref);