xwayland/eglstream: Use "nvidia" for GLVND
If the EGLStream backend is able to use hardware acceleration with the NVIDIA closed source driver, we should use the "nvidia" GLX implementation instead of the one from Mesa to take advantage of the NVIDIA hardware accelerated rendering. Signed-off-by: Olivier Fourdan <ofourdan@redhat.com> Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
This commit is contained in:
		
							parent
							
								
									24fc8aea1e
								
							
						
					
					
						commit
						fae58e9b03
					
				| 
						 | 
				
			
			@ -1195,8 +1195,10 @@ xwl_glamor_eglstream_init_egl(struct xwl_screen *xwl_screen)
 | 
			
		|||
 | 
			
		||||
    xwl_eglstream_init_shaders(xwl_screen);
 | 
			
		||||
 | 
			
		||||
    if (epoxy_has_gl_extension("GL_OES_EGL_image") &&
 | 
			
		||||
        !dri3_screen_init(xwl_screen->screen, &xwl_dri3_info)) {
 | 
			
		||||
    if (epoxy_has_gl_extension("GL_OES_EGL_image")) {
 | 
			
		||||
        if (dri3_screen_init(xwl_screen->screen, &xwl_dri3_info))
 | 
			
		||||
            xwl_screen->glvnd_vendor = "nvidia";
 | 
			
		||||
        else
 | 
			
		||||
            ErrorF("DRI3 initialization failed. Performance will be affected.\n");
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue