mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	backend/drm: stop checking for wlr_client_buffer
wlr_client_buffer is a bad indicator for direct scan-out. Compositors might use the underlying wlr_buffer instead.
This commit is contained in:
		
							parent
							
								
									67447d6cb4
								
							
						
					
					
						commit
						37ef9d7356
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
					@ -1690,8 +1690,7 @@ static void handle_page_flip(int fd, unsigned seq,
 | 
				
			||||||
	 * data between the GPUs, even if we were using the direct scanout
 | 
						 * data between the GPUs, even if we were using the direct scanout
 | 
				
			||||||
	 * interface.
 | 
						 * interface.
 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
	if (!drm->parent && plane->current_fb &&
 | 
						if (!drm->parent) {
 | 
				
			||||||
			wlr_client_buffer_get(plane->current_fb->wlr_buf)) {
 | 
					 | 
				
			||||||
		present_flags |= WLR_OUTPUT_PRESENT_ZERO_COPY;
 | 
							present_flags |= WLR_OUTPUT_PRESENT_ZERO_COPY;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue