Repository navigation
docs/boot.md: set LEONIDA_SHADERS in the first-boot commands (without it every pipeline state fails) - #5313
docs/boot.md: set LEONIDA_SHADERS in the first-boot commands (without it every pipeline state fails)#5313dracbat wants to merge 1 commit into
Conversation
The Windows and Wine commands set LEONIDA_D3D12=vulkan but not LEONIDA_SHADERS. Without it the Vulkan device logs "no translated shaders" once and fails every graphics and compute pipeline state with E_FAIL, so a first boot that follows the page can't build a frame, and the D3D12 trace doesn't say why. Both command blocks now set it, and the text says what it is and what happens without it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Fact-checked
All 10 docs-related test files pass (Python 3.15.2 and the venv's pytest), and |
Kam471
left a comment
There was a problem hiding this comment.
Head 32105733f. git diff --check clean.
python -I tests/test_docs_cli_flags.py3 OK,test_docs_env_vars.py4 OK,test_docs_links.py6 OK,test_docs_list_items.py2 OK,test_docs_repo_paths.py2 OK,test_docs_table_rows.py2 OK,test_docs_table_ids.py2 OK,test_docs_design_rows.py4 OK.- The page's claim matches the code:
runtime/shims/d3d12_vulkan_device.cpp:677readsLEONIDA_SHADERS, and:681logs[rt] d3d12: no translated shaders: set LEONIDA_SHADERS to <work>/shaders/spirv. - The two command blocks now set the variable, and
make_game.pydocuments the translation under<work>/shaders/spirv(line 1091).
Verdict: approve. Docs-only; the explicit variable also takes precedence over #4333's shader_path.txt, as the PR says.
|
Read 3210573: pass
Read: No defect found. One nuance: compute rejects a desc with no FSSM/FSPX program ( AI-assisted (Claude Code). Generated by Claude Code |
kacper-serewis
left a comment
There was a problem hiding this comment.
AI-assisted Windows CPU review at 3210573. From the repo root in Windows PowerShell 5.1, a native probe inherited both documented environment variables and received the executable, package and trace paths containing spaces as intact arguments. Production ShaderLibrary loaded two synthetic entries, one in the main index and one in fspx. The device fallback from LEONIDA_SHADERS was checked by source inspection only; device initialization and retail boot were outside this review.
Claimed in the coordination issue as: #5256 (comment)
What and why
The runbook's Windows and Wine commands set
LEONIDA_D3D12=vulkanbut notLEONIDA_SHADERS. Atmain3faac55, thegta6rt.exethey run has no other way to find the translator's output. So:[rt] d3d12: no translated shaders: set LEONIDA_SHADERS to <work>/shaders/spirvonce;CreateGraphicsPipelineStateandCreateComputePipelineStatereturnsE_FAIL.A first boot that follows the page therefore can't build a frame, and the D3D12 trace doesn't show why, because pipeline creation has no
[d3d12-trace]line onmain(#4853 adds one).This adds the variable to both command blocks, and says what it is and what happens without it.
#4333 (RT-287) lets the packaged
gta6rt.exefind the shaders through ashader_path.txtbeside it. An explicitLEONIDA_SHADERStakes precedence there, so these commands stay right after it lands. And theruntime\buildbinary the page runs gets no such file.Tested
Windows 11, AMD Radeon RX 5700 (RDNA1), AMD driver 32.0.21045.29003, MSVC 14.44, Vulkan SDK 1.4.363.1, with
gta6rtfrommain3faac55 (RelWithDebInfo). A stand-in program creates the Xbox device withD3D12XboxCreateDeviceand asks for one graphics pipeline state with a placeholder 16-byte blob. It runs undergta6rt --run --trace-d3d12:LEONIDA_D3D12=vulkanonly),CreateGraphicsPipelineStatereturnedE_FAIL(0x80004005) after theno translated shadersline.LEONIDA_SHADERS=<work>/shaders/spirv, the device loaded the 26,325 translated shaders of my own copy's build, and the call reached the bytecode lookup:E_INVALIDARG, withshader bytecode holds no FSSM programfor the placeholder.The
tests/test_docs_*.pychecks (cli_flags, env_vars, links, list_items, repo_paths, table_rows, table_ids, design_rows) pass. The hunks sit apart from the lines #3893, #4424, #4650, #4695 and #4264 change in this file.AI-assisted: yes (Claude Code).
Checklist
docs/design.md, with how it was confirmed. (N/A: no translator change.)🤖 Generated with Claude Code