commit | df35a81f49c9c0ed4fa9e2f00b1b99ccd36a8407 | [log] [tgz] |
---|---|---|
author | John Stultz <john.stultz@linaro.org> | Thu May 31 17:37:21 2018 -0700 |
committer | John Stultz <john.stultz@linaro.org> | Thu Jun 14 10:47:14 2018 -0700 |
tree | 245c98cf4027088973f8d09e29bb9fed2819f823 | |
parent | 53cb4ef4da1ad4c3cb1d138cf8d05f988b304a0d [diff] |
drm_hwcomposer: platformhisi: Add support for importing DRM_FORMAT_YVU420 buffers When trying to play fullscreen video, I started seeing import errors, which were caused by us trying to call drmModeAddFB2() with fmt DRM_FORMAT_YVU420 but only setting the a single set of handle/pitch/offset values. In the kernel, the framebuffer_check() function would then fail with "no buffer object handle for plane 1" since we only passed one plane in. Thus this patch calculates and sets the pitch/offset values for the separate planes in the single gem_handle buffer. Many thanks to Stefan Schake and Rob Herring for helping me understand some of the subtleties of image plans vs display planes, etc. Change-Id: I2d9bdfc66c504e6446a4f9c6287ab675201afa30 Signed-off-by: John Stultz <john.stultz@linaro.org>
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-3.5 -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!