一:搭建Vulkan运行环境
安装vulkan依赖包:
1. sudo apt install vulkan-tools
2. sudo apt install libvulkan-dev
3. sudo apt install vulkan-utility-libraries-dev spirv-tools
4. sudo apt install libglfw3-dev libglm-dev
5. sudo apt install libxxf86vm-dev libxi-dev
测试测试vulkan:
1. vulkaninfo
2. vkcube
二:编译mesa
1. apt source mesa #下载mesa代码
2. cd mesa-24.2.8 #比如下载的是mesa-24.2.8
3. sudo apt build-dep ./
4. DEB_BUILD_OPTIONS="nostrip" DEB_