Repository navigation
Conversation
e04b738 to
d43fe73
Compare
d43fe73 to
ae8505c
Compare
From PR #7: XPersistentLocalStorageGetSpaceInfo walks the storage folder (links not followed) for used_bytes and caps the free space at the quota minus that use; tests for nested files, the arithmetic and links. (The rest of PR #7 – handle registries for the task queue / XAsync – is not taken.) Co-authored-by: bmjask <[email protected]>
|
Thanks for this! I took the persistent local storage accounting (59eaf46, you're credited as co-author). The rest – token registries for task queues / XAsync against forged or stale handles (~2.8k lines) – isn't something XCL needs: the title isn't an adversary here, and changing the handle model means a lot of concurrency code to maintain. If you ran into actual bugs in the queue / XAsync behaviour, small PRs with a failing test each would be very welcome. Closing. |
|
Sorry – I closed this too early while you were still pushing updates, and GitHub won't let me reopen it because the branch was force-pushed since. Please just open a new PR from the same branch; it'll get a normal review and won't be closed on you. The notes above still apply (what's already on main, what I changed). |
Part 2 of the split (82 lines): IDXGIAdapter slot 7 serves output 0 as a real object (Kind::DxgiOutput; GetDesc reports it unattached) and DXGI_ERROR_NOT_FOUND past it; Dxgi_QI answers the output IID. Part 1 had left slot 7 on the DeviceChild default, which handed the title the null device pointer as its 'output' — survived only because SetFrameIntervalX ignores the output; the title log (no IDXGIAdapter::xcl-dev#7 stub, present passed anyway) proved the gap. Unknown IIDs stay E_NOINTERFACE. Failing-first: the extended chain test fails on part 1 (slot 7 hands out the device singleton, kind Device, never DxgiOutput); passes now (real output 0, NOT_FOUND at 1, E_NOINTERFACE on garbage IIDs). Gates: check -p xcl --tests EXIT 0; check --workspace EXIT 0; lib 796 passed/0 failed/1 ignored (--test-threads=4). Title e2e, fresh roots: null 13 FAILs and Vulkan 10 FAILs, both byte-identical to part 1 (argv path artifact only); xcl.log still shows 'presented 640x360 (token 0x1)' with no IDXGIAdapter stub. Retail HOLDS (SIGSEGV exe+0x2237320, exit 139, called_stubs 20, 0 d3d12).
The null device's plain lists ran the console memory slots (xcl-dev#60/xcl-dev#61/ xcl-dev#69-xcl-dev#72/xcl-dev#89/xcl-dev#93) as logging stubs, so the title's console_list_methods check read back 0x0 on the null backend while the identical immediate host writes already passed on Vulkan lists. The vtable now wires the same VulList_* functions into Kind::CommandList; GetDevice (xcl-dev#7), the UAV barrier (xcl-dev#146) and AllocateUploadMemory (xcl-dev#148) stay Vulkan-only with their slices (barrier/upload ride with raytracing, which still fails on null at the OPTIONS5 tail-zero assert). Failing-first: the new null_list_shares_the_console_memory_methods test fails pre-route (slot 69 stub writes nothing) and passes now (write32/fill/copy/timestamp land, pre-satisfied wait returns, kickoff is a silent no-op), mirroring the title's asserts. Gates: check -p xcl --tests EXIT 0; check --workspace EXIT 0; lib 797 passed/0 failed/1 ignored (--test-threads=4). Title e2e, fresh roots: null 12->11 FAILs (Write32 fixed, byte-identical remainder), Vulkan 9 unchanged with the real present (640x360 token 0x1 on Intel Arc). Retail HOLDS (SIGSEGV exe+0x2237320, exit 139, called_stubs 20, 0 d3d12).
Implements test-backed XAsync and task-queue lifecycle behavior, opaque handle/token validation, cancellation and generation isolation, GameSave safety, persistent storage accounting, and monitor/waiter correctness.
Concurrency and stale/forged-handle regressions are covered by deterministic tests.