Skip to content

Fix compat break for vulkan icd and opencl icd without any patches to mesa, opencl or vulkan and upgrade Vulkan 1.1.96

AndyBe requested to merge andybe/mesa-opencl-vulkan-no-icd-patch into 18.08

After long test it's possible everything without patch to vulkan or opencl.

  • Mesa complete clean only change (pulls OpenCL to libdir): -DCMAKE_INSTALL_SYSCONFDIR:PATH="%{libdir}" \

  • Vulkan clean only change (libdir is the first search path): -DCMAKE_INSTALL_SYSCONFDIR:PATH="%{libdir}" \

  • OpenCL build complete from GIT and defined a custom vendor dir: --enable-custom-vendordir="%{libdir}/OpenCL/vendors"

  • CLInfo upgrade, because of nvidia

  • Nvida setup by links elements/desktop/proprietary-driver-nvidia.bst:

  build-commands:
  - |
    mkdir -p "%{install-root}%{libdir}/OpenCL/vendors"
    ln -s "../../GL/OpenCL/vendors/nvidia.icd" "%{install-root}%{libdir}/OpenCL/vendors/nvidia.icd"
    mkdir -p "%{install-root}%{libdir}/vulkan/icd.d"
    ln -s "../../GL/vulkan/icd.d/nvidia_icd.json" "%{install-root}%{libdir}/vulkan/icd.d/nvidia_icd.json

The only output that can be happen vulkan or opencl "libs can not found for nvidia" in case there is no nvidia That's harmless.

At this point we can change the driver easy or put another to elements/desktop/proprietary-drivers.bst.

Edited by Javier Jardón

Merge request reports