mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	backend/drm: carry on when disabling a CRTC fails
On GPU unplug, disabling a CRTC can fail with EPERM. References: https://github.com/swaywm/wlroots/pull/2575#issuecomment-761771264
This commit is contained in:
		
							parent
							
								
									9b0e0970f9
								
							
						
					
					
						commit
						4839664a92
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1053,7 +1053,9 @@ static void dealloc_crtc(struct wlr_drm_connector *conn) {
 | 
			
		|||
	conn->crtc->pending_modeset = true;
 | 
			
		||||
	conn->crtc->pending.active = false;
 | 
			
		||||
	if (!drm_crtc_commit(conn, 0)) {
 | 
			
		||||
		return;
 | 
			
		||||
		// On GPU unplug, disabling the CRTC can fail with EPERM
 | 
			
		||||
		wlr_drm_conn_log(conn, WLR_ERROR, "Failed to disable CRTC %"PRIu32,
 | 
			
		||||
			conn->crtc->id);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	drm_plane_finish_surface(conn->crtc->primary);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue