summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gralloc4/src/hidl_common/MapperMetadata.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/gralloc4/src/hidl_common/MapperMetadata.cpp b/gralloc4/src/hidl_common/MapperMetadata.cpp
index fb79930..1123270 100644
--- a/gralloc4/src/hidl_common/MapperMetadata.cpp
+++ b/gralloc4/src/hidl_common/MapperMetadata.cpp
@@ -305,15 +305,11 @@ 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;
- static bool warn_multifd = true;
- if (warn_multifd) {
- uint8_t fd_count = get_exynos_fd_count(base_format);
- if (fd_count != 1) {
- warn_multifd = false;
- MALI_GRALLOC_LOGW("Offsets in plane layouts of multi-fd format (%s %" PRIu64
- ") are not reliable. This can lead to image corruption.",
- format_name(base_format), handle->alloc_format);
- }
+ uint8_t fd_count = get_exynos_fd_count(base_format);
+ if (fd_count != 1) {
+ MALI_GRALLOC_LOGW("Offsets in plane layouts of multi-fd format (%s %" PRIu64
+ ") are not reliable. This can lead to image corruption.",
+ format_name(base_format), handle->alloc_format);
}
PlaneLayout layout = {.offsetInBytes = offset,