upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/queue_proxy_test.cpp
AgeCommit message (Collapse)Author
11 days[integration] Linux/Proton and native Windows: boot through the story load ↵Moriz82
(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>
12 daysallocator_proxy, queue_proxy tests: take the guard fault's code in the ↵Geremy Cambus
filter (#6864) Squash-merged after diff review of PR #6864 - allocator_proxy, queue_proxy tests: take the guard fault's code in the filter (Wine 9)
12 daysRevert #2490: its console-ABI list proxy breaks run_tiny_frame (please ↵ItsNotRexed
rebase and split) With it, d3d12_xs reads list slot 48 as the console's IASetVertexBuffers, so the PC-shaped fixture list's ClearRenderTargetView never runs and Close fails. The branch also changes runtime/src/pe_loader.cpp and carried committed conflict markers in docs/fssm_crosscheck.md. Its docs rows go with it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 daysMerge origin/main: DXGI device fields coexist with the console-ABI device stateNolan Cotter
13 daysd3d12_xs: PC-shaped lists for PC callers, atomic queue layout, S_OK queue tailNolan Cotter
Review findings from shdann's Windows run of the new console queue/list work: - d3d12_debug_markers (and every GPU harness compiled against the PC headers) drove lists through the console-shaped proxy, so PC slots past 26 — including the PIX markers at 56-58, which have no console counterpart — reached unrelated console methods or were dropped. create_device_proxy gains console_lists: false hands the real (PC-shaped) list back from CreateCommandList. The GPU tests pass false; the title path keeps the console default. - queue_proxy asserted E_NOTIMPL for the queue's console tail, but those slots deliberately answer S_OK now — frame pacing flows through them. The test's contract is updated; the fence tail stays refused. - ChildProxy::queue_layout was a plain unsigned char read and written from many threads; it is atomic like the device-wide detection it caches. xs_proxy_mock_test and loader_test pass under Wine; the modified test objects compile clean under clang-cl. The GPU harnesses need a real adapter — covered by shdann's Windows run. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
13 daystests: queue and marker tests follow the console list/queue ABINolan Cotter
shdann's run on #2490 (Windows 11, MSVC, RTX 4090 + Radeon): two tests that pass on main fail on this head. queue_proxy expected E_NOTIMPL for every queue slot past the public chain. The console contract answers those S_OK instead - frame pacing flows through them - which xs_proxy_mock already requires. The queue loop now expects S_OK, SignalX at slot 23 and PresentX at slot 30 are checked as the modelled methods they are (a fence reaching 9 proves SignalX forwarded; PresentX is handled, not refused), and the fence tail keeps its E_NOTIMPL contract unchanged. d3d12_debug_markers called SetMarker/BeginEvent/EndEvent through the PC interface on what is now a console-shaped list: PC slot 56/57/58 land on console slots that map elsewhere, and the first Close failed. The console ABI has no SetMarker or BeginEvent at all - its one marker slot is EndEvent at console 60 - so the PC calls now go to the real list behind each proxy via list_proxy_real_list; the proxy queue still unwraps the proxies at ExecuteCommandLists.
13 daysfix(runtime/test): warm up two CreateProcessW starts in queue_proxy_test ↵cixotdev
handle check On Windows 11 26200, check_child_runner() previously ran one successful CreateProcessW and one failed CreateProcessW before recording handles_before. However, NtQueryObject shows that the second successful CreateProcessW still opens and caches one persistent HKCU registry key handle (\REGISTRY\USER\<SID>) in the parent process before stabilizing at +0 handles on the third and later calls. That caused `handles_after == handles_before` (e.g. 123 vs 124 under ctest) to abort queue_proxy_test before testing WARP, hardware D3D12, or Vulkan queue/fence proxies. Warm up two successful `run_self(L"--child-flood 0", 30000)` starts before recording `handles_before`, while keeping the strict `handles_after == handles_before` handle-leak assertion intact. AI-assisted with Argon (Antigravity).
13 daysqueue_proxy_test: run non-destructive differential cases in-process (TEST-242)Sagah123
Differential error and argument validation cases that do not alter device residency, touch the sharing subsystem, or fault on the PC runtime are now executed in-process directly against the backend's devices. Cases modifying residency (1, 2, 26..29), creating shared handles (30, 31), or faulting under SEH on the host runtime (17..20, 25) remain isolated in child processes. LEONIDA_QUEUE_PROXY_ISOLATE_ALL=1 is supported as an override to force all cases into child processes. Tested on Windows 11 with MSVC 19.51, NVIDIA GeForce RTX 3060 (WARP + hardware + Vulkan backends): execution time drops significantly with zero leaks and 3 backends passing cleanly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
13 daysqueue_proxy_test: run the differential children side by side (TEST-242)Dominik
Each differential case starts two child processes (real object, proxy), and each child pays its own device start-up: ~5 s on an AMD RDNA2 iGPU, 97 s per ctest run. The children now run differential_jobs() at a time (half the logical processors, 1..8; LEONIDA_QUEUE_PROXY_JOBS overrides, 1 = serial) and are judged afterwards in case order, so the report is unchanged. Starting children from several threads needs the pipe's write end to be inheritable only for its own CreateProcessW: both ends are now created uninheritable and the write end is made inheritable under a start lock, so a sibling started meanwhile can't inherit it and hold the pipe open. RX 9070 (WARP + hardware + Vulkan backends): 44 s -> 20 s, same output; 5 runs at 16 jobs clean. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
13 daysRuntime: Xbox-ABI proxies for the command queue and the fence (BUILD-231)AimLogin
Device slots 8 (CreateCommandQueue), 75 (CreateCommandQueue1), 36 (CreateFence) and 32 (OpenSharedHandle of a fence) now return queue and fence proxies. They forward the public chain in PC order (19 queue slots, 11 or 12 fence slots), refuse and log a slot past it up to the end of the proxy's table, and name a read past the table through a guard region and a vectored handler. Heap, queue and fence proxies are unwrapped wherever a device or queue method hands them to the real runtime: queue Signal/Wait, device slots 31/34/35/45/46/50. Arrays are copied without exceptions. QueryInterface answers only the modelled interfaces, and logs one the real object has but the proxy does not model. Outputs are cleared on failure as for slots 14/62/76. --trace-d3d12 records proxy calls in the README grammar. Every function a thunk hands its words to keeps them in the same positions, because a title passes only as many as the method takes. Tests: queue_proxy_test (host WARP, host hardware, Vulkan device; differential per-process error cases, guard faults, identity, threads, raw-slot client, child-runner self-test), xs_proxy_mock_test (older devices, fences without Fence1, OpenSharedHandle branches, allocation failures; three guard-setup fault modes), and device_proxy_test through the D3D12XboxCreateDevice shim. No game files. AI-assisted (Claude Code). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>