panfrost/winsys: Clang-format
authorAlyssa Rosenzweig <alyssa@collabora.com>
Sat, 8 Apr 2023 00:13:43 +0000 (20:13 -0400)
committerMarge Bot <emma+marge@anholt.net>
Mon, 10 Apr 2023 21:56:04 +0000 (21:56 +0000)
This was missed in the original clang-format commit because I touch this code so
infrequently, lol.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22372>

src/gallium/winsys/panfrost/drm/panfrost_drm_public.h
src/gallium/winsys/panfrost/drm/panfrost_drm_winsys.c

index fe28f64..5a000cf 100644 (file)
@@ -35,11 +35,12 @@ struct renderonly_scanout;
 struct winsys_handle;
 
 struct pipe_screen *panfrost_drm_screen_create(int drmFD);
-struct pipe_screen *panfrost_drm_screen_create_renderonly(int fd,
-                                                          struct renderonly *ro,
-                                                          const struct pipe_screen_config *config);
-struct renderonly_scanout *panfrost_create_kms_dumb_buffer_for_resource(struct pipe_resource *rsc,
-                                                                        struct renderonly *ro,
-                                                                        struct winsys_handle *out_handle);
+struct pipe_screen *
+panfrost_drm_screen_create_renderonly(int fd, struct renderonly *ro,
+                                      const struct pipe_screen_config *config);
+struct renderonly_scanout *
+panfrost_create_kms_dumb_buffer_for_resource(struct pipe_resource *rsc,
+                                             struct renderonly *ro,
+                                             struct winsys_handle *out_handle);
 
 #endif /* __PAN_DRM_PUBLIC_H__ */
index c2e348f..b5ec50d 100644 (file)
@@ -23,8 +23,8 @@
  */
 
 #include <errno.h>
-#include <unistd.h>
 #include <fcntl.h>
+#include <unistd.h>
 
 #include "util/format/u_format.h"
 #include "util/os_file.h"
@@ -33,9 +33,9 @@
 #include "util/u_screen.h"
 
 #include "drm-uapi/drm.h"
+#include "panfrost/pan_public.h"
 #include "renderonly/renderonly.h"
 #include "panfrost_drm_public.h"
-#include "panfrost/pan_public.h"
 #include "xf86drm.h"
 
 struct renderonly_scanout *
@@ -52,7 +52,7 @@ panfrost_create_kms_dumb_buffer_for_resource(struct pipe_resource *rsc,
    for (unsigned i = 1; i <= blk_sz; i++) {
       if (!((64 * i) % blk_sz)) {
          align_w = (64 * i) / blk_sz;
-        break;
+         break;
       }
    }
 
@@ -73,7 +73,7 @@ panfrost_create_kms_dumb_buffer_for_resource(struct pipe_resource *rsc,
    int err = drmIoctl(ro->kms_fd, DRM_IOCTL_MODE_CREATE_DUMB, &create_dumb);
    if (err < 0) {
       fprintf(stderr, "DRM_IOCTL_MODE_CREATE_DUMB failed: %s\n",
-            strerror(errno));
+              strerror(errno));
       goto free_scanout;
    }
 
@@ -108,7 +108,6 @@ free_scanout:
    FREE(scanout);
 
    return NULL;
-
 }
 
 struct pipe_screen *
@@ -119,10 +118,9 @@ panfrost_drm_screen_create(int fd)
 }
 
 struct pipe_screen *
-panfrost_drm_screen_create_renderonly(int fd,
-                                      struct renderonly *ro,
+panfrost_drm_screen_create_renderonly(int fd, struct renderonly *ro,
                                       const struct pipe_screen_config *config)
 {
-   return u_pipe_screen_lookup_or_create(os_dupfd_cloexec(fd), config,
-                                         ro, panfrost_create_screen);
+   return u_pipe_screen_lookup_or_create(os_dupfd_cloexec(fd), config, ro,
+                                         panfrost_create_screen);
 }