1
0
Fork 0
android_external_drm_hwcomp.../utils
Roman Stratiienko cfc2b2e602 drm_hwcomposer: fix incorrect layer_count usage
According to [1] DRM YCrCb planes is not the same as gralloc layers.
DRMHWC2 has no information about number of layers used in the buffer.
Also supplying value other than 1 will allways fail validation on
passthrough MapperHal@2.1 and probably other passthrough implementations [2].

[1] - https://cs.android.com/android/platform/superproject/+/master:hardware/libhardware/include/hardware/gralloc1.h;l=467;drc=1155c41d016a118801fe97b55af9918e531f7f84
[2] - https://cs.android.com/android/platform/superproject/+/master:hardware/interfaces/graphics/mapper/2.1/utils/passthrough/include/mapper-passthrough/2.1/Gralloc0Hal.h;l=40;drc=e308ceb1e9940d1d90a11177782a7cfe8630bb95

Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
Change-Id: Idbfea8eaa74a557b98ecdff728e6c67aeea9cea6
2020-09-01 23:12:47 +03:00
..
autolock.cpp drm_hwcomposer: Organize files into subdirs 2019-06-11 09:38:11 -04:00
hwcutils.cpp drm_hwcomposer: fix incorrect layer_count usage 2020-09-01 23:12:47 +03:00
worker.cpp drm_hwcomposer: Organize files into subdirs 2019-06-11 09:38:11 -04:00