修改位置:
device/rockchip/rk356x/device.mk:114: vendor.hwc.compose_policy=1 \
这个值是在
/hardware/rockchip/hwcomposer/drmhwc2/rockchip/platform/rk3588/drmvop3588.cpp:2923: int iMode = hwc_get_int_property("vendor.hwc.compose_policy","0");下进行解析的
//force go into GPU int iMode = hwc_get_int_property("vendor.hwc.compose_policy","0"); if((iMode!=1 || gles_policy) && iMode != 2){ ctx.state.setHwcPolicy.insert(HWC_GLES_POLICY); ALOGD_IF(LogLevel(DBG_DEBUG),"Force use GLES compose, iMode=%d, gles_policy=%d, soc_id=%x",iMode,gles_policy,ctx.state.iSocId); return 0; } ALOGD_IF(LogLevel(DBG_DEBUG),"request:afbcd=%d,scale=%d,yuv=%d,rotate=%d,hdr=%d,skip=%d\n" "support:afbcd=%d,scale=%d,yuv=%d,rotate=%d,hdr=%d, %s,line=%d,", ctx.request.iAfbcdCnt,ctx.request.iScaleCnt,ctx.request.iYuvCnt, ctx.request.iRotateCnt,ctx.request.iHdrCnt,ctx.request.iSkipCnt, ctx.support.iAfbcdCnt,ctx.support.iScaleCnt,ctx.support.iYuvCnt, ctx.support.iRotateCnt,ctx.support.iHdrCnt, __FUNCTION__,__LINE__); // Match policy first if(!TryOverlay()) TryMix(); return 0; }
安卓关闭硬件加速_mdebugdisablehwc_liu_sir_的博客-CSDN博客
RK3399 Android7.1 异形屏修改 - CrushGirl - 博客园 (cnblogs.com)
标签:compose,vendor,rockchip,ctx,hwc,iMode,policy,request From: https://www.cnblogs.com/wanglongjiang/p/17633790.html