OSDN Git Service

minigbm: run presubmit.sh
authorGurchetan Singh <gurchetansingh@chromium.org>
Thu, 20 Aug 2020 21:25:43 +0000 (14:25 -0700)
committerCommit Bot <commit-bot@chromium.org>
Tue, 25 Aug 2020 05:23:28 +0000 (05:23 +0000)
It's good to do this every once and a while.

Change-Id: Ief71a50e07a51e2ac1b66daf1ed0c8b9129d9c1f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/2368212
Reviewed-by: Jason Macnak <natsu@google.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Commit-Queue: Gurchetan Singh <gurchetansingh@chromium.org>

amdgpu.c
meson.c
synaptics.c

index ed73ea6..2bbba1b 100644 (file)
--- a/amdgpu.c
+++ b/amdgpu.c
@@ -430,12 +430,12 @@ static int amdgpu_create_bo_linear(struct bo *bo, uint32_t width, uint32_t heigh
        stride = ALIGN(stride, 256);
 
        /*
-       * Currently, allocator used by chrome aligns the height for Encoder/
-       * Decoder buffers while allocator used by android(gralloc/minigbm)
-       * doesn't provide any aligment.
-       *
-       * See b/153130069
-       */
+        * Currently, allocator used by chrome aligns the height for Encoder/
+        * Decoder buffers while allocator used by android(gralloc/minigbm)
+        * doesn't provide any aligment.
+        *
+        * See b/153130069
+        */
        if (use_flags & (BO_USE_HW_VIDEO_DECODER | BO_USE_HW_VIDEO_ENCODER))
                height = ALIGN(height, CHROME_HEIGHT_ALIGN);
 
diff --git a/meson.c b/meson.c
index 27469e7..bfbf4e6 100644 (file)
--- a/meson.c
+++ b/meson.c
 
 static const uint32_t scanout_render_formats[] = { DRM_FORMAT_ARGB8888, DRM_FORMAT_XRGB8888,
                                                   DRM_FORMAT_ABGR8888, DRM_FORMAT_XBGR8888,
-                                                  DRM_FORMAT_BGR888, DRM_FORMAT_BGR565};
+                                                  DRM_FORMAT_BGR888,   DRM_FORMAT_BGR565 };
 
 static const uint32_t texture_only_formats[] = { DRM_FORMAT_NV12, DRM_FORMAT_NV21,
-                                                DRM_FORMAT_YVU420, DRM_FORMAT_YVU420_ANDROID};
+                                                DRM_FORMAT_YVU420, DRM_FORMAT_YVU420_ANDROID };
 
 static int meson_init(struct driver *drv)
 {
@@ -27,7 +27,7 @@ static int meson_init(struct driver *drv)
 
        drv_modify_combination(drv, DRM_FORMAT_NV12, &LINEAR_METADATA,
                               BO_USE_HW_VIDEO_ENCODER | BO_USE_HW_VIDEO_DECODER |
-                              BO_USE_CAMERA_READ | BO_USE_CAMERA_WRITE);
+                                  BO_USE_CAMERA_READ | BO_USE_CAMERA_WRITE);
        drv_modify_combination(drv, DRM_FORMAT_NV21, &LINEAR_METADATA, BO_USE_HW_VIDEO_ENCODER);
 
        return drv_modify_linear_combinations(drv);
index 28cb518..62f3a6b 100644 (file)
 #include "util.h"
 
 static const uint32_t render_target_formats[] = { DRM_FORMAT_ARGB8888, DRM_FORMAT_ABGR8888,
-                                                  DRM_FORMAT_XRGB8888 };
+                                                 DRM_FORMAT_XRGB8888 };
 
 static const uint32_t texture_source_formats[] = { DRM_FORMAT_R8, DRM_FORMAT_NV12,
-                                                   DRM_FORMAT_YVU420, DRM_FORMAT_YVU420_ANDROID };
+                                                  DRM_FORMAT_YVU420, DRM_FORMAT_YVU420_ANDROID };
 
 static int synaptics_init(struct driver *drv)
 {