mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Optimise GPU acceleration for Linux guests
This commit is contained in:
		
							parent
							
								
									c22d0355b9
								
							
						
					
					
						commit
						b6dbfcbc35
					
				
					 1 changed files with 6 additions and 3 deletions
				
			
		
							
								
								
									
										9
									
								
								quickemu
									
										
									
									
									
								
							
							
						
						
									
										9
									
								
								quickemu
									
										
									
									
									
								
							|  | @ -705,8 +705,10 @@ function vm_boot() { | ||||||
|   # https://www.kraxel.org/blog/2019/09/display-devices-in-qemu/ |   # https://www.kraxel.org/blog/2019/09/display-devices-in-qemu/ | ||||||
|   if [ "${guest_os}" == "linux" ]; then |   if [ "${guest_os}" == "linux" ]; then | ||||||
|     case ${OUTPUT} in |     case ${OUTPUT} in | ||||||
|       none|spice) DISPLAY_DEVICE="qxl-vga";; |       none|spice|spice-app) | ||||||
|       *) DISPLAY_DEVICE="virtio-vga";; |         DISPLAY_DEVICE="virtio-gpu";; | ||||||
|  |       *) | ||||||
|  |         DISPLAY_DEVICE="virtio-vga";; | ||||||
|     esac |     esac | ||||||
|   elif [ "${guest_os}" == "macos" ]; then |   elif [ "${guest_os}" == "macos" ]; then | ||||||
|     # qxl-vga supports seamless mouse and sane resolutions if only one scanout |     # qxl-vga supports seamless mouse and sane resolutions if only one scanout | ||||||
|  | @ -741,7 +743,8 @@ function vm_boot() { | ||||||
|       DISPLAY_RENDER="${OUTPUT},gl=${gl}";; |       DISPLAY_RENDER="${OUTPUT},gl=${gl}";; | ||||||
|   esac |   esac | ||||||
| 
 | 
 | ||||||
|   if [ "${gl}" == "on" ] && [[ "${DISPLAY_DEVICE}" == *"virtio"* ]]; then |   # https://www.kraxel.org/blog/2021/05/virtio-gpu-qemu-graphics-update/ | ||||||
|  |   if [ "${gl}" == "on" ] && [ "${DISPLAY_DEVICE}" == "virtio-vga" ]; then | ||||||
|     if [ "${QEMU_VER_SHORT}" -ge 61 ]; then |     if [ "${QEMU_VER_SHORT}" -ge 61 ]; then | ||||||
|       DISPLAY_DEVICE="${DISPLAY_DEVICE}-gl" |       DISPLAY_DEVICE="${DISPLAY_DEVICE}-gl" | ||||||
|     else |     else | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue