Lines Matching refs:format
60 static int drm_format_to_bpp(uint32_t format) { in drm_format_to_bpp() argument
61 switch (format) { in drm_format_to_bpp()
74 printf("Unknown format %d\n", format); in drm_format_to_bpp()
80 uint32_t format; in Create() local
87 format = DRM_FORMAT_RGBA8888; in Create()
89 format = DRM_FORMAT_ARGB8888; in Create()
91 format = DRM_FORMAT_XBGR8888; in Create()
93 format = DRM_FORMAT_BGRA8888; in Create()
95 format = DRM_FORMAT_RGB565; in Create()
101 create_dumb.bpp = drm_format_to_bpp(format); in Create()
118 if (drmModeAddFB2(drm_fd, width, height, format, handles, pitches, offsets, &surface->fb_id, 0) != in Create()