Repository navigation
RPF9: reject conflicting probe options - #30
Merged
Merged
Conversation
Collaborator
|
Merged, thanks. Checked locally on Windows (MSVC): unit tests and the e2e tests, including the new one, pass. |
vincentes
added a commit
to vincentes/xcl-wasm
that referenced
this pull request
Nov 24, 2026
In the software D3D12.X device: - The console's frame clock (device xcl-dev#78–xcl-dev#81): SetFrameIntervalX, ScheduleFrameEventX, WaitFrameEventX (the origin hands out the frame's token; S_FALSE at the timeout) and GetFrameStatisticsX, on guest time. The ancillary handles of an event are not signalled. - PresentX (queue xcl-dev#30) goes through the queue like everything else; when the queue gets to it the frame is flipped for the statistics and the back buffer's memory is kept as `d3d.frame` (width, height, format, pixels) for the host to show. Textures are linear in this device: the console's tiling is not modelled. - ClearRenderTargetView (list xcl-dev#52) fills a target of 8 bits a channel; CreateRenderTargetView remembers which resource a descriptor shows. - The device answers QueryInterface for IDXGIDevice / 1 / 2 with an object of that layout; its adapter has the device's LUID and no output. Measured on macOS (aarch64): the test title's "frame clock + PresentX of the title's back buffer" passes, 41 checks in all. `cargo test -p xcl-guest`: 47 passed, 0 failed, run on the staged tree in a separate copy: the working tree does not build at the moment (another agent's half-written crates/xcl/src/hle/export_names.rs). Co-Authored-By: Claude Fable 5.2 <[email protected]>
CalvyPZ
pushed a commit
to CalvyPZ/xcl
that referenced
this pull request
Nov 24, 2026
Adds host-driver parity and contract tests (without console game files) covering ID3D12Device::CheckFeatureSupport (xcl-dev#13), CreateReservedResource (xcl-dev#30), CreateReservedResource1 (xcl-dev#55), and GetResourceTiling (xcl-dev#42). Verifies D3D12 feature queries, oversized/undersized buffer fallbacks, console-only formats (116..=120), reserved resource creation and unknown IID fallback, note_reserved Map(E_INVALIDARG), vram::place tiling parity, and vendor-independent 64 KiB tiling invariants. Part of xcl-dev#480 Assisted-by: Antigravity (model name not provided to agent)
rootw0rm
pushed a commit
to rootw0rm/xcl
that referenced
this pull request
Nov 26, 2026
…ep-88) Doc-only. The synthetic title has zero static d3d12 imports (dynamic d3d12_xs.dll load); console slots are reached by raw vtable index via xslot (tests/testtitle/src/gpu.rs:108). Queue ordered per keep-d3d12-behavior.md K-D3D-06 with in-tree caller refs; next unrouted slot is queue xcl-dev#30 PresentX + device xcl-dev#78-81 frame clock, consumer present_x_frame (gpu.rs:312) — the M1 first-frame gate, behind XCL_VULKAN_BACKEND (null stays default). Full spec table in .ralph/specs/linux-port/m1-slot-queue.md (loop-local). Retail SKIPPED (drive unmounted).
rootw0rm
pushed a commit
to rootw0rm/xcl
that referenced
this pull request
Nov 27, 2026
…81 stay unrouted (zero d3d12 on abort path) Retail abort path still issues no console-slot calls (SIGSEGV +0x2237320, 20 stubs zero d3d12), so routing moves nothing; Linux PresentX needs a frame_linux twin + windowed present when the frontier gets there.
rootw0rm
pushed a commit
to rootw0rm/xcl
that referenced
this pull request
Nov 27, 2026
…nd backend 1d split 1 of 2 (honest split: route halves stay under the line budget). Device frame-clock slots route on Vulkan objects only: xcl-dev#78 SetFrameIntervalX, xcl-dev#79 ScheduleFrameEventX (with ancillary handle routing), xcl-dev#80 WaitFrameEventX, xcl-dev#81 GetFrameStatisticsX — thin adapters over the Linux twin (d3d12x_frame_linux). register_ancillary remembers the schedule block's handles per type (E_INVALIDARG past the 63-handle cap, like Windows; Linux trusts the block — readable() is windows-only); the clock thread signals each with kernelx SetEvent at fire. Unscheduling clears. Null device keeps logging stubs: no behavior change while XCL_VULKAN_BACKEND is unset. Queue xcl-dev#30 PresentX + the real present follow in 1d(ii). Failing-first: the routing test failed pre-fix (E0599 no VulkanQueue; then E_FAIL at xcl-dev#81 with PresentX still stubbed); passes now (slots + ancillary-signal asserts, serialised on CLOCK_SERIAL with the twin's tests). Gates: check -p xcl --tests EXIT 0 (40 pre-existing warnings, none new); check --workspace EXIT 0; lib 794 passed/0 failed/1 ignored (+1 new). Title e2e + retail controls run at 1d(ii).
rootw0rm
pushed a commit
to rootw0rm/xcl
that referenced
this pull request
Nov 27, 2026
…nd backend 1d split 2 of 2 (honest split: a real WSI staging present is indivisible at ~350 lines — slicing further would leave dead code or fake success). Queue xcl-dev#30 PresentX routes on Vulkan queues only (VulkanQueue from a Vulkan device; null queues keep the logging stub): plane 0's resource bytes (R8G8B8A8 2D texture; committed Map backing or placed title memory, unmodelled shapes present nothing) upload through the new vulkan_present::present_rgba_image — X window + swapchain, staging-buffer copy, one acquire/submit/present — then mark_flipped(token) for xcl-dev#81. Headless ('no ' display/WSI/device) still flips + S_OK: a console present never fails. Null default unchanged. Failing-first: the 1d routing test failed pre-route (E_FAIL at xcl-dev#81, no flip); passes now end to end (set/schedule/wait/token/present/stats), and present_rgba_image proved REAL on hardware (Intel Arc split-32, 2x2 frame presented in 0.11s, no SKIPPED). Gates: check -p xcl --tests EXIT 0 (40 pre-existing warnings, none new); check --workspace EXIT 0; lib 795 passed/0 failed/1 ignored (--test-threads=4; default-thread full runs flake pre-existing, base too). Title e2e delta 0 (12 FAILs null, stashed baseline 12; 10 on Vulkan, both baselines); FAIL #2 still-failing: the title dies at DXGI GetAdapter/GetDesc before reaching the routed slots (no xcl-dev#78/PresentX in xcl.log) — next slice. Retail HOLDS (SIGSEGV exe+0x2237320, exit 139, called_stubs 20, 0 d3d12, xgr exactly XAsync/XNetworking/XUser).
rootw0rm
pushed a commit
to rootw0rm/xcl
that referenced
this pull request
Nov 27, 2026
Part 1 of an honest split (197 lines): a Vulkan device answers the DXGI device IIDs with a wrapper (Kind::DxgiDevice, holding the device) whose slot 7 returns an adapter (Kind::DxgiAdapter) whose slot-8 GetDesc carries the device's LUID (== Device_GetAdapterLuid) plus the Vulkan adapter name, so the title's IDXGIDevice1 path reaches the routed xcl-dev#78-81/xcl-dev#30 slots. The null device keeps answering queries with itself: no behavior change while XCL_VULKAN_BACKEND is unset. IIDs are written-out windows-crate GUID bytes (verified against the registry source); unknown IIDs get E_NOINTERFACE, never the device. EnumOutputs/output objects follow in part 1b (slot 7 is the DeviceChild default until then — tolerated, SetFrameIntervalX ignores the output). Failing-first: the new routing test failed pre-change (no Dxgi kinds/IIDs); passes now (null QI pinned to self, wrapper identity, D3D12 round trip, LUID match, slots 78-81 route instead of stubbing). Gates: check -p xcl --tests EXIT 0 (no warnings naming this file); check --workspace EXIT 0; lib 796 passed/0 failed/1 ignored (--test-threads=4; +1 new). Title e2e, fresh roots: null 13 FAILs, byte-identical to the stashed baseline (argv path artifact only); Vulkan 11->10, the frame-clock + PresentX FAIL is gone and xcl.log shows 'D3D12.X Vulkan: presented 640x360 (token 0x1)' on Intel Arc Split32. Retail HOLDS (SIGSEGV exe+0x2237320, exit 139, called_stubs 20, 0 d3d12).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Returns a usage error when
--probeis combined with--full,--find,--extract, or--out. Previously, explicit probe mode silently discarded these options and could report success without performing a requested search or extraction.Validation