summaryrefslogtreecommitdiff
path: root/sdm/libs/hwc2/hwc_buffer_allocator.cpp
diff options
context:
space:
mode:
authorRohit Kulkarni <rkulkarn@codeaurora.org>2017-12-14 22:17:49 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2018-02-27 14:13:22 -0800
commit2d7151c42c595fe45c6e7e5e0306ef6391d26ad5 (patch)
tree1af593570c11bdf601e4e218a49454803ac4ae67 /sdm/libs/hwc2/hwc_buffer_allocator.cpp
parentea702f6cea695a4e48c7e1ff6a93b68a0b9d0152 (diff)
sdm: Set fb id for inline rotator session
- Add support to set backup buffer fb id for inline rotator session. - Define tiled and uncompressed layer buffer formats to handle setting of inline rotator buffer fb id. Change-Id: I6be48c5abd418ec18816780e1af9e9783fa22233 CRs-Fixed: 2195047
Diffstat (limited to 'sdm/libs/hwc2/hwc_buffer_allocator.cpp')
-rw-r--r--sdm/libs/hwc2/hwc_buffer_allocator.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/sdm/libs/hwc2/hwc_buffer_allocator.cpp b/sdm/libs/hwc2/hwc_buffer_allocator.cpp
index e9839b95..84fbd802 100644
--- a/sdm/libs/hwc2/hwc_buffer_allocator.cpp
+++ b/sdm/libs/hwc2/hwc_buffer_allocator.cpp
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2015-2017, The Linux Foundation. All rights reserved.
+* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -293,6 +293,7 @@ int HWCBufferAllocator::SetBufferInfo(LayerBufferFormat format, int *target, uin
*target = HAL_PIXEL_FORMAT_YCrCb_420_SP_VENUS;
break;
case kFormatYCbCr420SPVenusUbwc:
+ case kFormatYCbCr420SPVenusTile:
*target = HAL_PIXEL_FORMAT_YCbCr_420_SP_VENUS_UBWC;
*flags |= GRALLOC_USAGE_PRIVATE_ALLOC_UBWC;
break;
@@ -330,10 +331,12 @@ int HWCBufferAllocator::SetBufferInfo(LayerBufferFormat format, int *target, uin
*target = HAL_PIXEL_FORMAT_YCbCr_420_P010;
break;
case kFormatYCbCr420TP10Ubwc:
+ case kFormatYCbCr420TP10Tile:
*target = HAL_PIXEL_FORMAT_YCbCr_420_TP10_UBWC;
*flags |= GRALLOC_USAGE_PRIVATE_ALLOC_UBWC;
break;
case kFormatYCbCr420P010Ubwc:
+ case kFormatYCbCr420P010Tile:
*target = HAL_PIXEL_FORMAT_YCbCr_420_P010_UBWC;
*flags |= GRALLOC_USAGE_PRIVATE_ALLOC_UBWC;
break;