lanes: add a root SRV window scenario for the #389 fix #655
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/655"
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 brcly/TuxBox. Originally posted by JeffreyBytes on 2026-12-02T15:22:46Z.
Summary
Adds a Lanes self-test scenario,
root-srv-window, for the bug #389 fixed: a root SRV bound by address was imported as the single 64 KiB page holding the address, and a program reading past that page got other data or faulted the GPU. Nothing in Lanes covered it. There is no runtime change in this PR.The scenario commits four 64 KiB pages of title memory, makes no resource over them, and binds a raw buffer as a root SRV eight bytes before the end of the first page. A plain compute program reads the two words before the boundary and words in each of the three pages after it. A root SRV has no size on the console, so every word has to be the one the title wrote.
I kept it out of
all. Its suite,lanes-root-srv-window, runs only when named, because a provider that does fault on the read would take the wholeallrun with it. If the NVIDIA result is clean I'm happy to move it intoall, or you may prefer that now.I have no NVIDIA card, so this needs someone to run it there (below).
Tested
GPU, driver and backend: RX 6700 XT (
1002:73df), RADV, GE-Proton11-15, a fresh prefix.On
mainwith #389, the scenario passes. As a control I cut the root-view window back to one 64 KiB page (ROOT_VIEW_REACH = 0x10000and one reach in the span and limit). That edit is not in this PR, and it is not a build from before #389. The scenario then fails on this card with wrong data, not a fault:The kernel log was clean on both runs. The amend after the first run changed only comments and the commit message, and I did not rerun the GPU check on the final commit.
To run it:
Commands run and their results:
The one failure is Clippy at
runtime/d3d12/src/device/shader_cache/native_doubles.rs:27(deprecatedfetch_update).mainfails the same way, and #654 fixes it.Checks
CI runs the code checks only, no GPU. This PR changes no evidence JSON.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.