笔者之前学习mesa3d适配时,将4.0r的dayu200 闭源gpu库替换成了mesa3d开源库。鉴于社区没有完整补丁,只有部分参考教程。笔者将相关补丁开源如下:

https://gitee.com/OpenHarmony_rk_equipment_transplantation/mesa3d-adaptation

步骤

repo init -u https://gitee.com/openharmony/manifest -b OpenHarmony-4.0-Release --no-repo-verify
repo sync -c
repo forall -c 'git lfs pull'

# 打入补丁,再编 mesa3d gpu点屏的代码
git clone -b 4.0r_arm64 https://gitee.com/OpenHarmony_rk_equipment_transplantation/mesa3d-adaptation.git 
chmod 777 mesa3d-adaptation/patch.sh
./mesa3d-adaptation/patch.sh

rm -rf out && sh build.sh --product-name rk3568 --ccache

相关参考资料

Logo

社区规范:仅讨论OpenHarmony相关问题。

更多推荐