RayTracingInVulkan icon indicating copy to clipboard operation
RayTracingInVulkan copied to clipboard

Support Asahi Linux

Open LeeTeng2001 opened this issue 1 year ago • 1 comments

A simple fix can make this build run in Asahi linux on arm64 architecture. Right now it'll fatal with the following error

Vulkan Devices: 
- [0] UnknownVendor 'Apple M2 Pro (G14S B1)' (Integrated GPU: vulkan 1.4.303, driver Honeykrisp Mesa 25.0.0-asahi20241211 - 25.0.0)
- [0] UnknownVendor 'llvmpipe (LLVM 18.1.8, 128 bits)' (CPU: vulkan 1.3.303, driver llvmpipe Mesa 25.0.0-asahi20241211 (LLVM 18.1.8) - 0.0.1)

Setting Device [0]:
FATAL: found no matching compute queue

This is because it requires a dedicated compute queue

	const auto computeFamily = FindQueue(queueFamilies, "compute", VK_QUEUE_COMPUTE_BIT, VK_QUEUE_GRAPHICS_BIT);

The fix is to fallback to a mixed capability compute queue when no dedicated compute queue is found.

LeeTeng2001 avatar Dec 23 '24 05:12 LeeTeng2001

I've just committed https://github.com/GPSnoopy/RayTracingInVulkan/commit/1071a7e91d3422f6d64e021c9926b633ce4dac31. Care to give it a spin and tell me whether it fixes the issue?

GPSnoopy avatar Dec 24 '24 22:12 GPSnoopy