diff options
author | Austin Hu <austin.hu@intel.com> | 2016-06-17 19:19:27 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-06-17 19:19:27 +0000 |
commit | 57be29c7893880992cf06d7dbe2f71b1512684ad (patch) | |
tree | 99b8875faad1711258e911f8daf0c98e019c61b8 | |
parent | e341891f5ea265030c65f6742841865b607c51d4 (diff) | |
parent | 8d2f0025fc6c15c3fe0e4ecab89c54c34a63eefb (diff) | |
download | hwcomposer-57be29c7893880992cf06d7dbe2f71b1512684ad.tar.gz |
Don\'t support for standard HAL_PIXEL_FORMAT_YV12 format.
am: 8d2f0025fc
Change-Id: I01142318db1b3ddeb32a55941e1bda8bedf53518
-rwxr-xr-x | moorefield_hdmi/common/planes/DisplayPlane.cpp | 5 | ||||
-rwxr-xr-x | moorefield_hdmi/ips/anniedale/PlaneCapabilities.cpp | 2 | ||||
-rwxr-xr-x | moorefield_hdmi/ips/tangier/TngDisplayQuery.cpp | 1 |
3 files changed, 4 insertions, 4 deletions
diff --git a/moorefield_hdmi/common/planes/DisplayPlane.cpp b/moorefield_hdmi/common/planes/DisplayPlane.cpp index 1251c29..a748b13 100755 --- a/moorefield_hdmi/common/planes/DisplayPlane.cpp +++ b/moorefield_hdmi/common/planes/DisplayPlane.cpp @@ -217,7 +217,10 @@ bool DisplayPlane::setDataBuffer(uint32_t handle) if (index < 0) { VLOGTRACE("unmapped buffer, mapping..."); mapper = mapBuffer(buffer); - if (!mapper) { + // Skip the unsupported format in case that a new gralloc buffer was + // created and added into the mapped list, triggered by SoftwareRender + // with color conversion from known formats to YV12. + if (!mapper || mapper->getFormat() == HAL_PIXEL_FORMAT_YV12) { ELOGTRACE("failed to map buffer %#x", handle); bm->unlockDataBuffer(buffer); return false; diff --git a/moorefield_hdmi/ips/anniedale/PlaneCapabilities.cpp b/moorefield_hdmi/ips/anniedale/PlaneCapabilities.cpp index 71def21..a7fbe48 100755 --- a/moorefield_hdmi/ips/anniedale/PlaneCapabilities.cpp +++ b/moorefield_hdmi/ips/anniedale/PlaneCapabilities.cpp @@ -58,7 +58,6 @@ bool PlaneCapabilities::isFormatSupported(int planeType, HwcLayer *hwcLayer) WLOGTRACE("180 degree rotation is not supported yet"); } return trans ? false : true; - case HAL_PIXEL_FORMAT_YV12: case HAL_PIXEL_FORMAT_INTEL_YV12: return trans ? false: true; case HAL_PIXEL_FORMAT_NV12: @@ -102,7 +101,6 @@ bool PlaneCapabilities::isSizeSupported(int planeType, HwcLayer *hwcLayer) } } else if (planeType == DisplayPlane::PLANE_OVERLAY) { switch (format) { - case HAL_PIXEL_FORMAT_YV12: case HAL_PIXEL_FORMAT_INTEL_YV12: case HAL_PIXEL_FORMAT_I420: case HAL_PIXEL_FORMAT_NV12: diff --git a/moorefield_hdmi/ips/tangier/TngDisplayQuery.cpp b/moorefield_hdmi/ips/tangier/TngDisplayQuery.cpp index 8ba7e6d..1a8adb2 100755 --- a/moorefield_hdmi/ips/tangier/TngDisplayQuery.cpp +++ b/moorefield_hdmi/ips/tangier/TngDisplayQuery.cpp @@ -32,7 +32,6 @@ bool DisplayQuery::isVideoFormat(uint32_t format) case OMX_INTEL_COLOR_FormatYUV420PackedSemiPlanar_Tiled: // Expand format to support the case: Software decoder + HW rendering // Only VP9 use this foramt now - case HAL_PIXEL_FORMAT_YV12: case HAL_PIXEL_FORMAT_INTEL_YV12: return true; default: |