diff options
Diffstat (limited to 'sdm/libs/hwc2/hwc_buffer_allocator.cpp')
-rw-r--r-- | sdm/libs/hwc2/hwc_buffer_allocator.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sdm/libs/hwc2/hwc_buffer_allocator.cpp b/sdm/libs/hwc2/hwc_buffer_allocator.cpp index 62b64be6..1c264aa9 100644 --- a/sdm/libs/hwc2/hwc_buffer_allocator.cpp +++ b/sdm/libs/hwc2/hwc_buffer_allocator.cpp @@ -165,6 +165,8 @@ DisplayError HWCBufferAllocator::AllocateBuffer(BufferInfo *buffer_info) { hnd = (private_handle_t *)buf; // NOLINT alloc_buffer_info->fd = hnd->fd; alloc_buffer_info->stride = UINT32(hnd->width); + alloc_buffer_info->aligned_width = UINT32(hnd->width); + alloc_buffer_info->aligned_height = UINT32(hnd->height); alloc_buffer_info->size = hnd->size; buffer_info->private_data = reinterpret_cast<void *>(hnd); |