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:
parent
e09a5d04db
commit
6d678fb683
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user