xwayland/glamor: Drop the check_flip() hook
The GBM backend never had a use for it. Signed-off-by: Olivier Fourdan <ofourdan@redhat.com> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1386>
This commit is contained in:
		
							parent
							
								
									76ae669327
								
							
						
					
					
						commit
						e8d974a8d3
					
				| 
						 | 
				
			
			@ -1301,7 +1301,6 @@ xwl_glamor_init_gbm(struct xwl_screen *xwl_screen)
 | 
			
		|||
    dixSetPrivate(&xwl_screen->screen->devPrivates, &xwl_gbm_private_key,
 | 
			
		||||
                  xwl_gbm);
 | 
			
		||||
 | 
			
		||||
    xwl_screen->gbm_backend.check_flip = NULL;
 | 
			
		||||
    xwl_screen->gbm_backend.get_main_device = xwl_gbm_get_main_device;
 | 
			
		||||
    xwl_screen->gbm_backend.is_available = TRUE;
 | 
			
		||||
    xwl_screen->gbm_backend.backend_flags = XWL_EGL_BACKEND_NEEDS_BUFFER_FLUSH |
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -93,15 +93,11 @@ Bool
 | 
			
		|||
xwl_glamor_check_flip(WindowPtr present_window, PixmapPtr pixmap)
 | 
			
		||||
{
 | 
			
		||||
    ScreenPtr screen = pixmap->drawable.pScreen;
 | 
			
		||||
    struct xwl_screen *xwl_screen = xwl_screen_get(screen);
 | 
			
		||||
    PixmapPtr backing_pixmap = screen->GetWindowPixmap(present_window);
 | 
			
		||||
 | 
			
		||||
    if (pixmap->drawable.depth != backing_pixmap->drawable.depth)
 | 
			
		||||
        return FALSE;
 | 
			
		||||
 | 
			
		||||
    if (xwl_screen->egl_backend->check_flip)
 | 
			
		||||
        return xwl_screen->egl_backend->check_flip(pixmap);
 | 
			
		||||
 | 
			
		||||
    return TRUE;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue