mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-20 20:40:38 +01:00
glamor: Drop dead glamor_pict_format_is_compatible().
This hasn't been used since2f80c7791b(GLAMOR_SEPARATE_TEXTURE removal). Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> (cherry picked from commit5d7bef2eed)
This commit is contained in:
parent
f031c5edbf
commit
ef993dbbed
1 changed files with 0 additions and 20 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue