OSDN Git Service

drm_hwcomposer: Fix HiSi import fail log spam
authorSean Paul <seanpaul@chromium.org>
Fri, 24 Aug 2018 20:58:35 +0000 (16:58 -0400)
committerSean Paul <seanpaul@chromium.org>
Mon, 27 Aug 2018 18:13:37 +0000 (14:13 -0400)
commit54589d28d0b1ed8e4ea9b20bee25258e2918eb3d
tree997f34e751ac4d6c84f23eb07cfc215fe6574b14
parentf72cccd72a35f36e18674255c1886ecc30abb781
drm_hwcomposer: Fix HiSi import fail log spam

hikey can only display layers which do not have gralloc usage HW_FB
(hint: that leaves just the client target layer). As such, there's no
benefit trying to import them since it'll just fail. So if we encounter
a layer such as this, fake the import (the release will be a noop since
gem_handles will be 0).

Also, as a belt-and-suspenders move, replace the greedy planner with one
that only displays (usage != HW_FB) to be doubly sure that we don't try
to display the no-op layers

Change-Id: I7bf88cfb7bda1dd5f47b741709619494431558a2
Signed-off-by: Sean Paul <seanpaul@chromium.org>
platformhisi.cpp