Keep the first partial piece in parallel shadow compares #114
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/114"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from TaynanGT/Vice-Tay. Originally posted by cxy0072019-sketch on 2026-11-27T01:39:04Z.
When a title buffer starts inside a 64 KiB piece, the first aligned cut in
Shadow::differingcan fall below the buffer. Unsigned subtraction wraps in release mode, so the first worker can skip its entire slice and miss bytes that the GPU wrote. Saturating the alignment calculation keeps that first piece in the comparison.Adapted from victory-fork #1407, which credits the original finding to Kelvaroq.
On Windows release, the new 48 MiB regression missed the change at offset
0x0on main. With the fix, all three focused comparison tests pass. The regression uses the existing unbackedShadowtest helper and synthetic bytes, so it runs without a D3D12 adapter or title data.Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T01:40:11Z.
Review: COMMENTED
Thanks for carrying over the fix and keeping the test independent of a D3D12 adapter. I checked the split at
21ec8110. Clamping the first cut restoresfrom, the interior workers still meet at 64 KiB title-address boundaries, and the last worker keeps the exactto. The 48 MiB case hits the parallel path and checks changes at both ends of the range. I saw your Windows release result in the PR description. Repository CI is still running.