- UNKNOWN: no status comes from git failing to say what changed; a unit-test
file is UNKNOWN when every case in it skipped (collect_unit), CTest and
JUnit rows when skipped.
- Only the CTest log and CTest-flavoured JUnit reports are age-checked;
a pytest report is always current (collect_ctest, is_ctest).
- The trend chart draws the first eight metric IDs only (trend() in
progress_dashboard.html), alphabetical in the snapshot JSON, so with every
source the three test metrics are not drawn.
- --github reads the coordination issue's section sizes on every run, not
only with --login; --login lists the account's 50 latest pull requests.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An enhanced barrier's D3D12_BARRIER_SYNC_COPY mapped to VK_PIPELINE_STAGE_2_COPY_BIT only. Two D3D12
copy-scope commands are not Vulkan copies: WriteBufferImmediate is recorded as vkCmdUpdateBuffer and
ResolveQueryData's never-written queries as vkCmdFillBuffer, and synchronization2 runs both in the CLEAR
stage. A SYNC_COPY barrier after either therefore did not order it, and a copy after the barrier could read
the word before the write landed.
vulkan_sync now maps SYNC_COPY to COPY | CLEAR. vk_command_replay_test part K records WriteBufferImmediate,
a SYNC_COPY -> SYNC_COPY buffer barrier and a CopyBufferRegion of the written word; under
LEONIDA_VK_VALIDATION=1 it is a read-after-write hazard without this change. d3d12_state_map_test and
docs/d3d12_vulkan.md follow the new mapping.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/related_projects.md carried the 6stars entry twice, a merge
leftover. Merge the two into one entry in the file's usual layout,
keeping every fact from both: the CEntityDef/PRD0/navmesh
corroboration, the hypotheses, the rpf.md/world.md re-measurement,
the navmesh labels that did not reproduce and the +4 packing.
No other change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
offsetToParents = 0x40 - (((offsetToNodes - offsetToElements) / 16) & ~127),
so the first box node's entry lands in [0x40, 0xc0); one entry per box unit
follows, and offsetToElements is their end rounded up to 128. The bytes
from 0x40 to offsetToElements are zero. Holds on all 272,874 streams of
core_bvh4.rpf and shared_minigame000_bvh4.rpf (272,858 box roots for the
extent); counts only.
totalSizeIn64BNodes + 1 also counts the level table's units, which have no
entry: that is why the header-only end missed on about 13,400 streams.
tools/bvh_packing_check.py checks the three rules (parent_offset,
parent_area_nonzero, parent_extent); the synthetic fixture moves to the
console layout for its four leaves and three BOX16 units.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Build on the public frame-loop integration in #321. Carry the texture-view and depth work from #213 and #261, the layout provider from #461, the responsive window from #526, and the rectangle generator from #682. Integrate the Xbox constant-buffer row addressing measured in #513 and the draw-time rectangle selection in #722. Keep all fixtures synthetic.
The Windows GPU path resolves title-owned shader objects, retires geometry uploads per submission, materializes texture views on use, maps linear surfaces, and delivers completed GPU label writes. A first-run UI launch selects the tested settings for these paths.
BUILD-1368 asked to index two name streams, a `nameTable` of 64-byte
records and a `nameData` of ASCII strings. Measured over all 57 pools,
neither exists: every byte of a pool is header, chunk table, ETPF
descriptors, u64 asset keys, trailing metadata that reads as uniform
random bytes, zero padding or texture data, and the virtual space has
no range left for another stream. The names do not occur in the pools
or in the inflated streams of common.rpf, script.rpf and data.rpf
either. Counts only; the trailing bytes stay unread.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Under Wine the retail boot stops at GameInput.dll ordinal 1 (GameInputCreate)
right after stop 4: without the SDL3-built GameInput shim and its #1 alias, the
import binds to Wine's builtin stub. Measured by hcristosm in the old
coordination issue. Added as row 4a so the Windows stops keep their numbers.
Restored from old upstream PR 7383 and updated for #127, which merged the #1
alias (old upstream PR 7216's change): the "what clears it" cell now names #127
and says which builds still stop here (no SDL3, LEONIDA_SDL3=OFF, the cl.exe
fallback), and the link into the old repository is replaced by the measurer's
name and #127's Wine 11.21 reproduction.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Select the geometry-stage variant when the input assembler requests an Xbox rectangle and cache it alongside the attachment-format variants. Keep a shared snapshot of the linked vertex program for that draw. Exercise alternating rectangle and triangle draws through the same PSO and compare the complete target after each switch.
Meta.ref took the block number from bits 0..11 and refused any value with
bits 12-19 set as a pool reference, so a pointer to block 4,096 or above
fell through to the system-pointer path. Those bits are the high bits of the
20-bit block number. The guard did not screen system pointers either: with
fewer than 4,096 blocks, a value with bits 12-19 set has a 20-bit block number
above the block count, so it still reaches the system-pointer path.
Over levels.rpf (188,449 0x7a resources, 8,576 with lights) the summary is
byte-identical with the old and the new decoder.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A 0DRP/PSIN pool pointer keeps the 1-based block number in its low 20 bits
and the byte offset above (docs/psin.md, docs/ped_catalogues.md, psin_data).
instance_lists and world_interior_names masked 12 bits, as docs/world.md
said, so a block number of 4,096 or more would have been read as a wrong block.
world_index.split_pointer is now the one decoder for the three tools, and
docs/world.md gives the 20-bit form. Over the 0x7a resources of levels.rpf,
story000.rpf, shared_minigame000.rpf and packs.rpf (232,846), the most blocks
one has is 1,760, and every non-null 0x52 array and 0x42 string pointer has
bits 12-19 at zero, so the counts the tools report don't change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Where the device has the meshShaderQueries feature of VK_EXT_mesh_shader, the number of
primitives the mesh shader emitted comes from a VK_QUERY_TYPE_MESH_PRIMITIVES_GENERATED_EXT
query run around each mesh segment, and it is added as the clipping invocations of that
segment. CPrimitives stays 0: Vulkan has no clipped-primitive counter, and D3D12's
CPrimitives is the clipper's output.
Claim: D3D-MESH-CLIPPING-COUNTER
Depends on: #540
Closes the gaps from the security review on #357:
- sendto, WSASendTo, WSASendMsg (both exports) and WSAJoinLeaf on an
unbound socket made the host bind it to the wildcard address
(Microsoft's sendto remarks), so its port took datagrams from other
hosts. The shim now binds such a socket to 127.0.0.1, ::1 or
::ffff:127.0.0.1 first and fails with WSAEADDRNOTAVAIL if it stays
unbound.
- setsockopt (ws2_32 name and #21) refuses IP_ADD_MEMBERSHIP,
IP_ADD_SOURCE_MEMBERSHIP, IPV6_ADD_MEMBERSHIP, MCAST_JOIN_GROUP and
MCAST_JOIN_SOURCE_GROUP with WSAEADDRNOTAVAIL. wsock32's setsockopt is
its own export (dumpbin on Windows 10 22H2: not a forwarder) that remaps
the Winsock 1.1 IP_ numbers (Wine dlls/wsock32/socket.c has the same
table), so it gets its own wrapper that also refuses the 1.1 join (5)
and forwards everything else to the host wsock32.
- WSAJoinLeaf gets connect's loopback check, so a group is refused.
Tested: ws2_offline_test 71 checks, 0 failures, MSVC 14.44 / SDK
10.0.26100 on Windows 10, including a control check that the host sendto
alone binds to 0.0.0.0; docs tests 47 passed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BatSmacker84 on old upstream PR 7998:
- The summary line now separates indirect vtable calls, indirect vtable tail jumps, and sites
through a verified dispatch routine. The JSON gains calls, tail_jumps and dispatch_sites. On the
1.0.2.1 executable: 95 sites = 94 calls + 1 tail jump (slot 2), 0 through a dispatch routine.
- "lists every" and "lower bound" are gone from the docstring, the help text and §5. The tool reports
the statically resolved sites for the device paths it follows; a slot without a row isn't shown
to be uncalled.
tupacfan04's secondary points from the review of the dispatch-routine commit, still open until now:
- A creator out-pointer in an object member was labelled "memory slot", yet it was dropped at the
next call. It is now "object member (followed until the next call)"; a stack slot is "stack slot".
- The no-.pdata window walk is tested, and it now goes on past a ret while a forward branch target
is still ahead.
- Conditional branches have tests: the device carried past an early return, and a join where only
one path holds the device.
Census unchanged: 95 sites across 42 slots, 12 not resolved. 15 tests pass.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every E9 was a tail call, including the `jmp rel32` MSVC emits for a long branch inside a function.
With the device in an argument register, such a jump counted as the device passed to another call,
it cleared the state, and it ended a window walk early (YordiLorenzo, pr-sorter). Slot 14 dropped out
of the fixture with pr-sorter's patch.
The walk now follows forward branches. A `jmp` (E9 or EB) or a conditional branch to a later
address in the walked range carries the known state to its target. There it is met with the
fall-through's state, keeping a fact only when both paths agree (vtable loads from either path are
merged). Past a `ret` or unconditional jump, the carried state replaces it. A jump back into the range
(a loop) carries nothing and isn't a tail call. Only a `jmp` out of the range is a tail call.
pr-sorter's repro is a test, together with the short form and a backward jump.
Census on the 1.0.2.1 executable: 83 -> 95 sites, still 42 slots, with no site or slot lost. 12 more
sites are behind a conditional branch around an early return: slot 17 (+5), slot 24 (+5), slot 133
(+2). Not resolved stays at 12: vtable loads with no matched call 2 -> 1, calls handed the device
9 -> 10, stores 1.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From the two independent checks on old upstream PR 7998:
- The tool reads the executable only, so a slot called only from a bundled DLL is absent. Slot 76 is
the example: docs/d3d12_vulkan.md records the FidelityFX upscaler DLL calling it, so its absence
is not "unused by the title" (TheAirborneCoder).
- A credited table of TreXito's independent static read for slots 49, 50, 55, 57 and 81, with
matching site counts. These are their reads, not the tool's.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A direct call with a method pointer left in rax was counted as that slot whatever the call reached,
so a helper that only returns made a slot appear (shdann's repro on old upstream PR 7998). The target, or for
`call [rip+p]` the code the file's pointer p holds, must now reach `jmp rax` or `call rax` within 16
instructions without writing rax, calling or returning first (conditional branches allowed): the CFG
no-op dispatch and a guard check that ends in `jmp rax`. Verified targets are cached. Any other
target goes to a new "dispatch calls to unverified targets" count, never a slot.
The fixture's GUARD pointer now holds a `jmp rax` stub; new functions call a guard-check stub (slot
counted) and a helper that only returns (not counted, reported as not resolved), and shdann's patch
is a test. The census on the 1.0.2.1 executable is unchanged: all 83 sites are `call [vtable+disp]`.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tools/d3d12_device_calls.py follows D3D12XboxCreateDevice's (or D3D12CreateDevice's) out-pointer to
the globals and stack slots that hold the device, and counts per vtable slot the `mov v,[device]` then
`call [v+disp]` / `call reg` / dispatch-with-rax sites, with the register that holds the device (rcx,
or rdx for the console's return-buffer form) and an argument-count estimate. What it can't follow
(vtable loads with no matched call, the device handed to other functions or stored to non-stack
memory, creator out-pointers it can't follow) is counted, not guessed. Slots 0-43 carry the PC
method names; past 43 only the slots the repository has measured are named.
The text report holds slot numbers and counts only; --out is required. Tested on a hand-built PE
(tests/test_d3d12_device_calls.py); docs/retail_boot_chain.md §5 has the method and its limits.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Restores old upstream PR 9215 in ItsNotRexed/Leonida (closed unmerged when that repository went private), ported
onto the current main: the write-open keeps main's long-path disk_path() for its overlay path, and the new race test
sits after main's tests that recreate a removed package folder.
A GAME: write-open checked that its folder exists, mirrored it into the overlay and then opened the file, and
RemoveDirectory checked that the folder was empty and wrote its marker, neither under a lock. A remove that ran
between the open's check and its host CreateFile succeeded on an empty folder, and the open then made the folder
and the file again: both calls succeeded and the removed folder was back. CreateDirectory of a folder inside it had
the same gap. On Windows one of the two fails: the create with ERROR_PATH_NOT_FOUND or the remove with
ERROR_DIR_NOT_EMPTY.
A striped lock keyed by the folder's upper-cased name (64 namespace-scope std::mutex, no function-local static):
write_target holds the lock of the folder it opens in from the parent check until the Target is gone, after the
host CreateFile/CreateFile2; CreateDirectory holds the parent's from its check to the host call; RemoveDirectory
holds the folder's from its view to the marker. Reads take no lock.
file_system_test races the two calls on two threads, 2,000 rounds each for a creating CreateFileW (CREATE_NEW,
CREATE_ALWAYS, OPEN_ALWAYS) and for CreateDirectoryW, and checks that they never both succeed, that the loser
fails with the host's error and that a removed folder stays removed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Xiiano's review of old upstream PR 8161: the folder name (start time to
the millisecond plus process id) is not guaranteed unique, and earlier
runs' folders are kept, so a reused id in the same millisecond would
land in a stale folder and bring ERROR_FILE_EXISTS back. Under Wine
every fresh run gets the same small ids (both run_tiny_game_dir runs
here were pid 32).
rt::fs::reserve_unique_dir(base, stem) makes base\stem with
CreateDirectoryW and takes success as ownership; on ERROR_ALREADY_EXISTS
it tries stem-2, stem-3, ... up to 1000 names, and fails with the Win32
error otherwise. T:'s folder is reserved once per overlay under a mutex
(the first T: call or rt::fs::scratch_dir(), which the startup line
calls), so concurrent first calls share it. A failed reservation is
printed once and T: paths fail with ERROR_INVALID_NAME.
rt::fs::scratch_stem() gives the first name tried.
file_system_test: with stem and stem-2 taken, reserve_unique_dir makes
stem-3, new and empty, then stem-4; a file with the next name counts as
taken; max_tries names taken fail with ERROR_ALREADY_EXISTS; a missing
base is made. T: with folders of this process's own stem and stem-2
already kept takes stem-3 and CREATE_NEW succeeds; eight threads making
their first T: call at once reserve one folder. The second-process test
stays.
Restored from old upstream PR 8161 and ported onto the new main: the
base folder and every candidate go through main's win32_io_path, like
the other creates in file_system.cpp, so a long overlay root keeps
working.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
T:\ mapped to <overlay>\.gta6rt-temp, one folder shared by every run and
kept between runs. The title makes its crash dump and crash log there
with CREATE_NEW, and a name an earlier run (or a second process) had
left failed with ERROR_FILE_EXISTS (80), so no report landed (old
upstream issue 7913, measured by Spacecer2 under Wine 11.22).
T:\ now names <overlay>\.gta6rt-temp\<YYYYMMDD-HHMMSS-mmm>-pid<id>, the
process's start time in UTC and its id, made on the first T: call. The
start time keeps a reused process id (Wine hands each fresh prefix the
same small ids) out of an old run's folder. T:\.. cannot climb into the
shared folder, T:\ itself still cannot be removed or moved, and earlier
runs' folders are kept so their crash files can be read. GAME: and G:
are unchanged.
rt::fs::scratch_dir() returns the folder, and the startup line names it:
"console paths: GAME: -> ..., writes -> ..., T: -> ...". The two CMake
checks of that line (run_tiny_game_console_paths, run_tiny_game_dir)
and the synthetic test of the first now expect the T: part.
file_system_test: a CREATE_NEW of a name earlier runs left in
.gta6rt-temp succeeds and lands in the process's own folder; the folder
is stable for the process; a second process (the test started again)
creating the same name on the same overlay succeeds in a folder of its
own; GAME: reads and writes are unchanged. On main these fail with
ERROR_FILE_EXISTS (80), in this process and in the second one.
Restored from old upstream PR 8161 and ported onto the new main: the
folder is made through main's win32_io_path, so long overlay roots keep
working, and the scratch-folder check of the write-open path is kept.
Main's long-overlay T: check now finds scratch.bin in the process's own
folder below .gta6rt-temp.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The shims clear bits 24-31 of a root signature's flags on every descriptor and RTS0 blob. Old upstream PR 7140 asks
to make that conditional on the blob's origin, since the retail executable's root signatures carry no 0x03000000
(one 1.1 description with Flags 0x80, and a decoder whose Flags is a 16-bit read). Every public
D3D12_ROOT_SIGNATURE_FLAGS value is in bits 0-11, so the mask can't change those descriptors and no behaviour change
is needed.
root_sig_public_flags_test pins it:
- the descriptor helpers (1.0, 1.1, 1.2, legacy) keep all 65536 flag values in [0, 0xFFFF], and an RTS0 blob with
such flags is not rewritten;
- the registered serializer shims give the host's blob byte for byte for each public flag, 0x80 and all twelve, and
the deserializer shim returns the host's flags;
- a blob with 0x03000080 comes back as 0x80 with a valid container hash and no other byte changed;
- static_asserts that no public flag is in kXboxRootSignatureFlagHighByte.
docs/d3d12_vulkan.md: the executable's answer to the open question, and why the mask stays unconditional.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
llvm-mc rejects a scalar tuple that runs into vcc and prints the second word as
junk. That junk is often longer than the word, so it also covers the instruction
after the tuple, which stayed missing and refused the program with
'fall-through into undecodable words'. The words after a restored tuple are now
decoded from the blob until the stream is back at a printed instruction.
Pipeline library of 1.0.2.1, 2,684 compute programs: 1,816 -> 2,567 translate
and pass spirv-val; the 1,816 modules are byte-identical.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- docs/design.md: one copy of each rule in the 16-bit interpolation without PerVertexKHR row
Carried over from old-pr/9933 (old upstream PR 9933), rebased on main.
- docs/design.md: one copy of each rule in the Global atomics row (stitched again after #3084)
- docs/design.md: fcmpswap is not in Global atomics' Still Unsupported list; it has its own row (@WALID1618Y on old PR 4879)
Carried over from old-pr/9923 (old upstream PR 9923), rebased on main.
- docs/design.md: one copy of each rule in the EXEC, v_cvt_pknorm and Wave64 mask ballot rows
- docs/design.md: the pknorm NaN measurement once, in the Measured on RDNA2 sentence (@skorex on old PR 4899)
Carried over from old-pr/9929 (old upstream PR 9929), rebased on main.
- docs/boot.md: the Windows PowerShell 5.1 capture survives ErrorActionPreference Stop (PROC-271)
Carried over from old-pr/9939 (old upstream PR 9939), rebased on main.
The slot 73 fallback retried every IID the PC device refused, so asking for
a public list revision the backend lacks (ID3D12GraphicsCommandList9 on a
revision-8 device) returned S_OK and a base list instead of E_NOINTERFACE
(review on #359). Only the console ID3D12GraphicsCommandListX IID
{c3827890-4024-474c-98cf-645b51dc4874} (#445) is now created as
ID3D12GraphicsCommandList, in one call, and the list proxy answers
QueryInterface for it. Every other IID reaches the device unchanged.
Tested: xs_proxy_mock (List9 and an unknown IID keep E_NOINTERFACE with a
null output; the console IID is created once and is queryable) and
d3d12_vulkan_device with MSVC 14.44 / SDK 10.0.26100; docs tests.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>