Skip to content

Shouldn't call AddFB2 in HWC for every commit

li hh requested to merge lihh/drm-hwcomposer:fix_cache into main

Cache framebuffer object into drm_fb_id_handle_cache_ (std::map<GemHandle, std::weak_ptr>),can find framebuffer from cache at next time. Unfortunately framebuffer will be closed after composition, in order to make framebuffer long-time valid, so change weak_ptr to shared_ptr.

Signed-off-by: lihh haihongx.li@intel.com

Merge request reports