Repository navigation
Conversation
|
Tested Independently reran the pinned standalone CPU executable for Both native processes exited 0. Total was 2 passed, 0 failed, 0 ignored, 0 skipped. Across 16 sequential calls, only bit Not tested Runtime call sites, production logging, concurrency, pointer validity, PSO creation, D3D12 or GPU behavior, cache behavior, retail smoke, and the workspace suite. AI use T3 Code through Codex ( |
f7f8fc2 to
a311e4e
Compare
The console's pipeline-state flag enum is not the PC's: its TOOL_DEBUG is 0x8000_0000, it has 0x8000 / 0x10_0000 / 0x20_0000 / 0x40_0000 of its own, and no 0x4 (dynamic depth bias) or 0x8 (dynamic strip cut). XCL forwarded a title's Flags unmasked, so console bits reached the PC runtime and the driver-cache keys (which hash the flags), and a title's 0x4 was taken for a request XCL makes itself. pc_pso_flags keeps only 0x1 and logs the first occurrence of any other unknown bit. It is applied where a title's desc or stream becomes a PC one, before the cache keys are formed: - device_x.rs create_graphics_pso_tracked (CreateGraphicsPipelineState, ...X, CreateDerivedPipelineStateX), before XCL adds its own 0x4; - real.rs dev_create_compute_pso (also the compute stream projection); - real.rs dev_create_pipeline_state: the FLAGS subobject of the stream. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Assisted-by: Codex (exact model unavailable)
a311e4e to
1e924c7
Compare
|
No open or merged PR masks a title's pipeline-state flags. #3001 records nonzero compute flags and #3151 changes subobject numbering above 22; both touch nearby code but make a different change. FLAGS is type 20 in both numberings. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
|
Review (head 1e924c7, diff read, not a merge-check; draft,
Fine: the desc copies live until each call returns, and XCL's own pipeline streams use AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point. |
Status: a guess that needs evidence before it can be merged. The console's pipeline-state flag values (TOOL_DEBUG 0x8000_0000, no 0x4 / 0x8, console-only 0x8000 / 0x10_0000 / 0x20_0000 / 0x40_0000) is reasoned from how titles call the API and from the PC's D3D12; it is not taken from any console documentation, and no title has confirmed it yet. Draft until then.
Evidence that would confirm it: this head logs the first pipeline-state flag bit it does not know; the flag words titles pass in their pipeline descs and streams settle it. Related: #2693 (forwards a console compute stream's FLAGS subobject) and #3001 (records the flags the driver accepted). The three fit together in code, and none of them has title evidence: on a 60 s run of the retail game, no graphics stream had a FLAGS subobject and every compute desc had flags 0, so all three are no-ops there. Note that the PC itself defines 0x1, 0x4 and 0x8, so dropping 0x4 / 0x8 rests only on this guess.
If you run a title that gets there, please post those lines here (not the whole log, which names your paths).
The console's pipeline-state flag enum is not the PC's: its TOOL_DEBUG is
0x8000_0000, it has 0x8000 / 0x10_0000 / 0x20_0000 / 0x40_0000 of its own,
and no 0x4 (dynamic depth bias) or 0x8 (dynamic strip cut). XCL forwarded
a title's Flags unmasked, so console bits reached the PC runtime and the
driver-cache keys (which hash the flags), and a title's 0x4 was taken for
a request XCL makes itself.
pc_pso_flags keeps only 0x1 and logs the first occurrence of any other
unknown bit. It is applied where a title's desc or stream becomes a PC
one, before the cache keys are formed:
device_x.rs create_graphics_pso_tracked (CreateGraphicsPipelineState,
...X, CreateDerivedPipelineStateX), before XCL adds its own 0x4;
real.rs dev_create_compute_pso (also the compute stream projection);
real.rs dev_create_pipeline_state: the FLAGS subobject of the stream.
What is in it
crates/xcl/src/hle/d3d12x/device_x.rs: +18 / -0crates/xcl/src/hle/d3d12x/real.rs: +142 / -0new tests:
console_only_bits_do_not_reach_the_pc,stream_flags_subobject_is_mapped,compute_desc_flags_are_mapped,console_compute_flags_create_a_pso_on_d3d12Tested
NVIDIA RTX 2070 SUPER (driver 32.0.16.2140), AMD Ryzen 5 3600XT, Windows 11 build 26300, Rust 1.100.0 MSVC; tests in debug
cargo test --workspace --no-fail-fast -- --test-threads=4onf7f8fc27(built onmain336fddda; it merges into the currentmaine429936cwithout conflict): 2126 passed, 9 failed, 48 ignored, 25SKIPPEDlines (21 no wave64, 3 gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426, 1 no heap windows).The 9 failures are the ones
mainhas (3e2etitle tests and 6 split-wave64 GPU tests, main e429936 on NVIDIA: 3 e2e title tests and 6 split-wave64 GPU tests fail since #2959 #3093:main336fdddagives 2122 passed, 9 failed, 48 ignored); the set of failing tests is identical to it.console_only_bits_do_not_reach_the_pc: ok in that runstream_flags_subobject_is_mapped: ok in that runcompute_desc_flags_are_mapped: ok in that runconsole_compute_flags_create_a_pso_on_d3d12: ok in that runRegression run
Both 60-second runs used the same warm DXIL cache directory.
Not tested
Full preparation. The smoke runs used
XCL_PREPARE=0.A title creating a PSO with console flags: none logged. The console flag 0x1 passes through unchanged (an open point); a FLAGS subobject after an unknown subobject type is not mapped.
AMD and Intel GPUs; wave64 hardware (the RTX 2070 SUPER is wave32).
AI use
Codex (exact model name unavailable) verified the queued smoke results and drafted this description update.
patch-worker on Claude Sonnet 5.5 (self-reported); reviewed by Claude Opus 5.5: the code and tests. The description and the test / suite runs: Claude Code, Claude Sonnet 5.5 and Claude Opus 5.5.
🤖 Generated with Claude Code