Signed-off-by: Eric Anholt <e...@anholt.net> --- glamor/glamor_fbo.c | 15 +++++++++++++++ glamor/glamor_utils.h | 15 --------------- 2 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/glamor/glamor_fbo.c b/glamor/glamor_fbo.c index 1eee304..262033f 100644 --- a/glamor/glamor_fbo.c +++ b/glamor/glamor_fbo.c @@ -70,6 +70,21 @@ cache_hbucket(int size) return order; } +static int +cache_format(GLenum format) +{ + switch (format) { + case GL_ALPHA: + return 2; + case GL_RGB: + return 1; + case GL_RGBA: + return 0; + default: + return -1; + } +} + static glamor_pixmap_fbo * glamor_pixmap_fbo_cache_get(glamor_screen_private *glamor_priv, int w, int h, GLenum format) diff --git a/glamor/glamor_utils.h b/glamor/glamor_utils.h index e22bbc1..8a96c61 100644 --- a/glamor/glamor_utils.h +++ b/glamor/glamor_utils.h @@ -824,21 +824,6 @@ format_for_pixmap(PixmapPtr pixmap) #define SWAP_UPLOADING 2 #define SWAP_NONE_UPLOADING 3 -inline static int -cache_format(GLenum format) -{ - switch (format) { - case GL_ALPHA: - return 2; - case GL_RGB: - return 1; - case GL_RGBA: - return 0; - default: - return -1; - } -} - /* borrowed from uxa */ static inline Bool glamor_get_rgba_from_pixel(CARD32 pixel, -- 2.1.4 _______________________________________________ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel