-
Notifications
You must be signed in to change notification settings - Fork 1
/
install_vulkan.sh
46 lines (37 loc) · 1.59 KB
/
install_vulkan.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# https://www.raspberrypi.org/forums/viewtopic.php?t=288956
sudo rm -r /home/pi/mesa_vulkan
echo 1/8 Update
#sudo apt update
echo 2/8 Upgrade
#sudo apt full-upgrade -y
echo 3/8 Install pre-requisites
sudo apt install -y libxcb-randr0-dev libxrandr-dev \
libxcb-xinerama0-dev libxinerama-dev libxcursor-dev \
libxcb-cursor-dev libxkbcommon-dev xutils-dev \
xutils-dev libpthread-stubs0-dev libpciaccess-dev \
libffi-dev x11proto-xext-dev libxcb1-dev libxcb-*dev \
bison flex libssl-dev libgnutls28-dev x11proto-dri2-dev \
x11proto-dri3-dev libx11-dev libxcb-glx0-dev \
libx11-xcb-dev libxext-dev libxdamage-dev libxfixes-dev \
libva-dev x11proto-randr-dev x11proto-present-dev \
libclc-dev libelf-dev git build-essential mesa-utils \
libvulkan-dev ninja-build libvulkan1 python-mako \
libdrm-dev libxshmfence-dev libxxf86vm-dev libunwind-dev \
valgrind libzstd-dev vulkan-tools
echo 4/8 Install meson
#sudo apt purge meson -y
sudo pip3 install meson --force-reinstall
#pip3 install meson --force-reinstall
echo $PATH | grep $HOME/.local/bin || export PATH=$HOME/.local/bin:$PATH
echo 5/8 Install mako
sudo pip3 install mako
echo 6/8 Get v3dv
cd ~
git clone https://gitlab.freedesktop.org/mesa/mesa.git mesa_vulkan
echo 7/8 Build vulkan
cd mesa_vulkan
CFLAGS="-mcpu=cortex-a72" CXXFLAGS="-mcpu=cortex-a72" meson --prefix /usr -Dplatforms=x11 -Dvulkan-drivers=broadcom -Ddri-drivers= -Dgallium-drivers=kmsro,v3d,vc4 -Dbuildtype=release build
ninja -C build -j4
sudo ninja -C build install
echo 8/8 Updated Mesa Driver
glxinfo -B