mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-10-29 05:40:12 -04:00 
			
		
		
		
	backend/drm: add support for atomic tearing page-flips
The kernel patches [1] have been merged. [1]: https://patchwork.freedesktop.org/series/120103/
This commit is contained in:
		
							parent
							
								
									4ec901bb33
								
							
						
					
					
						commit
						00b869c1a9
					
				
					 2 changed files with 3 additions and 1 deletions
				
			
		|  | @ -114,6 +114,8 @@ bool check_drm_features(struct wlr_drm_backend *drm) { | |||
| 
 | ||||
| 	if (drm->iface == &legacy_iface) { | ||||
| 		drm->supports_tearing_page_flips = drmGetCap(drm->fd, DRM_CAP_ASYNC_PAGE_FLIP, &cap) == 0 && cap == 1; | ||||
| 	} else { | ||||
| 		drm->supports_tearing_page_flips = drmGetCap(drm->fd, DRM_CAP_ATOMIC_ASYNC_PAGE_FLIP, &cap) == 0 && cap == 1; | ||||
| 	} | ||||
| 
 | ||||
| 	if (env_parse_bool("WLR_DRM_NO_MODIFIERS")) { | ||||
|  |  | |||
|  | @ -109,7 +109,7 @@ wayland_server = dependency('wayland-server', | |||
| ) | ||||
| 
 | ||||
| drm = dependency('libdrm', | ||||
| 	version: '>=2.4.118', | ||||
| 	version: '>=2.4.120', | ||||
| 	fallback: 'libdrm', | ||||
| 	default_options: [ | ||||
| 		'intel=disabled', | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Simon Ser
						Simon Ser