mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	Allow forcing legacy DRM interface
This commit is contained in:
		
							parent
							
								
									1682c0d983
								
							
						
					
					
						commit
						4a53aab466
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -31,7 +31,10 @@ bool wlr_drm_check_features(struct wlr_drm_backend *backend) {
 | 
			
		|||
		return false;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (drmSetClientCap(backend->fd, DRM_CLIENT_CAP_ATOMIC, 1)) {
 | 
			
		||||
	if (getenv("WLR_DRM_NO_ATOMIC")) {
 | 
			
		||||
		wlr_log(L_DEBUG, "WLR_DRM_NO_ATOMIC set, forcing legacy DRM interface");
 | 
			
		||||
		backend->iface = &legacy_iface;
 | 
			
		||||
	} else if (drmSetClientCap(backend->fd, DRM_CLIENT_CAP_ATOMIC, 1)) {
 | 
			
		||||
		wlr_log(L_DEBUG, "Atomic modesetting unsupported, using legacy DRM interface");
 | 
			
		||||
		backend->iface = &legacy_iface;
 | 
			
		||||
	} else {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue