Android-x86
Fork

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-drm_hwcomposer: コミット

external/drm_hwcomposer


コミットメタ情報

リビジョン582cb32ce5dc1480cb296d6a5031d50eae71b97e (tree)
日時2020-02-11 00:55:15
作者Roman Stratiienko <roman.stratiienko@glob...>
コミッターRoman Stratiienko

ログメッセージ

drm_hwcomposer: Extract more BO data by Imagination importer v2

Fields bo->hal_format and bo->pixel_stride should be set to pass validation
by Mapper HAL v2.1 and v3.0. Otherwise UI is missing and the following
message appears in the logcat:


2576 E GraphicBufferMapper: validateBufferSize(0xe663b3637400) failed: 7
2576 E hwc-drm-utils: Failed to import buffer handle err: 7
2576 E hwc-drm-two: Failed to import layer, ret=7

Fixes: e3ed48d728aa ("drm_hwcomposer: Add Imagination platform support")
Signed-off-by: Roman Stratiienko <roman.stratiienko@globallogic.com>

変更サマリ

差分

--- a/platform/platformimagination.cpp
+++ b/platform/platformimagination.cpp
@@ -39,6 +39,8 @@ int ImaginationImporter::ConvertBoInfo(buffer_handle_t handle,
3939 bo->usage = hnd->usage;
4040 bo->prime_fds[0] = hnd->fd[0];
4141 bo->pitches[0] = ALIGN(hnd->iWidth, HW_ALIGN) * hnd->uiBpp >> 3;
42+ bo->hal_format = hnd->iFormat;
43+ bo->pixel_stride = hnd->aiStride[0];
4244
4345 switch (hnd->iFormat) {
4446 #ifdef HAL_PIXEL_FORMAT_BGRX_8888
旧リポジトリブラウザで表示