OSDN Git Service

Allow to create FB with preferred format.
authorKalyan Kondapally <kalyan.kondapally@intel.com>
Sun, 10 Dec 2017 12:02:00 +0000 (04:02 -0800)
committerKalyan Kondapally <kalyan.kondapally@intel.com>
Sun, 10 Dec 2017 12:02:00 +0000 (04:02 -0800)
commitdb190f556aada0703d75706f2df4dc010753325f
treeeb65865bf53bc695d72123b3dca81051e6ab1db9
parent4efe80363baa90fc420252b5b0bc7c4719bf0d99
Allow to create FB with preferred format.

On primary plane, we sometimes fallback to use XRGB format if
ARGB is not supported. As we cache buffers now, we check if fb is
present and if so ignore the request. In this case we should
delete existing fb and create a new one.

Jira: None.
Test: All hwc-val tests pass on Android.

Signed-off-by: Kalyan Kondapally <kalyan.kondapally@intel.com>
common/display/displayqueue.cpp
wsi/drm/drmbuffer.cpp