Lines Matching defs:fb2
415 drmModeFB2 *fb2 = NULL;
508 fb2 = drmModeGetFB2(ctx->hwctx->fd, plane->fb_id);
509 if (!fb2 && errno == ENOSYS) {
512 } else if (!fb2) {
523 fb2->fb_id, fb2->width, fb2->height,
524 fb2->pixel_format, fb2->modifier, fb2->flags);
526 ctx->width = fb2->width;
527 ctx->height = fb2->height;
529 if (!fb2->handles[0]) {
537 if (kmsgrab_formats[i].drm_format == fb2->pixel_format) {
542 fb2->pixel_format);
546 ctx->drm_format = fb2->pixel_format;
554 fb2->pixel_format);
559 if (fb2->flags & DRM_MODE_FB_MODIFIERS) {
561 ctx->drm_format_modifier != fb2->modifier) {
564 fb2->modifier);
568 ctx->drm_format_modifier = fb2->modifier;
664 drmModeFreeFB2(fb2);