From: Alyssa Rosenzweig Date: Fri, 7 Jun 2019 16:49:36 +0000 (-0700) Subject: panfrost: Move pan_screen() to pan_screen.h X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b4763984ac319635d1411c6cfdaa3cb2bfa71d4a;p=mesa.git panfrost: Move pan_screen() to pan_screen.h Trivial. Signed-off-by: Alyssa Rosenzweig --- diff --git a/src/gallium/drivers/panfrost/pan_context.h b/src/gallium/drivers/panfrost/pan_context.h index c65ffb8deb9..6f3bca939e5 100644 --- a/src/gallium/drivers/panfrost/pan_context.h +++ b/src/gallium/drivers/panfrost/pan_context.h @@ -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); diff --git a/src/gallium/drivers/panfrost/pan_screen.h b/src/gallium/drivers/panfrost/pan_screen.h index 4e5efa91f22..d2b786387e7 100644 --- a/src/gallium/drivers/panfrost/pan_screen.h +++ b/src/gallium/drivers/panfrost/pan_screen.h @@ -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 */