Repository navigation
Conversation
9c89e41 to
2f5ecdc
Compare
…AV, not a video flag The console's resource flag 0x80 is a raytracing acceleration-structure buffer; the PC's 0x80 is a video-encode reference. pc_resource_desc and sanitize_coherent_buffer kept the low byte (flags & 0xFF), so a console acceleration-structure buffer reached the PC as a video-encode buffer, which the PC refuses for a buffer or treats as a video resource. pc_resource_flags keeps 0x1-0x20, maps 0x80 to ALLOW_UNORDERED_ACCESS (an acceleration-structure buffer needs it for its state on the PC) and never forwards 0x40, 0x80, 0x100, 0x200 or the console-only bits above. Not confirmed on a title: whether the creations fail or are accepted as video buffers (the handoff's logging step). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2f5ecdc to
0da61c6
Compare
|
No open or merged PR changes how the console's resource flag 0x80 is mapped; on main AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
|
Review (head 0da61c6, diff read, not a merge-check; draft,
Fine: 0x1-0x20 pass through unchanged, and 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. That console resource flag 0x80 is a raytracing acceleration-structure buffer 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: a title that creates a buffer with flag 0x80, and what it does with that buffer (builds an acceleration structure into it, or binds it as one). The retail game used for the regression run does not get there.
If you run a title that gets there, please post those lines here (not the whole log, which names your paths).
The console's resource flag 0x80 is a raytracing acceleration-structure
buffer; the PC's 0x80 is a video-encode reference. pc_resource_desc and
sanitize_coherent_buffer kept the low byte (flags & 0xFF), so a console
acceleration-structure buffer reached the PC as a video-encode buffer, which
the PC refuses for a buffer or treats as a video resource.
pc_resource_flags keeps 0x1-0x20, maps 0x80 to ALLOW_UNORDERED_ACCESS (an
acceleration-structure buffer needs it for its state on the PC) and never
forwards 0x40, 0x80, 0x100, 0x200 or the console-only bits above. Not
confirmed on a title: whether the creations fail or are accepted as video
buffers (the handoff's logging step).
What is in it
crates/xcl/src/hle/d3d12x/device_x.rs: +22 / -1crates/xcl/src/hle/d3d12x/real.rs: +1 / -1new tests:
console_resource_flags_map_to_pc_onesTested
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=4on9c89e410(built onmain336fddda; it merges into the currentmaine429936cwithout conflict): 2123 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_resource_flags_map_to_pc_ones: ok in that run; fails without the changeRegression run
Both 60-second runs used the same warm DXIL cache directory.
Not tested
Full preparation. The smoke runs used
XCL_PREPARE=0.Whether a console creation with flag 0x80 fails on the PC today or is accepted as a video buffer: not confirmed (needs logging on a title that creates acceleration structures). No GPU test of an acceleration-structure buffer.
A console desc with 0x80 on a depth texture gets the UAV flag back after the depth step strips it (acceleration structures are buffers).
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