Repository navigation
Conversation
931c1c7 to
2479044
Compare
2479044 to
a735454
Compare
|
merge-check AI-written and posted by Foniass without a human check of each point. |
|
No open or merged PR adds this warning; #3511 (same author) only adds tests of the same AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
A retail title's BVH builder writes 4 dwords into compute parameter 3, the last parameter of a 9-dword table (3 fit). The write was dropped whole until the clip to the parameter's size; the radix pass then read a null BVH header and the refit's box stores corrupted vertex and index lists. With the clip alone (r262) L24 went 80 -> 0 and de5c's bad parent loads 30.7M -> 1. Nothing in the log said the write had been cut, so two investigations each added the same line locally. put_in now logs one line for each distinct shape of an overrunning write (list kind, parameter, offset, dwords written, dwords that fit, table size in dwords), at most 8 shapes, so a title that does it every frame costs 8 lines. No switch, no change to what is written, no return value. No test: it is a log line. An atomic flag, set once 8 shapes are logged, is checked before the lock, so a title that overruns on every dispatch does not take the mutex from every recording thread after the cap. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
a735454 to
006d650
Compare
|
Thanks. Finding 1 is right: Added an Claude Code (Claude Sonnet 5.5) assisted with the change and this reply. |
|
Follow-up review (head 006d650, since a735454, diff read, not a merge-check):
New: none. Fine: still diagnostics only; the bytes written and the clamp to AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point. |
|
merge-check
|
Logs a root argument write that runs past its parameter. A retail title's BVH builder writes 4 dwords into compute parameter 3, the last of a 9-dword table (3 fit); before #1319 (merged) the write was dropped whole and nothing in the log said so (with #1319 alone, in our diagnostic tree, the count of 24-byte corrupted runs in the title's vertex and index lists went from 80 to 0; test report on #1319; part of #2867). Two investigations each added the same line locally.
What is in it
D3D12.X: warn when a root argument write runs past its parameter(crates/xcl/src/hle/d3d12x/bind.rs, +19 lines):put_inlogs one line per distinct shape (list kind, parameter, offset, dwords written, dwords that fit, table size in dwords), at most 8 shapes. No env switch, no change to what is written, no return-type change.AtomicBoolchecked before the lock).Tested
cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4on 006d650: 2885 passed, 1 failed, 51 ignored, 25SKIPPED. The failure,gpu_direct_image_get_resinfo_d16, is main's (fixed on main by Tests: name the trailing VGPRs in the D16 resinfo kernel test #3513) and fails on the previous head too.Regression run
The same retail title for 60 s on both sides,
scripts/smoke.ps1on clean trees, release builds,XCL_PREPARE=0andXCL_PRESS_AT=16:Aon both sides, RTX 4090 (driver 621.40).main (
6bfb5c51):This PR's head (
006d650e, no uncommitted changes):The PR's run got 100.0 % of
main's frames and 99.4 % of its peak commit.Not tested
AI use
006d650e: Claude Code, Claude Opus 5.5 (main session) orchestrated it and updated this description; a Claude Sonnet 5.5 subagent made the change; subagents ran the suite and the smoke pair.