diff --git a/libhwcomposer/hwc_mdpcomp.cpp b/libhwcomposer/hwc_mdpcomp.cpp index 864a9e3..191c099 100644 --- a/libhwcomposer/hwc_mdpcomp.cpp +++ b/libhwcomposer/hwc_mdpcomp.cpp @@ -17,6 +17,7 @@ */ #include +#include #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);