-
Roman Stratiienko authored
1. Import DRM modifier field from libdrm's gralloc_habdle. 2. Recently lock_ycrcb() was added to gbm_gralloc() [1], mesa3d uses this function to obtain CrCb plane data (offsets, strides). Use the same alhorythm in drm_hwcomposer. This allows GPU offloading during video playback. (Tested using Gallery app and SkyTube). [1] - https://github.com/robherring/gbm_gralloc/pull/15 [2] - https://gitlab.freedesktop.org/mesa/mesa/-/blob/68957a82562d13b3f0d21a04ce633ffd236e6036/src/egl/drivers/dri2/platform_android.c#L202 Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com> Change-Id: I8ec177ac782f27174443cebcb6e773070c1505cc
fbf5c0ca