commit | 53cb4ef4da1ad4c3cb1d138cf8d05f988b304a0d | [log] [tgz] |
---|---|---|
author | John Stultz <john.stultz@linaro.org> | Thu May 31 17:46:50 2018 -0700 |
committer | John Stultz <john.stultz@linaro.org> | Thu Jun 14 10:47:14 2018 -0700 |
tree | cfb12aa40bd64d73b322c30ea4b34be73cf331df | |
parent | 1542d29a538683250b818922527aec33774c793b [diff] |
drm_hwcomposer: platformdrmgeneric: Handle closing gem_handles if we have duplicate handles In some cases some multi-plane bo's may have multiple gem_handles/offsets/pitches set. And its possible to have multiple planes that use the same gem_handle with different offsets/pitches. Thus, when closing the gem_handles, if we're not careful we could close the same handle multiple times. So this patch avoids this by taking some old code from the nv importer: https://gitlab.freedesktop.org/drm-hwcomposer/drm-hwcomposer/blob/aeccd89eaafec467cb9449cce5c64152a240c138/platformnv.cpp#L176 Many thanks to Stefan Schake for pointing me to that code. Change-Id: Ifecd0f95de5ada5280a0af807005d0b0186a068c 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!