drm_hwcomposer: Merge remote-tracking branch 'aosp/upstream-main' into HEAD

Sync AOSP's drm_hwcomposer branch to the upstream main branch.

This includes a number of fixes and cleanups from
Roman Stratiienko as well as fixes from Mauro Rossi.

* aosp/upstream-main:
  drm_hwcomposer: Rework HwcDisplay disposal to avoid races
  drm_hwcomposer: Add test utility to listen for uevents
  drm_hwcomposer: Define DRM_FORMAT_XYUV8888 if missing
  drm_hwcomposer: fix sign-compare building error in uevent listener
  drm_hwcomposer: build with -std=c++17 cppflag
  drm_hwcomposer: Rename DrmDisplayCompositor->DrmAtomicStateManager
  drm_hwcomposer: Remove AtomicCommitArgs::clear_active_composition field
  drm_hwcomposer: Remove RCAR-DU specific code.
  drm_hwcomposer: Rework KMS composition planner + plane sharing support
  drm_hwcomposer: Implement SetActiveConfigWithConstraints
  drm_hwcomposer: Use single VSyncWorker per display
  drm_hwcomposer: Dynamic DrmDisplayPipeline to HwcDisplay bindings
  drm_hwcomposer: Initialize HwcDisplay using DrmDisplayPIpeline
  drm_hwcomposer: Fix PipelineBindable::BindPipeline
  drm_hwcomposer: Introduce DrmDisplayPipeline class
  drm_hwcomposer: Tidy-up DrmDevice class
  drm_hwcomposer: Tidy-up DrmConnector class
  drm_hwcomposer: Tidy-up DrmEncoder class
  drm_hwcomposer: Tidy-up DrmCrtc class
  drm_hwcomposer: Remove ability to prioritize primary display
  drm_hwcomposer: Handle primary display in GetDisplayConnectionType()
  drm_hwcomposer: Tidy-up DrmPlane class
  drm_hwcomposer: Simplify DrmHwcTwo::GetDisplay()
  drm_hwcomposer: Fix build_deploy.sh script

Signed-off-by: John Stultz <john.stultz@linaro.org>
Change-Id: Iba91e67371f4f1fc0a8cccf2ee97373898a5d195
tree: 61210f46359d60a5ea560343e27154deee16f63b
  1. .ci/
  2. backend/
  3. bufferinfo/
  4. compositor/
  5. drm/
  6. hwc2_device/
  7. include/
  8. tests/
  9. utils/
  10. .clang-format
  11. .clang-tidy
  12. .gitlab-ci.yml
  13. Android.bp
  14. build_deploy.sh
  15. METADATA
  16. MODULE_LICENSE_APACHE2
  17. NOTICE
  18. OWNERS
  19. presubmit.sh
  20. README.md
README.md

drm_hwcomposer

Patches to drm_hwcomposer are very much welcome, we really want this to be the universal HW composer implementation for Android and similar platforms. So please bring on porting patches, bugfixes, improvements for documentation and new features.

A short list of contribution guidelines:

  • Submit changes via gitlab merge requests on gitlab.freedesktop.org.

  • drm_hwcomposer is Apache 2.0 Licensed and we require contributions to follow the developer's certificate of origin: http://developercertificate.org/.

  • When submitting new code please follow the naming conventions documented in the generated documentation. Also please make full use of all the helpers and convenience macros provided by drm_hwcomposer. The below command can help you with formatting of your patches:

    git diff | clang-format-diff-13 -p 1 -style=file
    
  • Hardware specific changes should be tested on relevant platforms before committing.

If you need inspiration, please checkout our TODO issues.

Happy hacking!