Skip unserviceable shader memory fault reports on demand #243
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem!243
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-243"
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?
@tommiehansen on GitHub · 2026-12-02 20:30 UTC · original
tommiehansen:experiment/skip-sentinel-memory-faults→main· +77 −1 · 4 files · 1 commits · closed without mergingBottleneck and change
A shader with a guest address outside the usable page directory reaches the permanently empty last entry. The ordinary missing-page path reports that entry with a store to the fault buffer, although the host will never map it. Repeated reports use the same hash slot, potentially overwriting a recoverable fault. In #23 the sentinel accounted for 27% of the reported misses in one instrumented route. This is a count of reported faults, not a measure of instructions or frame time.
With
VICTORY_SKIP_SENTINEL_FAULTS=1, gate the fault-report store on the clamped page differing from the last entry. The null view, its reads and writes, present-page predicate, descriptor selection and guard for inactive lanes are unchanged. Fault-tag and traversal-loop probes keep the original reports even when the flag is set. The enabled shader and prepared-pipeline cache keys differ from the default, so switching it off restores the original behavior.Validation and hardware testing
The portable shader suite passed, including an IR interpreter test across both switch states, missing and present entries, the sentinel and overflow pages, and a valid page that hashes to the same slot. The Windows target for
victoryandvictory-gpu, including diagnostics and test compilation, passed from macOS with a check-only mimalloc override and the pure Rust BLAKE3 path.git diff --checkpassed. Hardware benchmarking was unavailable.Could maintainers test RX 9060 XT 16 GB and RX 9070 XT on the same scenes at native 1920×1080 with RT enabled and frame generation off? Compare render frame-time percentiles and the distant-shadow pass GPU time, check shader ISA for the cost of the new predicate and compare image output. This can only improve frame time if discarded report traffic outweighs the additional predicate; it does not address the source of invalid addresses. Use the regular build for the timing comparison, because instrumented fault-tag or loop-probe shaders keep the original behavior.
Pull request closed