unisoc-twrp-sourcecode_patch/改动逻辑.txt

11 lines
554 B
Text
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

改动逻辑
sprd drm不适配
twrp12路径/bootable/recovery/minuitwrp/graphics_drm.cpp
改动核心是:
- 把原来的 Qualcomm/SDE atomic topology、plane、mode blob 那套代码从实际编译路径里绕掉。
- blank/unblank 改成 drmModeSetCrtc()。
- 刷新 framebuffer 改成 drmModePageFlip(),失败时 fallback 到 drmModeSetCrtc()。
- disable_non_main_crtcs() 也改成 legacy drmModeSetCrtc(... fb=0 ...),不再 atomic commit。
- 初始化阶段不再 DRM_CLIENT_CAP_ATOMIC不再枚举 plane/topology/mode blob。