diff options
author | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-02-04 20:15:13 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-02-04 20:15:13 +0000 |
commit | a8a05b9478330351af19663c5219d51b44a6e218 (patch) | |
tree | 35caa7868e6e17b9f02fb1f88887ec86cf32dc49 | |
parent | a369f5b18acfd65fcb707ca74b5f3ed98cb44448 (diff) | |
parent | 8618fd29cc0e8f3d4aac80b46b8a7252e9b6bfc7 (diff) | |
download | drm_hwcomposer-a8a05b9478330351af19663c5219d51b44a6e218.tar.gz |
Revert "drm_hwcomposer: Extract more BO data by Imagination importer" am: 8618fd29cc
Change-Id: I570c077aca07ad7ea65be0815ce704c1d4675fd4
-rw-r--r-- | platform/platformimagination.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/platform/platformimagination.cpp b/platform/platformimagination.cpp index 63d8130..ea34ecc 100644 --- a/platform/platformimagination.cpp +++ b/platform/platformimagination.cpp @@ -37,15 +37,8 @@ int ImaginationImporter::ConvertBoInfo(buffer_handle_t handle, bo->width = hnd->iWidth; bo->height = hnd->iHeight; bo->usage = hnd->usage; - bo->hal_format = hnd->iFormat; - bo->pixel_stride = hnd->aiStride[0]; - - int sub = std::min(hnd->iNumSubAllocs, HWC_DRM_BO_MAX_PLANES); - for (int i = 0; i < sub; i++) { - bo->prime_fds[i] = hnd->fd[i]; - bo->offsets[i] = hnd->aulPlaneOffset[i]; - bo->pitches[i] = ALIGN(hnd->iWidth, HW_ALIGN) * hnd->uiBpp >> 3; - } + bo->prime_fds[0] = hnd->fd[0]; + bo->pitches[0] = ALIGN(hnd->iWidth, HW_ALIGN) * hnd->uiBpp >> 3; switch (hnd->iFormat) { #ifdef HAL_PIXEL_FORMAT_BGRX_8888 |