summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWen Chang Liu <wenchangliu@google.com>2023-03-03 04:04:12 +0000
committerWen Chang Liu <wenchangliu@google.com>2023-03-09 10:50:23 +0000
commit1b98381749cb99ab85d00927164f457382eb8368 (patch)
tree8bad16dfd65b15e2c4fa0cfc8249a0aa23393f09
parentb28489c0537511343ac174c5449b0494190bb944 (diff)
Revert "Revert "Revert "Revert "Remove hack of offset calculatio..."
Revert submission 21688145-revert_enable_mfc_single_fd Reason for revert: integrating with camera single-fd format Reverted changes: /q/submissionid:21688145-revert_enable_mfc_single_fd Bug: 237824580 Test: No display artifacts after camera shot Change-Id: I3ccc9268d67fb5c5b66ebd02807690b88a0bcb42
-rw-r--r--gralloc4/src/hidl_common/MapperMetadata.cpp6
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,