OSDN Git Service

minigbm: Reformat with clang-format.
authorJunichi Uekawa <uekawa@google.com>
Wed, 29 Jan 2020 06:45:16 +0000 (15:45 +0900)
committerCommit Bot <commit-bot@chromium.org>
Mon, 3 Feb 2020 06:12:15 +0000 (06:12 +0000)
Touching the files seem to cause reformatting.

BUG=None
TEST=None

Change-Id: I31d2fbb01f4ee803da2b740dea036971e861bf60
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/2027288
Tested-by: Junichi Uekawa <uekawa@chromium.org>
Reviewed-by: Lepton Wu <lepton@chromium.org>
Commit-Queue: Junichi Uekawa <uekawa@chromium.org>

amdgpu.c
cros_gralloc/gralloc0/tests/gralloctest.c
drv.c
i915.c

index 2654f9a..f25af6a 100644 (file)
--- a/amdgpu.c
+++ b/amdgpu.c
@@ -39,8 +39,8 @@ const static uint32_t render_target_formats[] = { DRM_FORMAT_ABGR8888, DRM_FORMA
                                                  DRM_FORMAT_RGB565, DRM_FORMAT_XBGR8888,
                                                  DRM_FORMAT_XRGB8888 };
 
-const static uint32_t texture_source_formats[] = { DRM_FORMAT_GR88,          DRM_FORMAT_R8,
-                                                  DRM_FORMAT_NV21,           DRM_FORMAT_NV12,
+const static uint32_t texture_source_formats[] = { DRM_FORMAT_GR88,       DRM_FORMAT_R8,
+                                                  DRM_FORMAT_NV21,        DRM_FORMAT_NV12,
                                                   DRM_FORMAT_YVU420_ANDROID, DRM_FORMAT_YVU420 };
 
 static int amdgpu_init(struct driver *drv)
index 8dfcd0b..9160e62 100644 (file)
@@ -95,7 +95,7 @@ static struct combinations combos[] = {
 // clang-format on
 
 struct grallocinfo {
-       buffer_handle_t handle;     /* handle to the buffer */
+       buffer_handle_t handle;     /* handle to the buffer */
        int w;                      /* width  of buffer */
        int h;                      /* height of buffer */
        int format;                 /* format of the buffer */
diff --git a/drv.c b/drv.c
index 7f64188..dcca838 100644 (file)
--- a/drv.c
+++ b/drv.c
@@ -111,7 +111,7 @@ static const struct backend *drv_get_backend(int fd)
 #ifdef DRV_VC4
                &backend_vc4,
 #endif
-               &backend_vgem,     &backend_virtio_gpu,
+               &backend_vgem,     &backend_virtio_gpu,
        };
 
        for (i = 0; i < ARRAY_SIZE(backend_list); i++)
diff --git a/i915.c b/i915.c
index 925eba3..6538aef 100644 (file)
--- a/i915.c
+++ b/i915.c
@@ -24,8 +24,8 @@
 #define I915_CACHELINE_MASK (I915_CACHELINE_SIZE - 1)
 
 static const uint32_t render_target_formats[] = { DRM_FORMAT_ABGR16161616F, DRM_FORMAT_ABGR2101010,
-                                                 DRM_FORMAT_ABGR8888,      DRM_FORMAT_ARGB2101010,
-                                                 DRM_FORMAT_ARGB8888,      DRM_FORMAT_RGB565,
+                                                 DRM_FORMAT_ABGR8888,      DRM_FORMAT_ARGB2101010,
+                                                 DRM_FORMAT_ARGB8888,      DRM_FORMAT_RGB565,
                                                  DRM_FORMAT_XBGR2101010,   DRM_FORMAT_XBGR8888,
                                                  DRM_FORMAT_XRGB2101010,   DRM_FORMAT_XRGB8888 };