diff options
author | Adrian Salido <salidoa@google.com> | 2017-08-29 13:28:18 -0700 |
---|---|---|
committer | Adrian Salido <salidoa@google.com> | 2017-09-01 13:41:59 -0700 |
commit | d6ad94289ec909359d51eb1b605680cb5f223111 (patch) | |
tree | e0ed3a24670e10ba0681ad56d435095809d6c0cf | |
parent | a79125844f52e3d9c01f896b3eacc229b9978bb8 (diff) | |
download | drm_hwcomposer-d6ad94289ec909359d51eb1b605680cb5f223111.tar.gz |
drm_hwcomposer: enumerate additional formats for tegra downscale limits
There are additional formats that can be provided and are not handled.
Bug: 36731060
Change-Id: I9f1356762df71e38402ad01f96a650adf2a3cbdc
Signed-off-by: Adrian Salido <salidoa@google.com>
-rw-r--r-- | platformnv.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/platformnv.cpp b/platformnv.cpp index ca65e72..e05d1bb 100644 --- a/platformnv.cpp +++ b/platformnv.cpp @@ -287,6 +287,7 @@ bool PlanStageNvLimits::CheckLayer(size_t zorder, DrmHwcLayer *layer) { case DRM_FORMAT_ARGB8888: case DRM_FORMAT_ABGR8888: case DRM_FORMAT_XBGR8888: + case DRM_FORMAT_XRGB8888: // tegra driver assumes any layer with alpha channel has premult // blending, avoid handling it this is not the case. This is not an // issue for bottom-most layer since there's nothing to blend with @@ -296,6 +297,13 @@ bool PlanStageNvLimits::CheckLayer(size_t zorder, DrmHwcLayer *layer) { v_limit = 2; break; case DRM_FORMAT_YVU420: + case DRM_FORMAT_YUV420: + case DRM_FORMAT_YUV422: + case DRM_FORMAT_UYVY: + case DRM_FORMAT_YUYV: + case DRM_FORMAT_NV12: + case DRM_FORMAT_NV21: + case DRM_FORMAT_RGB565: case DRM_FORMAT_BGR565: v_limit = 4; break; |