mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	render/egl: fail on EGL_MESA_device_software
This commit is contained in:
		
							parent
							
								
									ce30a22159
								
							
						
					
					
						commit
						8a27050b4e
					
				
					 1 changed files with 4 additions and 7 deletions
				
			
		
							
								
								
									
										11
									
								
								render/egl.c
									
										
									
									
									
								
							
							
						
						
									
										11
									
								
								render/egl.c
									
										
									
									
									
								
							| 
						 | 
					@ -278,13 +278,10 @@ struct wlr_egl *wlr_egl_create(EGLenum platform, void *remote_display) {
 | 
				
			||||||
			if (allow_software != NULL && strcmp(allow_software, "1") == 0) {
 | 
								if (allow_software != NULL && strcmp(allow_software, "1") == 0) {
 | 
				
			||||||
				wlr_log(WLR_INFO, "Using software rendering");
 | 
									wlr_log(WLR_INFO, "Using software rendering");
 | 
				
			||||||
			} else {
 | 
								} else {
 | 
				
			||||||
				// Because of a Mesa bug, sometimes EGL_MESA_device_software is
 | 
									wlr_log(WLR_ERROR, "Software rendering detected, please use "
 | 
				
			||||||
				// advertised for hardware renderers. See:
 | 
										"the WLR_RENDERER_ALLOW_SOFTWARE environment variable "
 | 
				
			||||||
				// https://gitlab.freedesktop.org/mesa/mesa/-/issues/4178
 | 
										"to proceed");
 | 
				
			||||||
				// TODO: fail without WLR_RENDERER_ALLOW_SOFTWARE
 | 
									goto error;
 | 
				
			||||||
				wlr_log(WLR_INFO, "Warning: software rendering may be in use");
 | 
					 | 
				
			||||||
				wlr_log(WLR_INFO, "If you experience slow rendering, "
 | 
					 | 
				
			||||||
					"please check the OpenGL drivers are correctly installed");
 | 
					 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue