• Home
Name Date Size #Lines LOC

..--

README.mdD03-May-20241.3 KiB3722

VERSIOND03-May-20241

common.pyD03-May-2024589 2711

create.pyD03-May-2024733 3519

create_and_upload.pyD03-May-20241.2 KiB5132

download.pyD03-May-2024278 174

upload.pyD03-May-2024268 174

README.md

1Creating the Linux Vulkan driver for Intel
2
3This is known to work on an Intel machine running Ubuntu 16.10.
4
5Install all deps
6
7    sudo apt-get install autoconf libtool scons flex bison llvm-dev libpthread-stubs0-dev x11proto-gl-dev libdrm-dev x11proto-dri2-dev x11proto-dri3-dev x11proto-present-dev libxcb1-dev libxcb-dri3-dev libxcb-present-dev libxshmfence-dev xserver-xorg-core xserver-xorg-dev x11proto-xext-dev libxext-dev libxdamage-dev libx11-xcb-dev libxcb-glx0-dev libxcb-dri2-0-dev
8
9    sudo pip install mako
10
11
12Get the source from ftp.freedesktop.org/pub/mesa/
13
14    wget ftp://ftp.freedesktop.org/pub/mesa/$MESA_VERSION/mesa-$MESA_VERSION.tar.gz
15    gunzip mesa-$MESA_VERSION.tar.gz
16    tar --extract -f mesa-$MESA_VERSION.tar
17    cd mesa-$MESA_VERSION/
18    mv mesa-$MESA_VERSION/ mesa
19
20
21Build the driver
22
23    mesa$ ./autogen.sh
24    # For the debug resource, use --enable-debug
25    mesa$ ./configure --with-vulkan-drivers=intel
26    mesa$ make
27
28
29Tweak icd.json file and output dir (mesa/lib)
30
31    mesa$ cp src/intel/vulkan/intel_icd.x86_64.json lib/
32    # modify the pathname in the intel_icd.x86_64.json file to be ./libvulkan_intel.so
33    mesa$ rm -rf lib/gallium  # We don't need this
34    mesa$ rm lib/nouveau_vieux_dri.so lib/r200_dri.so lib/radeon_dri.so # We don't need these
35
36
37Finally, use mesa/lib as the input directory to the create_and_upload script.