Skip to content

All in one sulution mesa/vulkan/opencl no patch & Vulkan upgrade 1.1.96

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}" \ Upgrade:

    • libVkLayer_utils.so is in libvulkan.so (mail khronos)
    • VkStructureType::VK_STRUCTURE_TYPE_MIR_SURFACE_CREATE_INFO_KHR has been removed. (mail khronos)
    • spirv-headers available in on Sdk, because vulkan bind spirv static libs.
  • OpenCL build complete from GIT and defined a custom vendor dir: --enable-custom-vendordir="%{libdir}/OpenCL/vendors"

    • remove git for the opencl-headers from opencl.bst,
    • opencl-headers available in on Sdk.
  • CLInfo upgrade move khronos-headers.bst -> desktop/opencl-headers.bst and add it to the desktop

  • 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.

Fixes #552 (closed), #544 (closed)

Edited by Javier Jardón

Merge request reports