diff options
author | Alistair Delva <adelva@google.com> | 2020-02-04 10:29:41 -0800 |
---|---|---|
committer | Alistair Delva <adelva@google.com> | 2020-02-04 10:31:40 -0800 |
commit | 8618fd29cc0e8f3d4aac80b46b8a7252e9b6bfc7 (patch) | |
tree | 35caa7868e6e17b9f02fb1f88887ec86cf32dc49 | |
parent | a51ae292ee205dbbc76866fce29315f3f43400f3 (diff) | |
download | drm_hwcomposer-8618fd29cc0e8f3d4aac80b46b8a7252e9b6bfc7.tar.gz |
Revert "drm_hwcomposer: Extract more BO data by Imagination importer"android-r-preview-1
This reverts commit b2f2baeb9db0d0f4cbc0cac3184058d3fce85ea6.
Change-Id: I144276a80bec6ae8d69c5f6aa9cffc584f0d2c99
-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 |