1
0
Fork 0
No description
Find a file
Konsta 56cb319f29 Partially revert "drm_hwcomposer: Produce stable port IDs"
* Android Automotive configurations rely on hardcoded port ids.
  These are used on EVS camera configuration and configuring instrument
  cluster on secondary display.
* On Pi 5 the reverted commit changed the port ids for HDMI-A-1 and HDMI-A-2
  from 0 and 1 to 32 and 33, respectively.
* Doesn't produce stable ids between rpi4 and rpi5 where there are different
  number of drm cards and in different order.
* Lets keep running number from 0 for now vs. what 3/5 bit split would
  produce on rpi4 and rpi5.

  rpi4:
  card0 - HDMI-A-1, HDMI-A-2, DSI-0 & DSI-1
  000 00000 -> 0
  000 00001 -> 1
  000 00010 -> 2
  000 00011 -> 3

  rpi5:
  card1 - HDMI-A-1 & HDMI-A-2
  001 00000 -> 32
  001 00001 -> 33
  card2 - DSI-0
  010 00000 -> 64
  card3 - DSI-1
  011 00000 -> 96

* Only revert the relevant part to avoid merge conflicts.

This partially reverts commit 907a51ab1b.
2025-11-10 15:56:28 +02:00
.ci Add atom reporting for flattening controller state 2025-11-06 15:30:45 +00:00
backend Move CompositionPlanner from backend/ to compositor/ 2025-11-06 18:32:05 +00:00
bufferinfo drm_hwcomposer: Migrate to android::drm_hwcomposer namespace 2025-09-08 18:53:00 +00:00
compositor Rename DrmKmsPlan to LayerToPlaneJoiningPlan 2025-11-06 18:32:13 +00:00
drm drm_hwcomposer: Add property to force display mode 2025-11-10 15:56:19 +02:00
hwc Partially revert "drm_hwcomposer: Produce stable port IDs" 2025-11-10 15:56:28 +02:00
hwc2_device Move CompositionPlanner from backend/ to compositor/ 2025-11-06 18:32:05 +00:00
hwc3 drm_hwcomposer: Add HDCP state tracking to request it to be enabled 2025-10-14 19:10:56 +00:00
stats Move CompositionPlanner from backend/ to compositor/ 2025-11-06 18:32:05 +00:00
tests drm_hwcomposer: Migrate to android::drm_hwcomposer namespace 2025-09-08 18:53:00 +00:00
utils drm_hwcomposer: Add property to disable HDR 2025-11-10 15:56:28 +02:00
.clang-format drm_hwcomposer: clang-format: Derive pointer alignment 2025-08-19 09:16:22 -06:00
.clang-tidy drm_hwcomposer: CI: Use aospext to provide headers for clang-tidy 2023-11-21 18:50:58 +02:00
.gitignore Add .gitignore 2024-10-14 12:32:10 -06:00
.gitlab-ci.yml CI: Update ci-templates 2025-10-03 15:49:50 -07:00
Android.bp Rename DrmKmsPlan to LayerToPlaneJoiningPlan 2025-11-06 18:32:13 +00:00
Makefile drm_hwcomposer: Fix build_deploy script and switch it to hwc3 2024-11-27 23:23:57 +02:00
meson.build Rename DrmKmsPlan to LayerToPlaneJoiningPlan 2025-11-06 18:32:13 +00:00
meson.options drm_hwcomposer: CI: Update to Android 16 2025-08-19 14:52:08 -07:00
MODULE_LICENSE_APACHE2 drm_hwcomposer: License NOTICE file and metadata from AOSP 2018-05-04 10:46:10 -07:00
NOTICE drm_hwcomposer: License NOTICE file and metadata from AOSP 2018-05-04 10:46:10 -07:00
README.md drm_hwcomposer: CI: Upgrade Ubuntu and clang version 2024-10-17 02:13:14 +03:00

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-19 -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!