Commit 5d7bef2e authored by Eric Anholt's avatar Eric Anholt

glamor: Drop dead glamor_pict_format_is_compatible().

This hasn't been used since 2f80c779
Signed-off-by: Eric Anholt's avatarEric Anholt <>
Reviewed-by: default avatarDave Airlie <>
Reviewed-by: Kenneth Graunke's avatarKenneth Graunke <>
parent 4494a450
......@@ -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:
return (picture->format == PICT_a8);
return FALSE;
inline static Bool
glamor_is_large_pixmap(PixmapPtr pixmap)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment