Repository navigation
Conversation
41615fe to
6b9193d
Compare
…that fits A retail title's BVH builder writes 4 dwords into compute parameter 3, the last parameter of a 9-dword table (3 fit). Before the clip, bind::put_in dropped the whole write, so the radix pass 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. The clip's own test covers a write that overruns a mid-table parameter. These cover the shape of that title: 5 values into a parameter of 4 keep 1..4, and 4 values at the last parameter of three views + 3 constants write bytes 24-35 and leave the views alone, for the compute and the graphics argument table. All three fail with the put_in change reverted (zeros in the table). The console-list replay arm has no test: its table is a local of close(), visible only through a translated dispatch, so it needs a GPU title run. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
6b9193d to
ecac034
Compare
|
Review (head ecac034, diff read, not a merge-check:
Fine: test-only, drives the real AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point. |
|
No open or merged PR has these tests. #1319's AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
|
merge-check
|
Tests for the case the retail title hits and #1319's own test does not: a root constants write that runs past the end of the last parameter, where it is also the end of the argument table. A retail title's BVH builder writes 4 dwords into compute parameter 3, the last of a 9-dword table (3 fit). Before the clip
bind::put_indropped the whole write, the radix pass read a null BVH header, and the refit's box stores corrupted the vertex and index lists. With the clip alone, in our diagnostic tree, the count of 24-byte corrupted runs in those lists went from 80 to 0, and the refit's loads of parents that were never written from 30.7M to 1 (test report on #1319). Part of #2867.What is in it
Tests: a root constants write past the last parameter keeps the part that fits(crates/xcl/src/hle/d3d12x/bind.rs,mod tests, +72 lines, no runtime change):test_rts0_blob()leave 1, 2, 3, 4;console_list.rs. Its table is a local ofclose()and is visible only through a translated dispatch (UMA + GPU), so a unit test would need a refactor; left out.Tested
put_inchange in: 3 passed. Withput_inreverted to main's body (temporary, not committed): 3 failed, all on the table staying zero:a_write_past_the_last_parameter_keeps_the_part_that_fits: left[0; 16], right[1,0,0,0, 2,0,0,0, 3,0,0,0, 4,0,0,0]four_constants_at_the_last_of_three_views_and_three_constants_write_bytes_24_to_35(and thegraphics_one): left[0; 12], right[161,0,0,0, 162,0,0,0, 163,0,0,0]cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4: 2888 passed, 1 failed, 51 ignored in total (lib 2740 passed, 1 failed, 31 ignored). 25SKIPPEDlines.gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16, which also fails on bare main 9dfbe3e (3 of 3 runs alone; fixed by Tests: name the trailing VGPRs in the D16 resinfo kernel test #3513).two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobspassed on this head; it fails on bare main 9dfbe3e and on D3D12.X: warn when a root argument write runs past its parameter #3512's head (gpu_two_pass_cache_e2e.rs:472), so it is main's.0xc0000409abort in this run.Regression run
main:
This PR's head:
Not tested
AI use