Commit Graph

5744 Commits

Author SHA1 Message Date
ce76ba1750 gpu-test-results: RTX 3050 6GB Laptop (Ampere, NVIDIA 621.24, Windows 11) on main 8f481cf (GPU-RTX3050-LAPTOP)
run_gpu_tests.py 197/248 native and 229/248 with LEONIDA_W64_EMULATE=1; the
two tfe fixtures fail as on the other NVIDIA and Intel records and pass with
#291. Indexed in docs/gpu_test_results.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 23:01:49 -08:00
0163aa3251 Merge pull request #467 from EdenBendheim/ubiq/opus-tags-duplicate-headers
Why merged: repeated tagging columns in either CSV are refused (exit 2) before any Ogg file is modified, and the docs say so.
Why it's good: security-reviewed; tested on Windows 11 merged onto main c023a36: 3 new tests (11 subtest failures on main), all passing on the merge. The one remaining failure, test_cli_reports_incomplete_directory_discovery (a Windows path repr), fails the same way on main.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 01:58:29 -05:00
4ed6229e73 Merge remote-tracking branch 'origin/main' into fix/windows-present-window-pump 2026-11-24 14:53:19 +08:00
63250e6c6a Merge pull request #378 from lines9686-rgb/build-refuse-percent-path
Why merged: the build scripts now refuse a checkout or -Temp folder whose path contains '%' up front, instead of failing later in confusing ways; the reviewer nit (a relative -Temp) was fixed in 2a4f650.
Why it's good: security-reviewed (only path guards and a test: no URLs, downloads, elevation or policy changes). Tested on Windows 11 (RTX 4070 SUPER) merged onto main 8f481cf: build_llvm_mc/build_runtime tests 14 passed on main -> 17 passed with this PR; compileall clean; in Windows PowerShell 5.1 a path with '%' and '-Temp a%b' are refused while normal paths pass the guard. The earlier CI failures (macos/linux-gpu-tools MoltenVK shader tests) are unrelated to these scripts.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 01:32:15 -05: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
d743662615 docs: document the presentation slot routes and their env variables
LEONIDA_XS_FRAME_STATISTICS_SLOT, LEONIDA_XS_PRESENT_X_SLOT,
LEONIDA_XS_SUSPEND_X_SLOT and LEONIDA_XS_RESUME_X_SLOT were read by the code
and named in no document (tests/test_docs_env_vars.py failed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 03:12:53 -03:00
a02134a9c6 lifecycle: hook only the title window, end through ExitProcess, fix unregister race
- Only the title's first top-level window (no parent, not WS_CHILD, not
  WS_EX_TOOLWINDOW) is fitted to the work area and gets the SC_CLOSE hook;
  WM_NCDESTROY releases the claim. Other windows the title creates are left
  alone instead of ending the process on close.
- The suspend thread and the 1 s deadline end the run through the title's own
  ExitProcess shim (process.cpp end_run), so the host finishes its cleanup,
  instead of TerminateProcess.
- Suspend callbacks run under the (now recursive) registration lock and each
  id is looked up again before its call, so a routine never runs after
  UnregisterAppStateChangeNotification returned, and an unregister from inside
  a callback works.
- docs/runtime_imports.md: speech, XLauncher and XAppCapture text matches the
  code; new lifecycle shim paragraph.
- lifecycle_test: unregister-from-callback and title-window claim checks.

AI-assisted. Tested: lifecycle_test (29 checks), xgameruntime_offline_test
(69 checks), docs and gdk_runtime_calls pytest; clang 23 / mingw x64.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 03:00:33 -03:00
84faf73466 gpu-test-results: RTX 4060 Ti (Ada, NVIDIA 610.88, Windows 11) on main 8f481cf (GPU-RTX4060TI)
run_gpu_tests.py on main 8f481cf16: 257/257 translated and spirv-val clean;
197/248 passed, 49 skipped natively and 229/248 passed, 17 skipped with
LEONIDA_W64_EMULATE=1. The two failures are the tfe fixtures of #31 in both
modes. Same checkout: ctest 302/303 (d3d12_execute_indirect_validation, fixed
by #337 on this host) and the translator suite with one Windows-path LLVM_MC
failure that #419 fixes.

AI-assisted. No game files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 23:49:31 -06:00
d85e326eb7 opus_tags: reject duplicate CSV headers used for tagging 2026-11-24 00:46:14 -05:00
d7cdfcf255 ws2_offline: per-socket extension pointers, refuse name-service lookups, close connect-by-name and octal bypasses, cover wsock32
Review fixes for #357:
- ConnectEx / WSASendMsg wrappers ask the host for the pointer of the socket they run on, instead of one
  process-wide pointer that the last WSAIoctl on any provider overwrote.
- WSALookupServiceBeginA/W fail with WSASERVICE_NOT_FOUND.
- WSAConnectByNameA/W hand the host the literal 127.0.0.1 for "localhost", so the hosts file is never read.
- A dotted octet with a leading zero (0127.0.0.1) is refused: Windows reads it as octal.
- wsock32.dll maps bind/connect/sendto/gethostby*/WSAAsyncGetHostBy* (names and ordinals) to the same wrappers and
  stays host-owned in owns_dll, like ws2_32.dll.
- docs/runtime_imports.md no longer says a --run can open real sockets; it names the dnsapi.dll gap.

Tested: ws2_offline_test built with clang 23 (msys2 clang64) on Windows: 52 checks, 0 failures. MSVC build not
available locally; CI covers it. tests/test_docs_*.py, test_text_write_line_endings.py, test_runtime_paths.py pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 02:42:07 -03:00
45c99d977c boot_trace: show XMem physical page requests 2026-11-24 00:37:54 -05:00
7f7a596856 Merge remote-tracking branch 'ubiq/main' into feat/ws2-offline-shim
# Conflicts:
#	scripts/build_runtime.ps1
2026-11-24 02:34:35 -03:00
77f44fbe3b xg_xs: lay out console textures and serve the texture computer (RT-XG-TEXTURE-COMPUTER)
XGSuggestSwizzleMode and every texture-computer slot returned E_NOTIMPL, so the
title's texture layout and copy calls did nothing. They now run on a model of
the GFX10 texture layouts (runtime/src/console_texture_layout.h, AMD addrlib's
rules for the linear, 256 B, 4 KiB and 64 KiB modes): the suggested mode, the
layout structure (slot 2), element offsets (slot 6), copies into and out of a
subresource (slots 8 and 9) and the 64 KiB tiling (slot 10).

A description the model cannot lay out still gets a computer in *out (with
E_INVALIDARG), as before, because two measured callers use *out without
checking the HRESULT. Not modelled: compression metadata planes and the XOR
and MSAA modes' addressing (E_NOTIMPL).

The layout model, the computer's method table and the layout structure are
ported from Marvisak/VIctory (GPL-3.0), crates/victory-formats/src/texture.rs
and crates/victory-hle/src/modules/xg.rs at d2a4bae1f, credited in the files;
the addrlib notice is kept. xg_xs_test now checks the model (hand-checked
addresses, mip tails, a two-plane depth-stencil, a bijection and round trip
over every element of ten layouts) and the shim's slots: 106 checks, MSVC /W4.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 06:32:30 +01:00
929ec5f255 docs: link GPU test results from the documentation index 2026-11-23 21:18:03 -08:00
49c81019c7 exe_sha: one command that says whether your copy is the file the notes were written against
Contributors run the tools in `tools/` against their own copy of the game, and nothing checks that the copies are the
same file. A truncated or patched image still reports as "Executable found", and every RVA a note quotes is quietly
measured on something else (#8041).

`tools/exe_sha.py` prints the size and SHA-256 of the image it is given and compares them with the numbers the package
manifest records (`expected_exe_size`, `expected_exe_sha256`, both optional, read from the `game/*.json` whose
`expected_exe` names the file), or with `--expect SHA256` when a hash is quoted directly. It exits 1 on a mismatch and
0 when the numbers match or nothing is recorded, checks the size before hashing so a truncated 120 MB copy is reported
without reading it all, and `--print-keys` emits the two manifest lines for the file in hand. `--json` gives a script
the same numbers. `docs/design.md`'s "Day one" list now starts with it.

Measured on the retail Xbox 1.0.2.1 package: 120,181,760 bytes and sha256 e95020b2fa4a721db3df59fdecf75621730ac559d8835252f6c3b658d5a08993, the same pair #7123 records for the build preflight; that PR and this one are
the two halves of #8041.

Tests: `python -I tests/test_exe_sha.py` 11 OK (match, wrong hash, wrong size, manifest without the keys, `--expect`
both ways, a non-hash `--expect`, `--json`, `--print-keys`, a missing file, and the repository's own manifest).
`tests/test_docs_cli_flags.py` and `tests/test_docs_links.py` each have one failure that is already on `main`
(`docs/embedded_shaders.md`'s pass flags, `docs/dev-tools.md`'s `../runtime/README` link); the lists are identical
before and after this change. No game files or game-derived bytes in the diff.

AI-assisted.
2026-11-23 23:17:22 -06:00
31e2ad84c1 docs: distinguish native GameInput host failures (DOC-GAMEINPUT-HOST-DIAG) 2026-11-24 16:17:08 +11:00
abb68a9ab2 rdna2spirv: treat VOP3P v_dot2_f32_f16 clamp as hardware no-op (SHADER-DOT2-F32-F16-CLAMP) 2026-11-24 12:46:40 +08:00
6d4cf2ceb7 d3d12_xs: slot 61 is CreateSamplerX only for the title's calls; a host caller gets PC CreateMetaCommand
The proxy also serves host callers: d3d12_vulkan_device_test drives the Vulkan device through it,
and its ID3D12Device5::CreateMetaCommand call (PC slot 61) landed in proxy_create_sampler_x
(found by nullmarsh on #7115: the test stopped at line 5763 instead of main's known line 6574).

Slot 61 now checks the caller's return address with a classifier the runtime installs
(set_console_caller, the name #7490 uses): D3D12XboxCreateDevice installs
rt::shims::mapped_image_base, so only a caller in an image the guest loader mapped gets
CreateSamplerX. Any other caller, and every caller when no classifier is installed, is forwarded
to the PC slot 61.

xs_proxy_mock_test checks all three cases: no classifier (PC slot 61), a guest caller (PC
CreateSampler with the same words; a null description skipped) and a host caller under an
installed classifier (PC slot 61). d3d12_vulkan_device_test again stops at line 6574, as on main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 8f756ebe048af042638ce51a61490f35f4f44ee3)
(cherry picked from commit c915e1da45)
2026-11-23 22:14:29 -06:00
f54cf315b4 d3d12_xs: Xbox device slot 61 is CreateSamplerX, routed to the PC CreateSampler
The retail title calls device slot 61 as CreateSamplerX(desc, dest handle), once
per sampler, after its descriptor heaps exist (stop 20 of the RT-5 boot
measurements in the coordination issue). The generic thunk forwarded it to the
PC slot 61, which is CreateMetaCommand, so the sampler was never written.

Slot 61 now has its own handler, like 62 and 67. It passes the description's
PC D3D12_SAMPLER_DESC prefix and the handle to the PC CreateSampler (slot 22).
That was enough to get the title past this call under Wine. Whatever follows
the prefix in the console description is not known and is not read. A null
description is skipped and logged once. A handle in the title's own heap range
is #7021's translation.

xs_proxy_mock_test: slot 61 reaches the mock's slot 22 with the same two words
and never its slot 61; a null description reaches nothing. With main's
d3d12_xs_device.cpp the new check fails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit e22994464b)
2026-11-23 22:14:29 -06:00
20936e8453 d3d12_xs: a console indirect argument of type 105 is created as DISPATCH (slot 41)
The retail title creates five one-argument command signatures with no root
signature at startup (device slot 41, CreateCommandSignature at its PC
position). One has the console argument type 105 and a 12-byte stride, next
to a DISPATCH and a DISPATCH_MESH of 12 bytes. The PC layer refuses the
unknown type, which is stop 19 of the RT-5 boot measurements.

Read statically from the title's call sites (shapes only): the two
ExecuteIndirect sites of that signature pass MaxCommandCount 1 and an offset
into the same argument buffer as the DISPATCH sites. Right before, they set
the same compute state as the DISPATCH path (pipeline, compute root signature,
tables, constants, SRV and UAV); they record on a second command list of the
title's context. So the argument is taken as a D3D12_DISPATCH_ARGUMENTS.

Slot 41 now has its own handler. A description that holds type 105 is copied
with that type replaced by DISPATCH (logged once). Any other description is
forwarded as the same pointer. What the console does differently for type 105
is left open in docs/d3d12_vulkan.md (section 4.9).

xs_proxy_mock_test: a two-argument description (a root constant, then type
105) reaches the PC slot 41 as a copy with DISPATCH, the same stride, count,
root signature, IID and output, and the caller's description is untouched; a
PC description is passed through unchanged. With main's d3d12_xs_device.cpp
the new check fails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 4c04c0f4e3)
2026-11-23 22:14:29 -06:00
35e687f2ac d3d12_xs: committed resources lease their size through the title's XMem hooks (RT-5 stop 17)
On the console a committed resource's memory is allocated with XMemAlloc, so it goes
through the title's __XMemAllocationHooks__. The retail title budgets its first
full-screen render targets with a per-thread hook that bump-allocates out of a range it
reserved and asserts that less than 2 MiB is left; PC resources never allocated through
the hooks, so the assert always fired. Slots 76 and 127 now allocate the slot-25 size of
each resource through the hooks, held by the resource with SetPrivateDataInterface and
freed when it is destroyed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit ae322dafc5)

Adapted to main by Mumogg: the lease size is the later form of this series (d61755d4d, a render target's console
tile size, else the PC size), since console_render_target_extra is gone after 359390833.
2026-11-23 22:14:29 -06:00
f1a68eeffb d3d12_xs: console render target sizes follow each resource's alignment, slot 56 offsets, full mip chains, rounded-up mip extents, B5G5R5A1, saturating sums
(cherry picked from commit 359390833f)
2026-11-23 22:14:29 -06:00
584ef36fa8 d3d12_xs: device slot 25 gives the PC device clean resource descriptions (RT-5 stop 16)
The title's descriptions carry the Xbox layout word and flag bits above the PC ones. Slot 25 now passes a copy with PC flags and a PC layout; the title's array is not written. Depends on #7078.

(cherry picked from commit c7ca0f2d1c)
2026-11-23 22:14:29 -06:00
856334399d d3d12_xs: device slot 25 pads a render target to whole console tiles (RT-5 stop 17)
The retail title asserts when its first full-screen render targets leave more than 2 MiB of a fixed budget unused (docs/retail_boot_chain.md, #6982). The PC size is about width x height x element bytes; the console takes whole RDNA2 SW_64KB tiles. Slot 25 adds the difference per render target description and never lowers a size. Depends on #6973.

(cherry picked from commit 8897855399)
2026-11-23 22:14:29 -06:00
5dbd92b92d build scripts: refuse a folder with % in its path up front
cmd.exe expands %...% on every line of the generated _build.cmd (twice on a CALL line), and cl.exe rejects a % in the
path-valued /D definitions of the runtime's test targets (D8038) however it is quoted, so a checkout with % in its path
failed in configure, or a few hundred Ninja steps in once the batch was escaped (@ezbyDev's measurements in the original repository).
build_runtime.ps1 now stops before looking for Visual Studio when the checkout path has a %, and build_llvm_mc.ps1 when
-Temp has one, each naming the folder; docs/testing.md gets a Known-problems row. tests/test_build_percent_path.py runs
both scripts with such a path, with git, python and vswhere hidden so that a missing check can't start a real build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 07:09:02 +03:00
9a12e5ae6f boot.md: first-boot runbook fixes; boot_trace marks relocated modules in its text report
- Where gta6rt.exe is: runtime\build with build_runtime.ps1 (Ninja), runtime\build\RelWithDebInfo with the
  direct CMake (Visual Studio generator) path.
- Without LEONIDA_D3D12=vulkan the trace is not empty: the Xbox-ABI proxy still records device creation, queue,
  fence and allocator calls. Say so, and to check the log for "[rt] d3d12: Vulkan device:".
- The runtime writes no "partial" outcome yet (ExecuteCommandLists records ok or failed); only the tool knows it.
- --overlay: the default is already <game-dir>\overlay; the package is never written.
- d3d12_vulkan.md 8.2 no longer repeats questions 16, 19 and 20.
- Triage step 1 asks whether the executable is at its preferred base, but the text report printed module names
  only; it now marks a relocated module.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 07:05:44 +03:00
91575fda3a d3d12_xs: device slots 25/26 take the title's C-ABI struct return
The retail executable calls GetCustomHeapProperties (device slot 26) with the
C convention: the hidden return buffer in RCX and the device in RDX. The
proxy's generic forwarder assumed the PC C++ form (this in RCX, buffer in
RDX), took the buffer for the device and crashed on its vtable right after
D3D12XboxCreateDevice.

Slots 25 (GetResourceAllocationInfo, same rule, inferred) and 26 (measured)
now get thunks that accept either form: whichever of the first two arguments
is the device proxy is `this`. The runtime's own code still calls the proxy
through d3d12.h in the PC form. device_proxy_test calls both slots in both
forms against WARP.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 5dbc30bed7)

Adapted to main by Mumogg: slot 26 keeps the thunk it already has (86b8e04e4), so of this commit's two thunks
only slot 25's is installed.
2026-11-23 21:54:29 -06:00
9b59db02f9 ws2_offline: add offline loopback-only Winsock2 (ws2_32.dll) shim (RT-WS2-OFFLINE) 2026-11-24 00:53:14 -03:00
9e6f8ae133 d3d12_xs: device slot 48 creates a command queue proxy from the 32-byte Xbox description
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 0cde63d618)

Adapted to main by Mumogg: main already routes slot 48 through its Xbox slot table (LEONIDA_XS_QUEUE_X_SLOT),
so the route now calls proxy_create_command_queue_xbox instead of a fixed slot 48 branch, and xs_proxy_mock's
check_xbox_slots and the environment case pass the console's 32-byte description.
2026-11-23 21:48:33 -06:00
c4954581ae d3d12_xs: device slot 26 takes the console's struct-return form
The retail executable calls GetCustomHeapProperties with the return buffer in RCX and the device in RDX. The forwarder took RCX for the proxy and faulted.

AI-assisted.

(cherry picked from commit 86b8e04e4c)
2026-11-23 21:46:43 -06:00
b344b8aea8 gpu results: record RTX 3080 Ti 616.92 subset in both wave modes (GPU-3080TI-61692) 2026-11-24 04:43:45 +01: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
fabe844cd8 Merge pull request #131 from Mumogg/restore-directstorage
runtime: restore the console DirectStorage shim, with the typed-error inflate it needs (RT-DSTORAGE-RESTORE, #47)
2026-11-23 22:36:12 -05:00
268389e20d Merge pull request #263 from kotekompotek/contribution/wave64-emulate-barrier-sync
rdna2spirv: wire Wave64 emulate barrier/sync optimization pass
2026-11-23 22:28:16 -05:00
98ac9ea777 docs: propose a change gate for module boundaries, function complexity and doubled text
One new page, docs/change_gate.md: a proposal for the maintainer's
decision, with measurements at dde82f2 (in this repository's history)
and a backtest on the 300 merges that end with it. No code changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 10:25:57 +07:00
6446e3ce76 rdna2spirv: translate v_sat_pk_u8_i16 (SHADER-SATPK-U8)
The VOP1/VOP3 op saturates each signed i16 half of SRC0 to unsigned
8-bit and packs the pair into the low 16 bits of VDST, preserving the
high half (GFX9+ partial write; LLVM VOP1Inst_t16, Mesa ACO
instr_is_16bit). Neg/abs/clamp/omod are refused; _sdwa restricts to the
documented source/destination selects; _e32 rejects all modifiers.

Adds a hand-written fixture and a semantic test driving the SPIR-V
through spirv_mini_interp against a plain-Python reference (lane edge
values, SGPR/literal sources, sdwa selects, refused modifiers), the
docs/design.md contract row, and drops the op from the
fssm_crosscheck unhandled list. The two tests that used the mnemonic
as the still-unsupported canary now use v_mullit_f32.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-23 20:21:17 -07:00
1c7f5b5106 Merge pull request #246 from Mouad-Scriptz-0/gpu-results/intel-mtl
GPU results: Intel Meteor Lake graphics (ANV, Mesa 26.2.7) on main 84347bb (GPU-INTEL-MTL)
2026-11-23 22:10:26 -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
9674d530a0 Merge pull request #56 from natterman12/docs/contributor-links-current-repo
docs: contributor guidance points at this repository, not the private original (DOC-REPO-LINKS)
2026-11-23 22:09:48 -05:00
e496300e10 Merge pull request #44 from Mby159/docs/cube-store-contract
docs/design.md: the cube storage image contract (DOC-CUBE-STORE)
2026-11-23 22:09:44 -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
afef4770a9 docs/gpu_test_results: record Intel Meteor Lake graphics (ANV, Mesa 26.2.7) on main (GPU-INTEL-MTL)
The first Intel entry in gpu-test-results/: Xe-LPG, subgroup 8..32, no
64-wide subgroup. On main 84347bbb6: build.py 279/279 translated and
valid; check.py 177/219, 40 skipped; run_gpu_tests.py 194/248 native
(52 skipped) and 226/248 with LEONIDA_W64_EMULATE=1 (20 skipped), where
all 32 tests that need 64 lanes run and pass.

The only failures, in every run, are cs_imgload_tfe and
cs_imgload_d16_tfe (#31), with the 780M's words; both pass with #98
applied to the same main. The seven TEST-399 texture fixtures, recorded
as crashing on Mesa 26.2.7 on Iris Xe, pass with Fedora's 26.2.7 here.
2026-11-24 02:52:08 +00: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
84347bbb61 Merge pull request #24 from ddddddddwp/fix/shader-1264-exec-computed
rdna2spirv: a computed value written to EXEC sets the lanes of its bits (SHADER-1264)
2026-11-23 21:37:41 -05:00
6883da46ba progress_dashboard: find the D3D12 tracking issue by title, not as #313
--github read the D3D- table with `gh issue view 313`. That number was the
tracking issue of the repository the project started in. Here no such
issue exists, so the D3D12 panel was empty without a word, and once this
repository reaches that number the tool would read an unrelated item.

The issue is now the open one whose title starts with "D3D12 → Vulkan
layer" (looked up like the coordination issue), or the one --d3d-issue N
names. When there is none, or it cannot be read, the sources list says so
(github_d3d12: missing / invalid) and no other issue is read.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 21:28:55 -05: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
2d7be48dec runtime: restore the console DirectStorage shim (DStorageGetFactory) on main
The merge that brought the mirrored pull requests into main (6dece9231) left the DirectStorage shim out, noting
that it "needs the typed-error zlib inflate". The shim's commits (f87d05fdd, ac1843da2, 00551ba00, by
mariuslozo-boop and Kelebek) are ancestors of main, but its files are not in the tree, so the retail
executable's XCRDAPI.dll!DStorageGetFactory import is unimplemented (issue #47, stop 5 of
docs/retail_boot_chain.md).

- shims/dstorage.cpp, shims/dstorage_xs_abi.h, test/dstorage_test.cpp and docs/directstorage.md are back as
  those commits left them.
- leonida::zlib_inflate reports why it failed through an optional ZlibError* (header, data, checksum, limit),
  which the shim turns into its E_DSTORAGE_ZLIB_* codes. This is the same interface the shim was written
  against, added to main's current table-driven inflater; callers that pass no pointer behave as before.
- registry.cpp classes xcrdapi.dll!DStorageGetFactory as an HRESULT import, the retail spelling #47 found
  missing.
- CMake and scripts/build_runtime.ps1 build the shim into gta6rt, and CMake builds and registers dstorage_test.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HxBQf4pXH8PWpC5oZsM4bt
2026-11-23 20:23:21 -06:00
642880a217 shaders: translate pipeline library in parallel and align clash/doc details 2026-11-23 21:20:34 -05:00
bbfacade3e docs: contributor guidance points at this repository, not the private original
CONTRIBUTING.md, AGENTS.md, the French contributing page and the issue
template's build link sent contributors to ItsNotRexed/Leonida, which went
private on 23 November 2026: the claims search, the gh command an agent is
told to run, #166 and #313 all led nowhere.

They now use ubiquitarianism/leonida, say that older #N numbers are from the
original tracker, and name what replaces them here (#18, #17,
gpu-test-results/, docs/d3d12_vulkan.md). Adds the done: line and the main
target from the coordination issue.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 21:08:34 -05:00