mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	backend/drm: log modesetting commits
This commit is contained in:
		
							parent
							
								
									b3da33116e
								
							
						
					
					
						commit
						65836ce357
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
					@ -581,6 +581,12 @@ bool drm_connector_commit_state(struct wlr_drm_connector *conn,
 | 
				
			||||||
		flags |= DRM_MODE_PAGE_FLIP_EVENT;
 | 
							flags |= DRM_MODE_PAGE_FLIP_EVENT;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if (pending.modeset) {
 | 
				
			||||||
 | 
							wlr_drm_conn_log(conn, WLR_INFO, "Modesetting with %dx%d @ %.3f Hz",
 | 
				
			||||||
 | 
								pending.mode.hdisplay, pending.mode.vdisplay,
 | 
				
			||||||
 | 
								(float)calculate_refresh_rate(&pending.mode) / 1000);
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (!drm_crtc_commit(conn, &pending, flags, false)) {
 | 
						if (!drm_crtc_commit(conn, &pending, flags, false)) {
 | 
				
			||||||
		return false;
 | 
							return false;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue