Skip to content

Instantly share code, notes, and snippets.

@SaschaWillems
Last active September 26, 2018 22:09
Show Gist options
  • Select an option

  • Save SaschaWillems/47be6970a3e99a3d30e1 to your computer and use it in GitHub Desktop.

Select an option

Save SaschaWillems/47be6970a3e99a3d30e1 to your computer and use it in GitHub Desktop.

Revisions

  1. SaschaWillems revised this gist May 26, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -12,7 +12,7 @@

    # Setting up the loader
    - Create the directory /usr/share/vulkan/icd.d
    - This is the place where the loader searches for instaled ICDs
    - This is the place where the loader searches for installed ICDs
    - From the mesa directory
    - Copy intel_icd.json /src/intel/vulkan to /usr/share/vulkan/icd.d
    - Copy libvulkan_intel.so from /lib to /usr/share/vulkan/icd.d
  2. SaschaWillems revised this gist Apr 29, 2016. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -4,10 +4,10 @@
    - Otherwise the driver may throw an error with "_mesa_sha1_compute" when loading SPIR-V shaders

    # Building
    - Clone Mesa Vulkan branch : git clone git://anongit.freedesktop.org/mesa/mesa -b vulkan
    - Clone Mesa Master : git clone git://anongit.freedesktop.org/mesa/mesa -b Master
    - cd mesa
    - autoreconf -vfi
    - ./configure --with-dri-drivers=i965 --with-gallium-drivers= --with-sha1
    - ./configure --with-dri-drivers=i965 --with-gallium-drivers= --with-sha1= --with-vulkan-drivers=intel
    - make

    # Setting up the loader
  3. SaschaWillems created this gist Mar 8, 2016.
    26 changes: 26 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,26 @@
    # 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 Vulkan branch : git clone git://anongit.freedesktop.org/mesa/mesa -b vulkan
    - cd mesa
    - autoreconf -vfi
    - ./configure --with-dri-drivers=i965 --with-gallium-drivers= --with-sha1
    - make

    # Setting up the loader
    - Create the directory /usr/share/vulkan/icd.d
    - This is the place where the loader searches for instaled ICDs
    - From the mesa directory
    - Copy intel_icd.json /src/intel/vulkan to /usr/share/vulkan/icd.d
    - Copy libvulkan_intel.so from /lib to /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"