diff options
author | Xin Li <delphij@google.com> | 2023-10-17 10:08:41 -0700 |
---|---|---|
committer | Xin Li <delphij@google.com> | 2023-10-17 10:08:41 -0700 |
commit | caa8cb4c6990ce99296e2b2beb93dd7535c56ed5 (patch) | |
tree | 45b660ab7ca4a177b2f220b8b08cc23da3c92a7f /gralloc4/src/mali_gralloc_buffer.h | |
parent | aa84f26d71eef6efc7dd1bc5ce1145d33b5a9ca7 (diff) | |
parent | 550f1c5de77366300b57cabe884bb2c745d60cc9 (diff) | |
download | gchips-tmp_amf_315507370.tar.gz |
Merge 10952656tmp_amf_315507370
Merged-In: I23488ea79c90981f48d69aead0bcdfa13f85af48
Change-Id: I343a1e01dad2db510a57345b6f432af1a519bdcb
Diffstat (limited to 'gralloc4/src/mali_gralloc_buffer.h')
-rw-r--r-- | gralloc4/src/mali_gralloc_buffer.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gralloc4/src/mali_gralloc_buffer.h b/gralloc4/src/mali_gralloc_buffer.h index 9cc7920..09461d7 100644 --- a/gralloc4/src/mali_gralloc_buffer.h +++ b/gralloc4/src/mali_gralloc_buffer.h @@ -236,10 +236,8 @@ struct private_handle_t // locally mapped shared attribute area int ion_handles[MAX_BUFFER_FDS]; - uint64_t bases[MAX_BUFFER_FDS]; uint64_t alloc_sizes[MAX_BUFFER_FDS]; - void *attr_base __attribute__((aligned (8))) DEFAULT_INITIALIZER(nullptr); off_t offset __attribute__((aligned (8))) DEFAULT_INITIALIZER(0); /* Size of the attribute shared region in bytes. */ @@ -286,11 +284,12 @@ struct private_handle_t if (_fds) memcpy(fds, _fds, sizeof(fds)); + else + memset(fds, -1, sizeof(fds)); if (_alloc_sizes) memcpy(alloc_sizes, _alloc_sizes, sizeof(alloc_sizes)); - memset(bases, 0, sizeof(bases)); memset(ion_handles, 0, sizeof(ion_handles)); } @@ -404,7 +403,6 @@ struct private_handle_t "alloc_format(0x%" PRIx64 ") " "alloc_sizes(%" PRIu64 " %" PRIu64 " %" PRIu64 ") " "layer_count(%d) " - "bases(%p %p %p %p) " "\n", str, numInts, numFds, fd_count, @@ -419,8 +417,7 @@ struct private_handle_t plane_info[2].size, plane_info[2].byte_stride, plane_info[2].alloc_width, plane_info[2].alloc_height, alloc_format, alloc_sizes[0], alloc_sizes[1], alloc_sizes[2], - layer_count, - (void*)bases[0], (void*)bases[1], (void*)bases[2], attr_base + layer_count ); } |