mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	backend/drm: simplify atomic commit logic
We don't need a per-CRTC atomic request anymore. Let's make the request per-commit so that it's easier to debug. This is also groundwork for supporting wlr_output_test properly.
This commit is contained in:
		
							parent
							
								
									06d5aa5780
								
							
						
					
					
						commit
						2ca3bdc35e
					
				
					 3 changed files with 24 additions and 49 deletions
				
			
		| 
						 | 
				
			
			@ -296,7 +296,6 @@ void finish_drm_resources(struct wlr_drm_backend *drm) {
 | 
			
		|||
	for (size_t i = 0; i < drm->num_crtcs; ++i) {
 | 
			
		||||
		struct wlr_drm_crtc *crtc = &drm->crtcs[i];
 | 
			
		||||
 | 
			
		||||
		drmModeAtomicFree(crtc->atomic);
 | 
			
		||||
		drmModeFreeCrtc(crtc->legacy_crtc);
 | 
			
		||||
 | 
			
		||||
		if (crtc->mode_id) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue