commit | 0da91bf5bb72323a0f0d1928a1fc36a01c1b7941 | [log] [tgz] |
---|---|---|
author | Roman Stratiienko <r.stratiienko@gmail.com> | Tue Jan 17 18:06:04 2023 +0200 |
committer | Roman Stratiienko <r.stratiienko@gmail.com> | Wed Jan 18 17:20:01 2023 +0200 |
tree | c9c41c3efc5aa707acc0a23d4108ce69cd2fa3c6 | |
parent | 359a9d397100cf531f203ded61d2578957fb526f [diff] |
drm_hwcomposer: Add support for color transform matrix 1. Add and wire-up CRTC CTM property support. 2. Add custom Android property to select behavior for cases where DRM can't handle color transform matrix. The "vendor.hwc.drm.ctm" property can be set to: - DRM_OR_GPU (default) - Use GPU if CTM is not supported by DRM. - DRM_OR_IGNORE - Ignore CTM if DRM doesn't support it. The last option is useful for Android 13 and later where default color transformation matrix is not an identity matrix. At the moment I do not have any devices with CTM support, therefore I can test only DRM_OR_IGNORE option. Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
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-15 -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!