drm_hwcomposer: Check the composition before sending to frame worker
Before we send a composition to the frame worker and display, run it
through the kernel to test whether it can be put on hardware. If the
kernel rejects the composition, use the squashing code to flatten it
on one layer and send the result to the frame worker.
Test: Tested on smaug, frames were squashed, fun was had
Signed-off-by: Sean Paul <firstname.lastname@example.org>
2 files changed