
- Boots: No
- Release: None
- File: None
Leonida Shader Problems: Validation, Wave64 Emulation and Driver Workarounds
Shader translation and validation are separate steps in Leonida, and driver quirks have documented workarounds. This guide explains the documented behaviours.
Contents
Leonida Shaders, Translation and Validation
Leonida shaders are the graphics programs the build translates from the console form into SPIR-V for Vulkan, and the shader work in the build is organised as separate steps. Translation and SPIR-V validation are separate steps, and the separation is the first documented behaviour a reader should understand. A shader that has been translated has not yet been validated, and a shader that has been validated has passed a separate check on the translated result. Reporting the two steps separately keeps the reader from mistaking translation for completion, and it keeps validation failures visible as their own kind of result.
Validation failures, in the documented history of the build, were fixed in later reruns. Two ID-bound failures were fixed in later reruns, and the guide states that behaviour without inventing the wording of any failure, any message, or any fix. The point for a reader is the pattern: validation is a step that can fail, failure is reported at that step, and rerunning the work after a fix is the documented path to a validated result. The guide does not promise that every validation failure follows the same pattern, and it does not invent a general fix for validation failures.
Translation and Validation as Separate Steps
Translation turns the console shader form into SPIR-V, and validation checks the translated SPIR-V. Because the steps are separate, a reader should expect two kinds of progress in the shader work, and two kinds of result. A translation result says the shader was converted. A validation result says the converted shader passed the SPIR-V validation check. Neither result, on its own, says the whole shader job is done, and the build reports them separately for exactly that reason.
The DirectX 12 to Vulkan guide covers the wider graphics translation the shaders belong to, including the console graphics layer rebuilt on Vulkan. The shader guide and the graphics guide complement each other: one describes the shader steps in detail, and the other describes the layer those shaders run inside. Both stay inside the documented behaviours, and neither claims that translated and validated shaders produce visible game output, because the finished build launches no game and no shader has drawn a frame of the game.
Wave64 Emulation and Auto Mode
Wave64 emulation defaults to auto, decided via vulkaninfo. The default mode is automatic, and the decision is made using vulkaninfo, the tool that reports what the graphics setup supports. The guide states the default and the decision source, and it does not add a description of subgroup widths, hardware lists, or emulation internals, because the brief for this article gives none. The behaviour a reader needs to know is simple: unless changed, emulation is in auto mode, and auto mode is decided via vulkaninfo.
Driver Behaviour and Workarounds
Two driver behaviours are documented, and each has a documented form. The AMD driver on Windows can crash on emulated LDS code. Intel native mesh draws crash, and the documented workaround is the mesh-compute flag. The guide states both behaviours exactly as documented, without inventing crash messages, driver versions, or additional workarounds. A reader who meets either behaviour should recognise it from this description, and should use the documented workaround where one is given.
The AMD Windows driver can crash on emulated LDS code, and Intel native mesh draws crash. Use the documented mesh-compute workaround for the Intel behaviour, and do not read either crash as a sign that the shader translation itself has failed.
The Pipelines Stage and Skipped Shaders
The pipelines stage reports the shaders it has to skip. That reporting is itself a documented behaviour, and it is the behaviour a reader should look for when shader work leaves some shaders out. A skipped shader is not a silent omission. The stage reports it, so the reader knows which shaders were skipped and can read the rest of the shader results in that light. The guide does not invent reasons for skipping, and it does not invent a way to unskip a shader, because the brief gives neither.
Reporting, in this context, is a form of honesty in the build. A build that skipped shaders silently would leave the reader with a false picture of completeness. A build that reports its skips lets the reader hold two truths at once: much shader work is translated and validated, and some shaders are skipped and reported as skipped. The shaders and Vulkan guide describes the shader pipeline as a whole, including translation, validation, and the Vulkan layer, and readers who want the full pipeline picture should read it alongside this article.
Shader Check Sequence
- Expect translation and SPIR-V validation to be reported as separate steps, and read each result at its own step.
- Read a validation failure as a validation-step result, with later reruns as the documented path after a fix.
- Leave wave64 emulation in its default auto mode, decided via vulkaninfo, unless a documented driver behaviour gives reason to change it.
- Recognise an AMD Windows driver crash on emulated LDS code as a driver behaviour, distinct from a translation failure.
- Use the mesh-compute workaround for the documented Intel crash on native mesh draws.
- Read the pipelines stage report for the shaders it has to skip, and do not mistake a skip for a validation result.
The status and progress guide places the shader work inside the wider progress of the project, so readers can see how translation, validation, and the reported skips fit the overall state of the build. Shader problems, understood as documented behaviours, are problems in producing translated and validated files, and the responses in this guide are the documented ones: separate steps, reruns after fixes, an auto default, and a workaround where one is documented.
Conclusion
Leonida shader problems, as documented, are matters of separate steps, an automatic default, driver quirks, and reported skips. Translation and SPIR-V validation are separate steps, and validation failures were fixed in later reruns, including two ID-bound failures. Wave64 emulation defaults to auto via vulkaninfo. The AMD Windows driver can crash on emulated LDS code, and Intel native mesh draws crash, with the mesh-compute workaround documented for the Intel behaviour. The pipelines stage reports the shaders it has to skip. Those are the documented behaviours, with no invented messages and no invented fixes.
Frequently Asked Questions
Are shader translation and validation the same step?
No. Translation and SPIR-V validation are separate steps in Leonida, and they are reported separately, so a translated shader has not yet passed validation until the validation step reports it.
What is the default wave64 emulation mode?
Wave64 emulation defaults to auto, decided via vulkaninfo. The automatic default is the starting point, unless a documented driver behaviour gives reason to change it.
What is the documented workaround for the Intel mesh crash?
Intel native mesh draws crash, and the documented workaround is the mesh-compute flag. It is a workaround for the documented crash, not a general shader option.