summaryrefslogtreecommitdiff
path: root/sdm/libs/hwc2/hwc_buffer_allocator.cpp
diff options
context:
space:
mode:
authorRamakant Singh <ramaka@codeaurora.org>2017-09-13 10:40:22 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2017-10-05 01:18:36 -0700
commitfae5989ff0f75728503b3447c60eeff37b47c9d0 (patch)
tree133b4b68d4819ac72a4119f20d40274a41aeccd1 /sdm/libs/hwc2/hwc_buffer_allocator.cpp
parent40853a8793a353eb9b006e9bf812d238f4affc0a (diff)
sdm: Add support for compliance test mode for DP
1. Add functionality in qdutils to get the DP test config from the sysfs node. 2. Add support to generate ColorRamp, ColorSquare and Black and White vertical line test pattern for 18/24/30 bpp DP display 3. Create layer stack with test layer and ignore all layers from the SF framework. 4. Generate the pattern with 18/24/30 bpp based on pattern type and bpp read from sysfs node and send it to DP interface. 5. Add support to calculate CRC to validate the color pattern. CRs-Fixed: 1107663 Change-Id: I49469d94a96ada729d24d7cc03a7e79f2af6edc0
Diffstat (limited to 'sdm/libs/hwc2/hwc_buffer_allocator.cpp')
-rw-r--r--sdm/libs/hwc2/hwc_buffer_allocator.cpp2
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);