commit | 9127dc88344d7c62037b4b4305c9c73da6826981 | [log] [tgz] |
---|---|---|
author | Benjamin Li <benl@squareup.com> | Wed May 05 09:23:15 2021 -0700 |
committer | Benjamin Li <benl@squareup.com> | Fri May 07 16:28:30 2021 -0700 |
tree | 07415bced7d39b3edaa432d2b7fdec8252a5a9b4 | |
parent | 4535e53dc502f06ad5e369cbdc680c753baabd30 [diff] |
drm_hwcomposer: add DRM_PROPERTY_TYPE_BITMASK Bitmask properties are integers that additionally have strings associated with each bit. For example, the "rotation" property's bits are described as "rotate-90", "reflect-x", and so on. The bitmask integer is not actually passed to us -- instead, the interface for enums is used, except that more than one value can be set. This means we must query using the associated strings, rather than use bit index mappings provided as constants in the public kernel header drm_mode.h. Signed-off-by: Benjamin Li <benl@squareup.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-5.0 -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!