mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	Merge pull request #1182 from ammen99/master
session: load GPU devices even if they have zero connectors
This commit is contained in:
		
						commit
						ce0ab4d4b5
					
				
					 1 changed files with 0 additions and 8 deletions
				
			
		| 
						 | 
				
			
			@ -220,17 +220,9 @@ static int open_if_kms(struct wlr_session *restrict session, const char *restric
 | 
			
		|||
		goto out_fd;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (res->count_crtcs <= 0 || res->count_connectors <= 0 ||
 | 
			
		||||
		res->count_encoders <= 0) {
 | 
			
		||||
 | 
			
		||||
		goto out_res;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	drmModeFreeResources(res);
 | 
			
		||||
	return fd;
 | 
			
		||||
 | 
			
		||||
out_res:
 | 
			
		||||
	drmModeFreeResources(res);
 | 
			
		||||
out_fd:
 | 
			
		||||
	wlr_session_close_file(session, fd);
 | 
			
		||||
	return -1;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue