diff options
author | Saurabh Shah <saurshah@codeaurora.org> | 2017-10-24 14:09:35 -0700 |
---|---|---|
committer | Saurabh Shah <saurshah@codeaurora.org> | 2017-10-25 12:09:46 -0700 |
commit | 3cc87edaf1c40a2071a0bae129ba1c557d2da6fc (patch) | |
tree | 4543966b45dcd1076de88b25582729e6d25ef5f9 /sdm/libs/hwc2/hwc_layers.cpp | |
parent | e50372c7cee04a4130af250453b76b9337359054 (diff) |
hwc/gralloc: Add missing formats
Add missing formats FP16, 1010102, P010 variants.
Change-Id: I2710a0aff7f87381afb8ec6ee7cb74ecf008f0ae
CRs-fixed: 2129663 2128978 2127406
Diffstat (limited to 'sdm/libs/hwc2/hwc_layers.cpp')
-rw-r--r-- | sdm/libs/hwc2/hwc_layers.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sdm/libs/hwc2/hwc_layers.cpp b/sdm/libs/hwc2/hwc_layers.cpp index 6a33b8f3..2466413c 100644 --- a/sdm/libs/hwc2/hwc_layers.cpp +++ b/sdm/libs/hwc2/hwc_layers.cpp @@ -548,6 +548,12 @@ LayerBufferFormat HWCLayer::GetSDMFormat(const int32_t &source, const int flags) case HAL_PIXEL_FORMAT_NV12_ENCODEABLE: format = kFormatYCbCr420SPVenusUbwc; break; + case HAL_PIXEL_FORMAT_RGBA_1010102: + format = kFormatRGBA1010102Ubwc; + break; + case HAL_PIXEL_FORMAT_RGBX_1010102: + format = kFormatRGBX1010102Ubwc; + break; case HAL_PIXEL_FORMAT_YCbCr_420_TP10_UBWC: format = kFormatYCbCr420TP10Ubwc; break; |