OSDN Git Service

drm_hwcomposer: enumerate additional formats for tegra downscale limits
authorAdrian Salido <salidoa@google.com>
Tue, 29 Aug 2017 20:28:18 +0000 (13:28 -0700)
committerAdrian Salido <salidoa@google.com>
Tue, 29 Aug 2017 21:26:21 +0000 (14:26 -0700)
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>
platformnv.cpp

index e680981..af11c68 100644 (file)
@@ -298,6 +298,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
@@ -307,6 +308,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;