mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	scene: use backend-wide timeline feature flag
This commit is contained in:
		
							parent
							
								
									186bdc8da4
								
							
						
					
					
						commit
						785e340f01
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -1607,7 +1607,8 @@ struct wlr_scene_output *wlr_scene_output_create(struct wlr_scene *scene,
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	int drm_fd = wlr_backend_get_drm_fd(output->backend);
 | 
						int drm_fd = wlr_backend_get_drm_fd(output->backend);
 | 
				
			||||||
	if (drm_fd >= 0 && output->timeline && output->renderer != NULL && output->renderer->features.timeline) {
 | 
						if (drm_fd >= 0 && output->backend->features.timeline &&
 | 
				
			||||||
 | 
								output->renderer != NULL && output->renderer->features.timeline) {
 | 
				
			||||||
		scene_output->in_timeline = wlr_drm_syncobj_timeline_create(drm_fd);
 | 
							scene_output->in_timeline = wlr_drm_syncobj_timeline_create(drm_fd);
 | 
				
			||||||
		if (scene_output->in_timeline == NULL) {
 | 
							if (scene_output->in_timeline == NULL) {
 | 
				
			||||||
			return NULL;
 | 
								return NULL;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue