Repository navigation
Conversation
…ded shaders (cherry picked from commit ab03d8d) Adapted to main by Mumogg: the exe folder is loaded after main's library folder, shaders() calls exe_shaders after library_shaders, and the test's fake FSPX index carries fspx_code_sha256, which fspx_cache_complete now needs (as the newer copy of this test in old PR 10036 does).
…, runtime: the executable's embedded shaders are translated and loaded, again (RT-EXE-SHADERS) [Mumogg]
|
This still merges cleanly, but its own test is red on current The PR head alone passes (10 OK). def fake_translate(disasm, spirv, jobs, emulate=False, fallbacks=()):
ran.append("translate")
- write("", spirv, "index.json")
+ write('{"shader": {"stage": "vs"}}', spirv, "index.json")On the merged tree Windows 10 Pro 22H2 (19045), VS 2022 RelWithDebInfo, CPython 3.12.10, no game files, so the real executable step was not run. AI-assisted (Claude Code): I read the code diff and ran this on that machine. |
…ectLeonida#497's step reads ProjectLeonida#387's test_exe_shaders_stage (on integration only) stands in for the translation with an empty spirv/index.json. ProjectLeonida#497, which came with the upstream fold, added make_game's native PSO step after the translation; it loads that index and fails on an empty file. ProjectLeonida#497 changed the same fixture line in test_bvh_shaders_stage (1740e09); this applies that change to ProjectLeonida#387's copy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Retail Wine data point: the executable's VS is missing, three PSOs fail, the boot continues Build: The boot asks for The PR is currently CONFLICTING; a rebase plus a run with the stage would let a Wine boot confirm the frame side. Counts and call shapes only, no game data. AI-assisted. |
|
Frame-content data point under Wine: the first-run account-selection page renders its labels, but the artwork/background is black Build: The boot reaches the first-run account-selection page after ~300 s (29,354 presents, no exception): the page's labels and navigation arrows render, the background/artwork area is black. The log has 20 The PR is CONFLICTING; a rebase plus this stage would let a Wine boot confirm the artwork. Counts and call shapes only, no game data. AI-assisted. |
|
Windows / RTX 3050 Laptop GPU data point for the embedded executable shaders I ran the standalone
AI-assisted (Codex). |
Claimed in #14 as
RT-EXE-SHADERS. Independent of my other open pull requests: it is based onmainalone.What and why
The retail executable carries a few shaders of its own (FSSM programs in DXIL containers,
docs/embedded_shaders.md). At startup the title creates six pipelines from them. Onmainnothing translates them and the runtime's shader library does not look for them, so each creation fails withno translated vs for FSSM sha256 ....Commit
ab03d8dd1by Faterek (-x, authorship kept; an ancestor ofmainwhose content is not in the tree) does both halves:make_game.py: anexe_shadersstep in the shaders stage carves, unpacks, disassembles and translates the executable's containers into<work>/shaders/spirv/exe, after the BVH builder's.runtime/src/shader_library.h:load()also reads<dir>/exe/index.json; its entries are namedexe/<name>, found byfssm_sha256like the game's own shaders, and counted byexe_size().Adapted to
main, as the commit message says: theexefolder is loaded aftermain'slibraryfolder (#19),shaders()callsexe_shadersafterlibrary_shaders, and the test's fake FSPX index carriesfspx_code_sha256, whichfspx_cache_completeneeds now.Overlap with #303: that draft carries tedin7's later version of the build half (old PR 10036) with its own
tests/test_exe_shaders_stage.py. It does not have the runtime half. The two cannot both land as they are: if #303 is preferred formake_game.py, I will cut this down to theshader_library.hchange and its tests. I took the one fix this copy of the test needed from that newer copy.Measured
Linux (Nobara 44, kernel 7.3), Wine 11.21 staging, RTX 5070 Ti (driver 615.78.08), clang-cl 22.1.8 + xwin SDK 10.0.26100, own 1.0.2.1 copy, network off. The boot run is on
mainece4ba5b3with my stacked pull requests up to #385 and with #142, #219 and #328, because the pipelines are only reached that far in; the work folder already held the translatedexefolder (13 files) from an earlier build of the same step.--runID3D12Device2::CreatePipelineStateThe run then goes on as before, to command-queue slot 35 being refused.
Tests, all without game files:
python -I tests/test_exe_shaders_stage.py: 10 tests, OK.tests/test_library_shaders_stage.pyandtests/test_bvh_shaders_stage.py: OK.python -m compileall -q make_game.py tools tests: clean.shader_library_testunder Wine: passes, with the commit'sexefolder case (entries found by FSSM hash, the main index first when both hold a program, a broken or missingexe/index.jsonleaves the others loaded).Not run here: the
exe_shadersstep itself against my copy on this tree (the measurement above uses the folder an earlier build made), MSVC, Windows.AI-assisted (Claude Code); built and run on the machine above.
🤖 Generated with Claude Code
https://claude.ai/code/session_01HxBQf4pXH8PWpC5oZsM4bt