Revert "drm_hwcomposer: Extract more BO data by Imagination importer" am: 8618fd29cc
Change-Id: I570c077aca07ad7ea65be0815ce704c1d4675fd4
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 @@
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