Forked from SaschaWillems/gist:47be6970a3e99a3d30e1
Last active
August 10, 2016 20:52
-
-
Save groleo/e6e1bb8fb626b5bf7db362854914055b to your computer and use it in GitHub Desktop.
Intel Vulkan Mesa on Ubuntu 15.10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pre requisites | |
- Enable DRI3 as described in https://vulkan.lunarg.com/app/docs/v1.0.3.1/getting_started_linux | |
- Install a library for SHA, e.g. sudo apt-get install libgcrypt11-dev (if not already present) | |
- Otherwise the driver may throw an error with "_mesa_sha1_compute" when loading SPIR-V shaders | |
# Building | |
- Clone Mesa Master : git clone git://anongit.freedesktop.org/mesa/mesa -b master | |
- cd mesa | |
- autoreconf -vfi | |
- ./configure --enable-debug --with-dri-drivers=i965 --with-gallium-drivers= --with-sha1= --with-vulkan-drivers=intel | |
- make | |
# Setting up the loader | |
- Create the directory /usr/share/vulkan/icd.d | |
- This is the place where the loader searches for installed ICDs | |
- From the mesa directory | |
- cp ./src/intel/vulkan/intel_icd.json /usr/share/vulkan/icd.d/ | |
- cp ./lib/libvulkan_intel.so /usr/share/vulkan/icd.d/ | |
# Verify | |
- Run vulkaninfo > vulkaninfo.txt | |
- Check for the following line : | |
- INFO: [loader] Code 0 : Found manifest file /usr/share/vulkan/icd.d/intel_icd.json, version "1.0.0" | |
- If this line is not followed by an "error", the icd has been located by the loader | |
- Run vulkaninfo | grep deviceName | |
- This should return the name of your device, e.g. "Intel(R) Ivybridge Mobile" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment