r/vulkan • • 3h ago

KosmicKrisp Now The Go-To Solution For Vulkan On Macs In Place Of MoltenVK

Thumbnail phoronix.com
16 Upvotes

r/vulkan • • 15h ago

Translating a console's RDNA2 shader ISA straight to SPIR-V: looking for people who know SPIR-V and subgroups

3 Upvotes

I work on Scarlight, an open-source (GPL-3.0) compatibility tool that runs Xbox Series games on Linux through Proton, drawing with Mesa's Vulkan drivers. Today the console's RDNA2 shaders are recompiled to DXIL and go through vkd3d-proton and dxil-spirv. An experimental translator now goes from the console's instruction words straight to SPIR-V instead:

  • 223 of the 442 compute programs we have emit SPIR-V that passes spirv-val and builds a real RADV pipeline, with no failures among those 223.
  • Memory goes through buffer device addresses and push constants, no descriptor heaps; images bind one site per image instruction, and the view carries the console's format.
  • The hard parts left: typed buffer formats, exact DPP and lane-shuffle semantics as subgroup ops, and per-lane EXEC as structured control flow instead of a dispatcher loop.

If you know SPIR-V, subgroup operations or VK_EXT_descriptor_buffer, I would value review or help. The tests are hand-built instruction words, so you do not need any game files: https://github.com/pablogonz12/Scarlight/pull/120

Disclosure: this project is written with AI assistance (Claude and DeepSeek), reviewed and tested by me; the numbers above come from offline checks on one RX 9070 XT.