diff options
author | Ankit Goyal <layog@google.com> | 2023-01-25 15:42:21 -0800 |
---|---|---|
committer | Ankit Goyal <layog@google.com> | 2023-02-14 10:42:02 -0800 |
commit | 2818a8cfe88388af03c45806e1fc8074335a1aba (patch) | |
tree | 388f8f9cfaf9ed078e917f75b55dd617a48c8461 | |
parent | f9cd2d476921a03f8c131dfcfd79382a638747bd (diff) |
Revert "Revert "Remove hack of offset calculation from exynos formats""
This reverts commit cae627b1fd45676ca3a7a3e8a425bda968bdbe47.
Change-Id: Ibb78612cf53179cfe9b889228d4a4510e64178d7
-rw-r--r-- | gralloc4/src/hidl_common/MapperMetadata.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/gralloc4/src/hidl_common/MapperMetadata.cpp b/gralloc4/src/hidl_common/MapperMetadata.cpp index cb0a820..7cd4c92 100644 --- a/gralloc4/src/hidl_common/MapperMetadata.cpp +++ b/gralloc4/src/hidl_common/MapperMetadata.cpp @@ -304,12 +304,6 @@ static android::status_t get_plane_layouts(const private_handle_t *handle, std:: int64_t sample_increment_in_bits = format_info.bpp[plane_index]; int64_t offset = handle->plane_info[plane_index].offset; - // TODO(b/182885532): Allocate the complete buffer contiguously - if (handle->plane_info[plane_index].fd_idx == plane_index) - { - offset = (int64_t)handle->bases[plane_index] - handle->bases[0]; - } - PlaneLayout layout = {.offsetInBytes = offset, .sampleIncrementInBits = sample_increment_in_bits, .strideInBytes = handle->plane_info[plane_index].byte_stride, |