gpu/shadow: saturate parallel compare first cut at span start #37
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: launcher
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
run report
security: hold
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs gpu test
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Androtim--MiniVI!37
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/37/head"
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?
@Androtim on GitHub · 2026-11-28 10:58 UTC · original
Androtim:feat/iter52-shadow-scan-boundary→main· +29 −2 · 1 files · 1 commits · merged 2026-11-28 13:16 UTCSummary
Port rustno1-coder/VIctory-NVIDIA 78e99b9 (from kelvaroq 009-shadow-compare.patch / xceless/victory-fork PR #1407 81d54b0):
Rig Specs Tested On
Run Settings & Profile
elease (and
elease --features diagnostics) @ $sha
Measurements & Verification
ear_black=0.0%, magenta=0.0%)
o_host_texture_errors=0)
@Androtim on GitHub · 2026-11-28 11:02 UTC · original
Automated triage for the maintainers (not an approval).
Verdict:
merge-candidate· CI (check):pendingReview Summary
Clean, tightly scoped arithmetic bug fix in
crates/victory-gpu/src/shadow.rs.main: InShadow::differing(crates/victory-gpu/src/shadow.rs:3785-3791), whenthreads >= 2(to - from >= 32 MiB), the first cut (i == 0,at == from) computes(at - (start + at) % PIECE).max(from). Wheneverfrom < (start + from) % PIECE(e.g.from == 0with an unalignedstart), this underflowsusize—panicking in debug builds or wrapping in release builds so thread 0 receivesa >= band skips its entire initial slice[from, cut(1)).scan_boundary(start, from, at)usingat.saturating_sub((start + at) % PIECE).max(from)prevents the underflow, guaranteescut(0) == from, and preservesPIECE-aligned interior cuts for1 <= i < threads(since(to - from) / threads >= 16 MiB >> PIECE).shadow::difference_tests::unaligned_parallel_scan_covers_the_first_pieceexercises aligned and unalignedstart/fromcombinations and verifies monotonic, piece-aligned cuts.Verdict
merge-candidate(pending CI completion). Pure CPU-side slice boundary arithmetic; no real-GPU smoke test is needed beyond CI.Generated with Antigravity CLI (
agy).github-bot referenced this pull request2026-12-03 02:05:51 +00:00
github-bot referenced this pull request2026-12-04 05:34:28 +00:00