panfrost: Move pan_screen() to pan_screen.h
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 7 Jun 2019 16:49:36 +0000 (09:49 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 10 Jun 2019 13:45:05 +0000 (06:45 -0700)
Trivial.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/pan_context.h
src/gallium/drivers/panfrost/pan_screen.h

index c65ffb8deb98de487dd6de40d1fa234a80763ea9..6f3bca939e5130434442b30aa9f9ad5aff31e8bc 100644 (file)
@@ -313,12 +313,6 @@ pan_context(struct pipe_context *pcontext)
         return (struct panfrost_context *) pcontext;
 }
 
-static inline struct panfrost_screen *
-pan_screen(struct pipe_screen *p)
-{
-   return (struct panfrost_screen *)p;
-}
-
 struct pipe_context *
 panfrost_create_context(struct pipe_screen *screen, void *priv, unsigned flags);
 
index 4e5efa91f22f184979f9dd1294f11c1a6210431c..d2b786387e7584bef845aceeb48ea2c3b59bca50 100644 (file)
@@ -99,4 +99,10 @@ struct panfrost_screen {
         struct panfrost_job *last_job;
 };
 
+static inline struct panfrost_screen *
+pan_screen(struct pipe_screen *p)
+{
+   return (struct panfrost_screen *)p;
+}
+
 #endif /* PAN_SCREEN_H */