Commit Graph

299 Commits

Author SHA1 Message Date
d601736ced Merge pull request #723 from aslan2142/build2835-partial-version-match
OLD-7895: restore old upstream PR 7895 - make_game: an incomplete copy is named as a partial match of its version, with what is missing
2026-11-25 23:26:11 +01:00
d919356421 Merge pull request #639 from DesertGamer/fix/make-game-vulkan-sdk-warn
make_game: warn when the runtime stage runs without VULKAN_SDK (MAKE-GAME-VULKAN-SDK-WARN)
2026-11-25 22:25:10 +01:00
7b52328752 Merge pull request #482 from xroneyaa/fix/make-game-tool-available-spaces
PREFLIGHT-TOOL-AVAILABLE-SPACES: parse quoted paths with spaces in make_game.tool_available
2026-11-25 22:23:53 +01:00
2b78ecb22a Merge pull request #433 from Rain156/fix/full-check-jobs
make_game: honor --jobs during full package verification (VERIFY-FULL-CHECK-JOBS)
2026-11-25 22:23:05 +01:00
93a0f21f49 BUILD-STAGES: report a stage that raises instead of failing silently
A stage that raises outright (not through fail()) was swallowed by the
run_build_stages exception handlers: the build stopped with exit 1 and an
empty stderr, so a permission or copy failure gave no visible cause
(board #1608 comment 7163281819). Report the stage name and the exception
once per stage on stderr from the series loop, the wait handler and the
final drain; fail()'s own diagnostics are unchanged and RuntimeError from
its sys.exit is not re-reported.

Tested: tests/test_leonida_tui.py UnexpectedStageExceptionTest (both
overlap modes, fails without the fix); test_make_game_* and stage suites
pass.
2026-11-25 13:16:50 +00:00
e47b4e4caf Merge pull request #1003 from Snooozs/dotnet-sdks-decode
Merging.

**Why merged:** `dotnet --list-sdks` output is decoded with errors="replace", so a non-UTF-8 console doesn't crash the check.

**Why it's good:** Own tests: 5 passed. The consistency set shows 583 because its new test file matches test_make_game_*.

Tested on Windows 11 / RTX 4070 SUPER: merged alone onto main b4b7756e8. With it in, the repo-consistency set (cmake/translator-deps, shader_stage_resume, runtime_paths, docs, make_game, no-game-data, run_semantic_tests, ctest_registration) gives 578 passed / 5 skipped / 0 failed, and check_no_game_data on the changed files is clean. git merge-tree against current main 3ff2a2adc (after #984): no conflicts. Security read of the three-dot diff: no binaries, game data, downloads, network calls or CI changes.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 21:36:02 -05:00
154e4ec034 Merge the #984 result (main + RT-PROTON-STORY-LOAD) into #939
The base is 8a242efeb, the merge of main and #984. 68 files conflicted; they were resolved in seven groups by
one rule: the same change in two forms keeps the base's form, everything only #939 has is kept, and where the
two solve one problem in two ways the base's is the frame and #939's plugs into it.

A, the Xbox proxy (d3d12_xs_device.cpp/.h, d3d12_xs.cpp, d3d12_xs_pso_stream.cpp/.h, d3d12_xs_alloc_size.h,
d3d12_xs_desc_clean.h, device_proxy_test.cpp, queue_proxy_test.cpp): the base's files with #939's additions
ported in. Device slot 57 asks #939's NativeGraphicsFactory first and falls back to the base's
proxy_create_graphics_pipeline_from_native_code on E_NOTIMPL. Kept from #939: the providers (texture lease,
raw texture view, resource by address, constant view, descriptor mapping, depth-stencil UAV, texture pages),
the title-backed descriptor mirror, slot 13's feature answers, GPU labels on list slots 71/72. Dropped: #939's
duplicates of the boot ladder routes, its fallback window, its slot 133 stand-in.

A2 (xs_proxy_mock_test.cpp): the base's test with #939's slot 70 raw-buffer case; presentation cases follow
#939's rule that a device which ever had a handler has no queue fallback.

B1, the Vulkan device (d3d12_vulkan_device.cpp, d3d12_com.cpp/.h, shader_library.h, queue_families.h,
pipeline_cache_file.h, startup_trace.h): one lazy-pipeline mechanism, the base's; #939's pending_base_compile
and first_use_backend_pipelines dropped, prepare_on_bind and cold_graphics_compile kept. create_texture keeps
the base's signature; #939's deferred backing is folded into the base's placed-memory binder. #939's quad
lists as triangle indices.

B2, the D3D12 tests (d3d12_existing_heap, a8_dimensions, pipeline_cache_seed, title_va, rect_list,
shader_library, loader_tls_index0, draw, compute, xmem_placed, shader_library_corpus): the base's tests where
both carry the same case, #939's cases added (rebound tables, linear texture map, large vertex batch,
executable shaders, default A8 views).

C, the backend (vulkan_replay.h, vulkan_backend.h, vulkan_bindless.h, vulkan_scratch.h, vulkan_present.h,
rect_list_geometry.h, vk_test_device.h, vk_pipeline_check.cpp, vk_store_test.cpp, bindless_sizing_test.cpp,
replay_texture_barrier_test.cpp): the base's prepare_draw and lazy compute, its #1055 release rule and its
rectangle generator; #939's rectangle variants, GPU quad index expansion, 1D/3D and depth-stencil UAVs, the
label fence on the base's submit.

D, memory, services, presentation (xmem.cpp/.h, xg_xs.cpp, xg_xs_test.cpp, title_va_alias.h and its test,
main.cpp, frame_pacer.h, xbox_present.cpp/.h; xgameruntime_offline.cpp for one comment): the base's xmem with
#939's label hooks, file-backed sections and pin_mapped_data; both texture computers in xg_xs.cpp, the base's
answering first; --first-run-ui kept without host speech in its profile.

E, build, tools, docs (runtime/CMakeLists.txt, make_game.py, tools/rdna2spirv.py, tools/shader_disasm.py,
scripts, tests, docs; docs/README.md and tests/test_exe_shaders_stage.py beyond the conflicts): the base's
v_dot4 decode, #281's disassembler form and tests/semantic/test_fspx_dot4_op_sel_disasm.py dropped; the
base's executable-shader step with #939's cache fix; 366 registered tests.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 20:26:00 -05:00
39879ce0fd Merge main into RT-PROTON-STORY-LOAD (#984)
Merges main at 1154976d4 into the integration branch at 273b3bdf9 (merge base ece4ba5b3). 42 files conflicted;
this commit is the resolution only. Build and test repairs follow in their own commits.

Rule of resolution: where both sides added different things, both stay; where both made the same change in two
forms, main's reviewed form stays and whatever #984's form did in addition is carried into it; where the two
changed the same code for different purposes, both purposes are kept.

Xbox proxy code (runtime/shims/d3d12_xs_device.cpp, d3d12_xs_device.h, d3d12_xs.cpp, d3d12_xs_alloc_size.h,
d3d12_xs_desc_clean.h, registry.cpp):
- d3d12_xs_device.cpp is #984's file with main's differing pieces ported in: env_slot and the configurable device
  routes, XboxQueueSlotRoutes, PresentationHandler / set_presentation_handler, the console caller rule for device
  slots 61 and 74 (#383, #385), route_xbox_device_slot, slot 81 as GetFrameStatisticsX, create_host_device, the
  console-form rule for slots 25 and 56, the console list IID of #359, and the forms of queue slot 18 (#403) and
  list slot 139 (#396).
- Kept from #984: the list proxy with handle translation, queue slots 16/17 as Signal/Wait, the fence's
  completed-value mirror, the shared FrameTokenSource, PresentX through queue_present_x when no handler is
  attached (slot 30, or 32 on a queue detected as the newer layout), slots 27/53/55/57/70/71/133, the wider
  pc_resource_desc, S_OK for queue slots past the PC table.
- Dropped: #984's GetFrameEventsX and LEONIDA_XS_FRAME_EVENTS_SLOT, its second-word rule for slot 61, its
  undetected-layout rule for queue slot 18, its list IID mapping to GraphicsCommandList6; main's copy of the base
  list proxy, its null-view slot 70 and its refusing slot 133.

Proxy tests (runtime/test/xs_proxy_mock_test.cpp, device_proxy_test.cpp, queue_proxy_test.cpp):
- Checks of both sides, each run once; main's forms of the render-target size and layout checks with #984's extra
  cases added; main's --env-slots-74 and #984's --env-slots-70.
- Adapted to the merged code: the queue tail answers S_OK, slot 73 answers an unknown IID with the list proxy,
  the queue slot 18 case installs a console caller. Dropped: #984's slot 81 GetFrameEventsX cases.

D3D12/Vulkan layer (runtime/shims/d3d12_com.cpp, d3d12_vulkan_device.cpp, runtime/src/command_list.h,
frame_pacer.h, shader_library.h, vulkan_backend.h, vulkan_replay.h, runtime/test/command_list_test.cpp,
d3d12_close_parity_test.cpp, d3d12_execute_indirect_validation_test.cpp, replay_texture_barrier_test.cpp,
vk_pipeline_check.cpp, vk_test_device.h):
- Resource::create_texture: #984's title images (deferred placed, pending streamed, title pool) and main's
  ordinary textures (#1413 shared blocks, #1364 staging fallback) are exclusive branches chosen by the texture's
  origin, so both pools run on disjoint sets of textures.
- frame_pacer.h is main's pacer (#402) with #984's FrameTokenSource as the token counter.
- main's forms kept for ExecuteIndirect (#1066, #377), the barrier into LAYOUT_UNDEFINED (#1055), the B4G4R4A4
  stand-in, per-face stencil masks, the unaligned tile staging (#528) and the device-lost flag (#980).
- shader_library.h: main's block inflate; #984's `bulk` parameter now defaults to true so main's callers keep it.
- Dropped: #984's B8G8R8A8 stand-in for B4G4R4A4 targets, its refusal of separate stencil masks, its zero-count
  refusal in ExecuteIndirect, its wider UNDEFINED -> UNDEFINED release and the test case for it.

Other shims (runtime/shims/dstorage.cpp, file_system.cpp, gameinput.cpp, xgameruntime_offline.cpp,
runtime/test/xgameruntime_offline_test.cpp, xmem_test.cpp):
- ReadFile and DirectStorage reads: #984's pinned kernel_writes read, then main's touch_pages retry on
  ERROR_NOACCESS. main's rt::fs::read_file is folded into #984's read_file.
- gameinput: main's strict LEONIDA_INPUT_SCRIPT parser with #984's rsup/rsdown entries.
- Speech synthesis: main's one silent voice and handle checks; #984's accept-anything form dropped.

Build, tools, docs (runtime/CMakeLists.txt, runtime/cmake/translator_deps.cmake, scripts/build_runtime.ps1,
make_game.py, tools/rdna2spirv.py, shader_disasm.py, shader_ir.py, shader_library.py,
runtime/test/shaders/cs_imgload_tfe.asm, cs_imgload_d16_tfe.asm, docs/README.md, boot.md, d3d12_vulkan.md,
runtime/README.md):
- Unions of the test, target and source lists; spirv_loop_guard.py added to translator_deps.cmake.
- rdna2spirv.py: main's DPP compare rule (#957), SMEM vcc base (#647) and widen_wave64_masks (#1021); #984's
  restore_skipped_instructions and restore_dot4_inline_sel. #984's duplicate widen_wave64_valu_masks dropped.
- shader_disasm.py and shader_ir.py: main's structure with #984's one-line-per-dword llvm-mc input and wave flags.
- shader_library.py: main's structure with #984's --compute-hashes and per-state compute variants.

One file that did not conflict is changed here: tools/rdna2_decode.py. Git kept both sides' decoders for a VOPC
compare with a DPP operand, and #984's narrower one shadowed main's; it is main's file again.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 19:38:04 -05:00
273b3bdf9d [integration] Linux/Proton and native Windows: boot through the story load (RT-PROTON-STORY-LOAD)
One squashed commit of a fork that was developed on a Linux/Proton machine and
tested on two native Windows machines. On all of them the retail 1.0.2.1
package now launches, shows its launch movie, first-run pages and landing
prompt, runs the story load to its end with the loading slideshow drawing its
artwork, and enters the world phase. A first world frame is not verified yet.
docs/linux_proton.md has the setup, a healthy boot's timeline, the machines
and where it stops.

Runtime: frames in the title's own window; DirectStorage pinned reads,
page-list scatter/gather, BCPack and unshuffle with a locally generated
predictor file; pooled, device-local and deferred image backing for streamed
and placed textures; enhanced barriers into LAYOUT_UNDEFINED; a bindless table
that degrades instead of refusing a submission; a descriptor hash finalizer
(off until a library carries it); directly indexed heap offsets for compute
dispatches and VS/PS/GS draws; title buffer windows outside a fragmented
arena; opt-in device-local copies of streamed buffer views; write-fault
retries under the tracker lock, shared trackers and write-watched title memory
for native Windows; device-loss, compute-input and memory probes.

Translator: loop bounds at structured exits, the eight FidelityFX programs
that use a packed-dot form the disassembler skips, buffer bounds modes per
view kind, a compaction option, the hash finalizer option.

Tools and scripts: Linux boot scripts (Wine/Proton, no network), a Windows
boot script, the paired compute translation script.

No game data. AI-assisted (Claude Code and Codex agents), reviewed and booted
by people on the machines named in docs/linux_proton.md.

Co-authored-by: Plaaasma <47513553+Plaaasma@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 11:42:12 -06:00
6c6c6ca868 BUILD-DOTNET-SDKS-DECODE: decode dotnet --list-sdks with errors="replace"
dotnet_sdk_ok() ran `dotnet --list-sdks` with text=True and no errors=
argument. The text decode uses the console code page (cp1252 on a German
Windows), so an SDK path holding a byte that code page leaves undefined
(for example a profile name with Ł, č or ď) raised UnicodeDecodeError in
the reader thread. The check then got stdout None and raised TypeError,
which the caller does not catch, so preflight stopped before the build
began. The neighbouring calls already pass errors="replace".

The new tests/test_make_game_dotnet_sdk.py runs a real python child that
writes the raw bytes, and covers an SDK 8 install, a runtime-only install,
no dotnet on PATH, and an undecodable byte with and without an SDK. On
origin/main the two undecodable-byte cases error; with the fix all five pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 17:42:31 +01:00
14b5825881 Merge pull request #497 from Rain156/feat/native-graphics-shader-index
Merging.

**Why merged:** Indexes the DXBC identities the Xbox native graphics pipelines use, which the native-PSO path needs. The earlier hold (new tool not listed as a translator input) is fixed in 62a95883b: native_pso_hashes is now in translator_deps.cmake, make_game.py's translation sources and runtime.yml.

**Why it's good:** Security read of the three-dot diff: tools and tests only, no binaries, downloads or network calls. The PR's own tests: 129 passed. The consistency set, which caught the missing input registration last time, is clean now.

Tested on Windows 11, RTX 4070 SUPER (NVIDIA 621.24), VS 2022 + Ninja RelWithDebInfo, Vulkan SDK 1.4.363.0, alone on main (21625bca8 or 51f316092) and in a cumulative merge of #497, #278, #310, #334, #346, #340, #355, #361, #363, #620 and #577 (which carries #540) on main 2d73c242f (git merge-tree: 0 conflicts against current main). Repo-consistency set (cmake/translator-deps, shader_stage_resume, runtime_paths, docs, make_game, no-game-data, run_semantic_tests): 566 passed / 5 skipped / 0 failed on main and on main + batch. compileall OK. Full ctest: 302/304 on main and on main + batch (the same two pre-existing failures, d3d12_execute_indirect_validation and d3d12_depth_resolve, no new ones).

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 08:36:39 -05:00
aa8be9aef2 Integrate the offline first-run UI runtime with current main and the published renderer fixes
Use the tagged pipeline variants and indexed quad expansion from #722 and #682 with the shared shader cache. Retain title-backed index uploads, cross-queue scratch sharing, amd64 console return conventions and the PC/console caller discriminator. The local shader build indexes native containers and includes the executable's embedded stages.
2026-11-24 21:26:25 +08:00
831584b21a Integrate #497 for the Windows first-run UI 2026-11-24 21:10:57 +08:00
6e15812e58 make_game: a probe file there with another size keeps the unsupported-version message (BUILD-2835 review)
A complete copy of another build has every file, with only the probe files at other sizes. That folder
cleared the half threshold and was told to finish a download that is complete. A download that stopped
early leaves files missing, while a probe there with another size (MicrosoftGame.Config above all) means
another package. So partial_version_message() now gives way to the "doesn't look like a supported version"
message, which lists the probe sizes, whenever a probe file is present with another size, even if other
files are missing too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 07:54:45 -05:00
6e673f5c7a make_game: a file whose metadata can't be read is not reported as missing (BUILD-2835 review)
manifest_presence() counted every OSError from os.stat() as a missing file, so a probe that raised
PermissionError could be listed as missing with "Finish the download". As in probe_mismatches(), only
FileNotFoundError and NotADirectoryError now count as missing; any other OSError is listed apart as
"cannot read <name> (<reason>)", with advice to make the file readable. "Incomplete copy" and "Finish the
download" appear only when a file is missing or has another size.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 07:54:45 -05:00
bd9a092a7f make_game: an incomplete copy is named as a partial match of its version, with what is missing (BUILD-2835)
load_version() only looks at the three probe files, so a copy whose download stopped before one of them
was reported as "This doesn't look like a supported version of the game", the same as another game. When
no version matches its probes, the folder is now compared with each manifest by name and size; if it holds
at least half of one version's files with matching sizes, the error names that version, how many files
match, and lists the missing files (with their total size) and the ones with another size. A folder below
half keeps the old message.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 07:54:45 -05:00
609206ecb3 Merge pull request #604 from Headache3318/fix/stage-dep-cache-decoder-tools
make_game: the stage tool lists must name the decoder they run through (STAGE-DEP-CACHE)
2026-11-24 07:47:16 -05:00
cf73e3497a make_game: warn when the runtime stage runs without VULKAN_SDK
preflight checked VULKAN_SDK only for the pipelines stage. On Windows the
runtime stage without it passes preflight and can build a runtime without the
Vulkan D3D12 device, because build_runtime.ps1 requires Vulkan only when the
variable is set. LEONIDA_D3D12=vulkan is then ignored silently.

preflight now logs a warning for that case and leaves the build running, since
a runtime without Vulkan is still valid. Three tests cover an unset and an empty
variable, the variable set, a prebuilt --runtime-build and a non-Windows system.
2026-11-24 14:41:16 +04:00
62a95883b6 build: track native PSO catalog dependencies
Track the catalog writer and its local imports in the shader-stage fingerprint
and CMake fixture dependencies. Cover the same files in both Runtime event
filters, including the optional native scanner reached by the carver.
Check both import graphs and document the standalone catalog refresh for
existing translations.

On Windows x64, touching the writer rebuilt the three bindless fixtures once.
All three passed spirv-val and both Vulkan bindless tests passed on an RTX
5070 Ti with driver 617.42. The semantic suite ran 6,108 tests with no failed
files. The regenerated 25,321-row catalog matched the local reference byte
for byte.

AI-assisted: OpenAI Codex
2026-11-24 18:13:26 +08:00
9e77e974ee Merge remote-tracking branch 'upstream/main' into feat/native-graphics-shader-index 2026-11-24 18:06:59 +08:00
21625bca8c Merge pull request #558 from JiyouProt/codex/shader-index-atomic
Why merged: each rdna2spirv index write now uses its own staging file and cleans it up, so parallel translations can't clobber each other's index; and, after review, the new tools/file_mode.py is registered as a translator input (translator_deps.cmake, make_game.py's translation sources, runtime.yml paths).
Why it's good: re-tested at e4dc13b on main d7576d5 (Windows 11, RTX 4070 SUPER): the new index-write tests go from 2 passed / 10 failed on main to 8 passed; the translator-input tests stay 56/56; the full repo-consistency set is 565 passed / 0 failed; compileall clean. Thanks @JiyouProt for the quick fix.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 04:50:35 -05:00
76b9d170cb make_game: the stage tool lists must name the decoder they run through
Claimed in the coordination issue as: STAGE-DEP-CACHE (#14).

FSPX_TOOLS, LIBRARY_TOOLS and BVH_TOOLS key the shaders, pipeline-library and BVH caches on the bytes of the
programs that produced them, but none of them names the decoder half of the chain: fspx_unpack.py --disasm imports
shader_disasm.py (tools/fspx_unpack.py:205), which decodes through rdna2_decode.py, its tables and mc_command.py. An
edited decoder therefore left the old listings in the cache and got them translated again, so the fix was in the
cache, not on the disk. The library stage also carves with shader_carve.py (tools/shader_library.py:201), which was
not listed either.

tests/test_shader_stage_resume.py gets a case that fails when a module the chain imports is missing from the list,
so the next link added to the chain cannot be left out silently again.

AI-assisted (Hermes agent on behalf of @Headache3318). Tested at base 7430f59b2 on Arch Linux, 8-core x86-64,
python 3.14.9, with the repo's standard-library tests: test_shader_stage_resume, test_bvh_shaders_stage,
test_fspx_shaders_stage and test_make_game_resume all OK; python -m compileall -q make_game.py tools tests exit 0;
git diff --check clean; scripts/check_no_game_data.py make_game.py tests/test_shader_stage_resume.py exit 0. No game
package on this machine, so no corpus count and no shaders-stage resume run against a real work folder; no GPU run.
2026-11-24 04:47:04 -05:00
e4dc13b079 build: declare file_mode in translator dependency lists
Address review of #558: include file_mode.py in CMake shader dependencies,
make_game translation source digests, and both Runtime workflow path filters.
AI-assisted with Codex.
2026-11-24 10:35:33 +01:00
4d64b64d1b translator deps: list rdna2_decode and rdna2_isa_tables
Since #462, tools/rdna2spirv.py imports rdna2_decode, which imports rdna2_isa_tables. Neither module was in the
three lists that track what the translator reads: LEONIDA_TRANSLATOR_DEPS (runtime/cmake/translator_deps.cmake),
TRANSLATION_SOURCES (make_game.py) and the runtime workflow's path filters. So test_cmake_translator_deps,
test_shader_stage_resume and test_runtime_paths fail on main, and an edit to the decoder neither rebuilds the GPU
test shaders, nor reruns translation, nor starts the runtime workflow.
2026-11-24 07:58:02 +01:00
1740e093c9 shaders: index DXBC identities for Xbox native graphics pipelines
Generate a deterministic hash-to-stage catalog alongside the translated shaders. Backfill an existing translation without disassembling it again, reject conflicting identities, and atomically replace a complete catalog.

Adapted from the GPL native stage index by enx, with the Xbox layout measurements by LooperSalty and KkelebekK.

Adapted-from: 5c175db901
2026-11-24 14:25:53 +08:00
2c03f29783 make_game: parse quoted paths with spaces in tool_available 2026-11-24 11:09:18 +05:00
cb09db363a make_game: honor --jobs when verifying package hashes 2026-11-24 13:09:13 +08:00
c07ec72c49 Merge pull request #227 from bhimio1/feat/linux-native-support
Linux: versioned llvm-mc, Build.sh/Mods.sh, case diagnostic, portable runtime tests, docs/linux.md
2026-11-23 22:36:28 -05:00
388f2fcda6 Merge pull request #149 from natterman12/dashboard/d3d-issue-lookup
progress_dashboard: find the D3D12 tracking issue by title, not as #313 (DASH-D3D-ISSUE)
2026-11-23 22:10:18 -05:00
aba2409915 Merge main (84347bbb6): the pipeline-library stage of #19 next to the executable's embedded shaders
make_game.py and tests/test_library_shaders_stage.py are main's (parallel library translation, the shard plan,
verify_fspx_key_clash), with the exe_shaders call kept. shader_library.h still loads the exe folder after
library; shader_library_test keeps one copy of the library case.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HxBQf4pXH8PWpC5oZsM4bt
2026-11-23 21:03:23 -06:00
1a04df0b1b Merge main (9ec34cdff) into the frame-loop boot stack
The stack is ladder-frame (ASTROWwwW's integration of the retail boot pull requests) with the old pull requests
7604, 7286, 7584, 6446, 8591, 7384, 7535, 7448, 9137 and 9419 and local fixes on top. main carries many of those
commits as ancestors without their content, so the merge was made against main's tree, not its history: nothing
main dropped is dropped again here.

Resolved by hand:
- d3d12_xs_device.cpp and frame_pacer.h: the stack's Xbox-ABI layer, plus main's uncapped pacer and its two new
  registration hooks (set_placed_at_va_pages_hook is called before slot 133's handler; the console descriptor
  heap handler is stored but slot 14 still uses the title-backed heaps of old PR 7021).
- xmem.cpp, xmem_test.cpp: the stack's run-mapped physical pages. main's commit-on-touch xmem with the two
  view-protection fixes it lost (7e8e3c1db, 954fcb106) boots to 50,468 pipelines and then fails a submit with an
  unknown resource, so it is not used here yet.
- acphal.cpp, acphal_test.cpp, vulkan_replay.h (acceleration structure copy), README: main's.
- CMakeLists.txt, build_runtime.ps1, d3d12_com.cpp, d3d12_vulkan_device.cpp, shader_library.h, docs: both sides.

Measured (Linux, Wine 11.21 staging, RTX 5070 Ti, driver 615.78.08, clang-cl 22.1.8 + xwin, own 1.0.2.1 copy,
network off, LEONIDA_GRAPHICS_STAGE_LAYOUT=1, 300 s): 50,470 pipeline states created, 197,998 ExecuteCommandLists
with none failed, 148,467 DrawInstanced, 99,008 PresentX.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HxBQf4pXH8PWpC5oZsM4bt
2026-11-23 20:42:04 -06:00
584b2679ae make_game, progress_dashboard: name this repository, not the private original
ensure_submodule() told a user with a ZIP download to
git clone https://github.com/ItsNotRexed/Leonida, which is private since
23 November 2026, and progress_dashboard.py --github read that repository by
default, so its pull-request, CI and coordination panels came back empty.

Both now name ubiquitarianism/leonida, as the README's clone command does.
Two tests tie the hint and DEFAULT_REPO to that README line, so a later move
fails a test instead of a user.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
(cherry picked from commit a837d9a616)
2026-11-23 21:27:53 -05:00
e6ca5cb29e Merge pull request #19 from moffington/contrib/pipeline-library-upstream
Add slot-67 pipeline-library shader build and runtime loading
2026-11-23 21:27:26 -05:00
642880a217 shaders: translate pipeline library in parallel and align clash/doc details 2026-11-23 21:20:34 -05:00
dfd239266f make_game, first_light: a vk_pipeline_check or vk_harness older than its sources is rebuilt or reported, not reused silently 2026-11-24 07:35:50 +05:30
b556acb19a fix(linux): name a version probe file whose name differs only in case
On a case-sensitive file system a package copied with its names changed
in case (microsoftgame.config) was reported as "Missing
MicrosoftGame.Config", with no hint why. The probe now names the
variant it found and says the build opens the package's files by their
exact names. It renames and case-folds nothing; on a case-insensitive
file system the exact name opens and the branch is never reached.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 20:51:04 -05:00
fca3be703c fix(linux): find a versioned llvm-mc and give Linux install hints
Debian and Ubuntu's llvm-<N> packages install llvm-mc only as llvm-mc-<N>
and /usr/lib/llvm-<N>/bin/llvm-mc. With LLVM_MC unset, the build looked
for the plain name alone and stopped with Windows advice
(scripts\build_llvm_mc.ps1, WSL), while tests/conftest.py already found
the versioned install, so the pytest suites passed where make_game.py
failed.

mc_command() now keeps the plain llvm-mc when it is on PATH (the name a
work folder's disassembly record holds) and otherwise takes the newest
versioned install, by version number. install_hint() gives each OS its
own advice; the preflight, shader_disasm.py and not_found() use it, and
the SPIRV-Tools hint names the distribution package off Windows and macOS.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 20:51:04 -05:00
ee2b087b66 shaders: add library_shaders build stage and guard NONE compute states
Add the build-side pipeline-library translation stage to make_game.py on top of the .state emission already merged in tools/shader_library.py, and fix a TypeError when a compute pipeline record has a NONE (0xFFFFFFFF) state index.

- tools/shader_library.py: filter NONE program/state indices when building cs_state so records without a state blob do not crash with TypeError.
- make_game.py: add LIBRARY_ARCHIVE, LIBRARY_TOOLS, library_settings(), and library_shaders() to the shaders() stage (unpacking cs programs with --disasm and --carve, translating via rdna2spirv.py, validating fspx_key_clash against non-dict/unreadable indexes, cleaning stale unpacked artifacts, and writing library_build.json).
- docs/fspx.md, docs/shader_library.md: document library_shaders(), .state emission, and runtime loading of library/index.json.
- tests/test_shader_library.py, tests/test_library_shaders_stage.py: add NONE-state cleanup and shared-code/distinct-state regression tests plus full stage reuse, invalidation, stale-artifact cleanup, clash, malformed-index, and real-tool tests.
2026-11-23 20:38:06 -05:00
d083a2cc37 Make main's tests green: 12 test files that drifted from the code (#9896)
Twelve test files failed on main at 2d53a8055 (CI's check and semantic-tests steps, run locally): most are a test
and the code it checks changed by different pull requests in the same merge round. Each fix below is either taken
from a closed pull request that already had it, or restores what an earlier merged change intended.

From closed pull requests:
- test_make_game_resume: FakeProc gets poll(), which translate() now calls (#7018)
- test_make_game_empty_translation: the Exited stub gets poll() and the failed-shard path is checked (#7214)
- test_shader_checks: stub table_fetch_test in the Wave64Checks harness and count it (#7433)
- test_runtime_paths: runtime.yml's path filter lists tools/replace_retry.py, which rdna2spirv.py imports (#7029)
- test_psin_names: patch the same_report_path helpers that report_paths now calls (#8719)
- test_report_source_collision: the fixture is a real Bink 2 header; bink_index refuses other files (#7408)
- test_missing_input_exit_codes: tile_probe checks its inputs before it asks for numpy (#4771)

Restored:
- merge_check: a failed `git show` is an error again (5b88d58); 21016cf brought back the lenient read that
  treated it as a new file, while new files are already left out when the diff is read
- rpf_probe: a symlinked --out updates its target again (44d3595); 55d21cc's staged write replaced the link

Updated to the code:
- test_shader_stage_resume: TRANSLATION_SOURCES lists fssm_unpack.py and shader_stage_manifest.py, which the
  translator imports; existing work folders translate once more after this
- test_tool_stdout_encoding: the 15 programs merged without the stdout guard get the same block as the others
- test_rdna2spirv_decode: drop the test of decode_any_format, which SHADER-849 replaced with the table decode
  that tests/semantic/test_format_decode_table.py checks

Co-authored-by: jewmaster1337 <102986566+jewmaster1337@users.noreply.github.com>
Co-authored-by: TanmaySatyam <248538550+TanmaySatyam@users.noreply.github.com>
Co-authored-by: evilclanker9000 <45567075+evilclanker9000@users.noreply.github.com>
Co-authored-by: slint6614-dev <359954236+slint6614-dev@users.noreply.github.com>
Co-authored-by: BlackNife <108077267+Poussistar@users.noreply.github.com>
Co-authored-by: fiestorra <65175643+fiestorra@users.noreply.github.com>
Co-authored-by: fearkov <289226582+fearkov@users.noreply.github.com>
Co-authored-by: DoubleD17 <48109637+DoubleD17@users.noreply.github.com>
2026-11-24 00:21:26 +01:00
a2c2ba8788 Merge pull request #4092 from ray3242/devin/1795389450-pipeline-crash-bisect
make_game pipelines: bisect crashes to the module and record its SPIR-V hash (TEST-895)
2026-11-24 00:18:42 +01:00
01cb5dcbce Merge remote-tracking branch 'origin/pr/8998' 2026-11-23 17:40:54 -05:00
254f9df086 Merge PR #9553 2026-11-23 17:07:22 -05:00
b2ed1d22cd Merge PR #9550 2026-11-23 17:07:16 -05:00
cc495ee436 Rebuild an FSPX cache without a compute lookup key 2026-11-24 02:56:33 +05:30
fdc026a35e Accept BOM-marked indexes in the pipeline stage 2026-11-24 02:56:33 +05:30
884acda9a1 make_game: find packaged files at the last discovery level 2026-11-23 22:18:55 +01:00
5a186e9b2e make_game: an empty --game/--out/--work/--runtime-build is a usage error, not 'use the default'
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 20:56:13 +01:00
12a9e7bc33 pipelines: warn instead of raising when the crash report cannot be written 2026-11-23 12:41:18 -06:00
b487b6d8cc Merge branch 'pr7746' into ladder-frame
# Conflicts:
#	make_game.py
#	runtime/src/shader_library.h
#	runtime/test/shader_library_test.cpp
2026-11-23 19:39:53 +01:00
5caef48a19 Merge branch 'pr7111' into ladder-frame
# Conflicts:
#	docs/runtime_imports.md
#	runtime/CMakeLists.txt
2026-11-23 19:38:48 +01:00