driver switches
This commit is contained in:
		
							parent
							
								
									3a1e88c202
								
							
						
					
					
						commit
						9dc682bee3
					
				
					 1 changed files with 24 additions and 3 deletions
				
			
		|  | @ -14,15 +14,36 @@ fetch() { | ||||||
| 	patch -p1 < ../alpine-tls.patch | 	patch -p1 < ../alpine-tls.patch | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | _dri_drivers="" | ||||||
|  | _gallium_drivers="" | ||||||
|  | _vulkan_drivers="" | ||||||
|  | case $ARCH in | ||||||
|  | 	x86_64) | ||||||
|  | 		_dri_drivers="i915,i965,nouveau" | ||||||
|  | 		_gallium_drivers="iris" | ||||||
|  | 		_vulkan_drivers="intel" | ||||||
|  | 		;; | ||||||
|  | 
 | ||||||
|  | 	aarch64) | ||||||
|  | 		_dri_drivers="" | ||||||
|  | 		_gallium_drivers="vc4,v3d" | ||||||
|  | 		_vulkan_drivers="broadcom" | ||||||
|  | 		;; | ||||||
|  | esac | ||||||
|  | 
 | ||||||
| build() { | build() { | ||||||
| 	cd $pkgname-$pkgver | 	cd $pkgname-$pkgver | ||||||
| 	cd build | 	cd build | ||||||
|  | 	echo "dri drivers: "$_dri_drivers | ||||||
|  | 	echo "gallium drivers: "$_gallium_drivers | ||||||
|  | 	echo "vulkan drivers: "$_vulkan_drivers | ||||||
|  | 
 | ||||||
| 	meson .. \ | 	meson .. \ | ||||||
| 		--prefix=/usr \ | 		--prefix=/usr \ | ||||||
| 		-Dplatforms=wayland \ | 		-Dplatforms=wayland \ | ||||||
| 		-Ddri-drivers=i915,i965,nouveau \ | 		-Ddri-drivers=$_dri_drivers \ | ||||||
| 		-Ddri3=true \ | 		-Ddri3=true \ | ||||||
| 		-Dgallium-drivers=iris \ | 		-Dgallium-drivers=$_gallium_drivers \ | ||||||
| 		-Dgallium-vdpau=false \ | 		-Dgallium-vdpau=false \ | ||||||
| 		-Dgallium-xvmc=false \ | 		-Dgallium-xvmc=false \ | ||||||
| 		-Dgallium-omx=disabled \ | 		-Dgallium-omx=disabled \ | ||||||
|  | @ -30,7 +51,7 @@ build() { | ||||||
| 		-Dgallium-xz=false \ | 		-Dgallium-xz=false \ | ||||||
| 		-Dgallium-nine=false \ | 		-Dgallium-nine=false \ | ||||||
| 		-Dgallium-opencl=disabled \ | 		-Dgallium-opencl=disabled \ | ||||||
| 		-Dvulkan-drivers=intel \ | 		-Dvulkan-drivers=$_vulkan_drivers \ | ||||||
| 		-Dvulkan-overlay-layer=true \ | 		-Dvulkan-overlay-layer=true \ | ||||||
| 		-Dvulkan-device-select-layer=true \ | 		-Dvulkan-device-select-layer=true \ | ||||||
| 		-Dshared-glapi=enabled \ | 		-Dshared-glapi=enabled \ | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue