From 5d7bef2eedfd965359dd4eebb6ab806cdad5b83f Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 26 Jan 2016 13:39:18 -0800 Subject: [PATCH] glamor: Drop dead glamor_pict_format_is_compatible(). This hasn't been used since 2f80c7791bb0b11f261cb1e3e0d89163dcdd0342 (GLAMOR_SEPARATE_TEXTURE removal). Signed-off-by: Eric Anholt Reviewed-by: Dave Airlie Reviewed-by: Kenneth Graunke --- glamor/glamor_utils.h | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/glamor/glamor_utils.h b/glamor/glamor_utils.h index 3adc68712..5128a33d8 100644 --- a/glamor/glamor_utils.h +++ b/glamor/glamor_utils.h @@ -851,26 +851,6 @@ glamor_get_rgba_from_pixel(CARD32 pixel, return TRUE; } -inline static Bool -glamor_pict_format_is_compatible(PicturePtr picture) -{ - GLenum iformat; - PixmapPtr pixmap = glamor_get_drawable_pixmap(picture->pDrawable); - - iformat = gl_iformat_for_pixmap(pixmap); - switch (iformat) { - case GL_RGBA: - return (picture->format == PICT_a8r8g8b8 || - picture->format == PICT_x8r8g8b8); - case GL_ALPHA: - case GL_RED: - case GL_LUMINANCE: - return (picture->format == PICT_a8); - default: - return FALSE; - } -} - inline static Bool glamor_is_large_pixmap(PixmapPtr pixmap) {