mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	backend/drm: do not retry pageflip when swapping buffers
This commit is contained in:
		
							parent
							
								
									20e6861021
								
							
						
					
					
						commit
						b47e8c4a1d
					
				
					 1 changed files with 3 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -213,13 +213,11 @@ static bool wlr_drm_connector_swap_buffers(struct wlr_output *output) {
 | 
			
		|||
		return false;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (drm->iface->crtc_pageflip(drm, conn, crtc, fb_id, NULL)) {
 | 
			
		||||
		conn->pageflip_pending = true;
 | 
			
		||||
	} else {
 | 
			
		||||
		wl_event_source_timer_update(conn->retry_pageflip,
 | 
			
		||||
			1000000.0f / conn->output.current_mode->refresh);
 | 
			
		||||
	if (!drm->iface->crtc_pageflip(drm, conn, crtc, fb_id, NULL)) {
 | 
			
		||||
		return false;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	conn->pageflip_pending = true;
 | 
			
		||||
	return true;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue