Home | History | Annotate | Download | only in sna

Lines Matching refs:fbcon

2237 					       const struct drm_mode_fb_cmd *fbcon)
2243 /* Create a new reference for the fbcon so that we can track it
2245 * delete our reference and not fbcon's!
2248 flink.handle = fbcon->handle;
2257 bo->pitch = fbcon->pitch;
2267 struct drm_mode_fb_cmd fbcon;
2287 /* Scan the connectors for a framebuffer and assume that is the fbcon */
2288 VG_CLEAR(fbcon);
2289 fbcon.fb_id = 0;
2303 fbcon.fb_id = mode.fb_id;
2304 if (drmIoctl(sna->kgem.fd, DRM_IOCTL_MODE_GETFB, &fbcon)) {
2305 fbcon.fb_id = 0;
2310 if (fbcon.fb_id == 0) {
2311 DBG(("%s: no fbcon found\n", __FUNCTION__));
2315 if (fbcon.fb_id == fb_id(priv->gpu_bo)) {
2320 DBG(("%s: found fbcon, size=%dx%d, depth=%d, bpp=%d\n",
2321 __FUNCTION__, fbcon.width, fbcon.height, fbcon.depth, fbcon.bpp));
2323 bo = sna_create_bo_for_fbcon(sna, &fbcon);
2327 DBG(("%s: fbcon handle=%d\n", __FUNCTION__, bo->handle));
2329 scratch.drawable.width = fbcon.width;
2330 scratch.drawable.height = fbcon.height;
2331 scratch.drawable.depth = fbcon.depth;
2332 scratch.drawable.bitsPerPixel = fbcon.bpp;
2336 box.x2 = min(fbcon.width, sna->front->drawable.width);
2337 box.y2 = min(fbcon.height, sna->front->drawable.height);
2340 if (box.x2 < (uint16_t)fbcon.width)
2341 sx = (fbcon.width - box.x2) / 2;
2346 if (box.y2 < (uint16_t)fbcon.height)
2347 sy = (fbcon.height - box.y2) / 2;
8590 /* VT switching, likely to be fbcon so make the backlight usable */