diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2017-03-30 15:26:06 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-03-30 15:26:06 -0700 |
commit | ffb4b396ed2ed2a51a478daa8b1635d0a0ccbfe0 (patch) | |
tree | e776833dacf892fab43dc79f038e8fd3032e5da2 /sdm/libs/hwc2/hwc_layers.cpp | |
parent | e582034f529ecb4216b82c5691318c980dcf37bd (diff) | |
parent | 11b5d27285de719252b9b6b5afbc20d013f0621c (diff) | |
download | display-ffb4b396ed2ed2a51a478daa8b1635d0a0ccbfe0.tar.gz |
Merge "sdm/gralloc: Use correct DRM format enums for RGB formats"
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 91fb04bc..302e3394 100644 --- a/sdm/libs/hwc2/hwc_layers.cpp +++ b/sdm/libs/hwc2/hwc_layers.cpp @@ -365,6 +365,9 @@ LayerBufferFormat HWCLayer::GetSDMFormat(const int32_t &source, const int flags) case HAL_PIXEL_FORMAT_YCbCr_420_TP10_UBWC: format = kFormatYCbCr420TP10Ubwc; break; + case HAL_PIXEL_FORMAT_YCbCr_420_P010_UBWC: + format = kFormatYCbCr420P010Ubwc; + break; default: DLOGE("Unsupported format type for UBWC %d", source); return kFormatInvalid; @@ -455,6 +458,9 @@ LayerBufferFormat HWCLayer::GetSDMFormat(const int32_t &source, const int flags) case HAL_PIXEL_FORMAT_YCbCr_420_TP10_UBWC: format = kFormatYCbCr420TP10Ubwc; break; + case HAL_PIXEL_FORMAT_YCbCr_420_P010_UBWC: + format = kFormatYCbCr420P010Ubwc; + break; default: DLOGW("Unsupported format type = %d", source); return kFormatInvalid; |