Subversion Repositories Kolibri OS

Rev

Rev 6088 | Rev 6660 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6088 Rev 6296
Line 419... Line 419...
419
	struct drm_crtc *crtc;
419
	struct drm_crtc *crtc;
420
	int bound = 0, crtcs_bound = 0;
420
	int bound = 0, crtcs_bound = 0;
Line 421... Line 421...
421
 
421
 
422
	/* Sometimes user space wants everything disabled, so don't steal the
422
	/* Sometimes user space wants everything disabled, so don't steal the
423
	 * display if there's a master. */
423
	 * display if there's a master. */
424
	if (dev->primary->master)
424
//   if (dev->primary->master)
Line 425... Line 425...
425
		return false;
425
//       return false;
426
 
426
 
427
	drm_for_each_crtc(crtc, dev) {
427
	drm_for_each_crtc(crtc, dev) {
428
		if (crtc->primary->fb)
428
		if (crtc->primary->fb)
429
			crtcs_bound++;
429
			crtcs_bound++;
430
		if (crtc->primary->fb == fb_helper->fb)
430
		if (crtc->primary->fb == fb_helper->fb)
Line -... Line 431...
-
 
431
			bound++;
431
			bound++;
432
	}
432
	}
433
 
Line 433... Line 434...
433
 
434
    dbgprintf("%s bound %d crtcs_bound %d\n", __FUNCTION__, bound, crtcs_bound);
434
	if (bound < crtcs_bound)
435
	if (bound < crtcs_bound)
Line 1842... Line 1843...
1842
		mutex_unlock(&fb_helper->dev->mode_config.mutex);
1843
		mutex_unlock(&fb_helper->dev->mode_config.mutex);
1843
		return 0;
1844
		return 0;
1844
	}
1845
	}
1845
	DRM_DEBUG_KMS("\n");
1846
	DRM_DEBUG_KMS("\n");
Line 1846... Line 1847...
1846
 
1847
 
1847
	max_width = fb_helper->fb->width;
1848
    max_width = 8192; //fb_helper->fb->width;
Line 1848... Line 1849...
1848
	max_height = fb_helper->fb->height;
1849
    max_height = 8192; //fb_helper->fb->height;
1849
 
1850
 
Line 1850... Line 1851...
1850
	drm_fb_helper_probe_connector_modes(fb_helper, max_width, max_height);
1851
	drm_fb_helper_probe_connector_modes(fb_helper, max_width, max_height);
1851
	mutex_unlock(&fb_helper->dev->mode_config.mutex);
1852
	mutex_unlock(&fb_helper->dev->mode_config.mutex);
1852
 
1853
 
1853
	drm_modeset_lock_all(dev);
1854
//   drm_modeset_lock_all(dev);
1854
	drm_setup_crtcs(fb_helper);
-
 
1855
	drm_modeset_unlock_all(dev);
1855
//   drm_setup_crtcs(fb_helper);
1856
	drm_fb_helper_set_par(fb_helper->fbdev);
1856
//   drm_modeset_unlock_all(dev);
1857
 
1857
//   drm_fb_helper_set_par(fb_helper->fbdev);
Line 1858... Line 1858...
1858
	return 0;
1858
	return 0;