util: add cairo drawing for 30bpp formats when available
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>main
parent
b59d14e7fc
commit
def955c09e
|
@ -788,6 +788,14 @@ static void make_pwetty(void *data, unsigned int width, unsigned int height,
|
|||
case DRM_FORMAT_BGR565:
|
||||
cairo_format = CAIRO_FORMAT_RGB16_565;
|
||||
break;
|
||||
#if CAIRO_VERSION_MAJOR > 1 || (CAIRO_VERSION_MAJOR == 1 && CAIRO_VERSION_MINOR >= 12)
|
||||
case DRM_FORMAT_ARGB2101010:
|
||||
case DRM_FORMAT_XRGB2101010:
|
||||
case DRM_FORMAT_ABGR2101010:
|
||||
case DRM_FORMAT_XBGR2101010:
|
||||
cairo_format = CAIRO_FORMAT_RGB30;
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue