mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	backend/drm: do not try a pageflip is another one is in pending
This commit is contained in:
		
							parent
							
								
									f0f97280a0
								
							
						
					
					
						commit
						584f06ad2f
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -201,6 +201,11 @@ static void wlr_drm_connector_swap_buffers(struct wlr_output *output) {
 | 
			
		|||
	}
 | 
			
		||||
	uint32_t fb_id = get_fb_for_bo(bo);
 | 
			
		||||
 | 
			
		||||
	if (conn->pageflip_pending) {
 | 
			
		||||
		wlr_log(L_ERROR, "Skipping pageflip");
 | 
			
		||||
		return;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (drm->iface->crtc_pageflip(drm, conn, crtc, fb_id, NULL)) {
 | 
			
		||||
		conn->pageflip_pending = true;
 | 
			
		||||
	} else {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue