在OpenHarmony上适配图形显示【4】——rk3568_4.0r_mesa3d适配
笔者之前学习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.shrm -rf out && sh build.sh --product-name rk3568 --ccache
相关参考资料
- https://laval.csdn.net/649253d262c6e667c4f492bd.html
- https://laval.csdn.net/68204b63c89bb16498901392.html
- https://www.51cto.com/article/748494.html