gpu(descriptor): preserve disjoint small linear texture views under Rule::Start #164
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!164
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/164/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-29 20:43 UTC · original
Androtim:feat/iter162-preserve-small-linear-texture-views→main· +30 −2 · 1 files · 1 commits · merged 2026-11-29 21:06 UTC## Summary
43ec6223intocrates/victory-gpu/src/descriptor/host.rs:Rule::Startspan invalidation by each allocation's actualend.min(start + HEAD)so disjoint small linear material lookup textures (< 4 KiB) sharing the same 4 KiB page are preserved instead of invalidating neighbours.small_linear_lookup_neighbours_stay.Test plan
cargo run -p xtask -- policy: passed (305 files ok)cargo test -p victory-gpu descriptor::host::: 55/55 passedcargo clippy --workspace --all-targets(default and--features diagnostics) with-D warnings: passed@Androtim on GitHub · 2026-11-29 21:05 UTC · original
Automated triage for the maintainers (not an approval).
Verdict:
needs-gpu-test· CI (check):passingReview Summary
crates/victory-gpu/src/descriptor/host.rs):Spans::noteunderRule::Start, the new span's protected head is now bounded byhead_end = end.min(start.saturating_add(HEAD)), and candidate spans inby_start.range(start.saturating_sub(HEAD - 1)..start.saturating_add(HEAD))are filtered with*at < head_end && start < span.0.min(at.saturating_add(HEAD)).end <= startreturns early (and all stored spans satisfyspan.0 > *at), the filter is an exact half-open interval overlap check between[start, min(end, start + HEAD))and[*at, min(span.0, *at + HEAD)).start.saturating_sub(HEAD - 1)..start.saturating_add(HEAD)remains sound: any span starting outside it cannot satisfy both inequalities, and textures of size>= HEAD(4 KiB) keep identical behavior toorigin/main.at == start && same(...)),newer == falserejection, and invalidation of genuinely overlapping small spans all continue to work as expected.small_linear_lookup_neighbours_stay, verifying that disjoint 256-byte linear textures sharing a 4 KiB page coexist (includingnewer == falseviews) while an overlapping write still invalidates all views of the overlapped lookup without disturbing neighbours.descriptor/host.rs), a quick local real-GPU smoke test is recommended before merging.Generated with Antigravity CLI (
agy).@Androtim on GitHub · 2026-11-29 21:27 UTC · original
Automated RTX 4060 Ti 8 GB Open-World A/B hardware verification PASSED (
playtest/wave5vsorigin/mainb1b6dc1,VICTORY_LEVELS_ON_DEMAND=0play-parity):cargo test(RTX 4060 Ti): 645 passed, 0 failed (victory39/39,victory-shaderemit::wave64_tests19/19 &lower19/19,victory-gpu568/568).scripts/verify-world.ps1, DLSS Quality + open-world save):9.4 fpsvs7.5 fps(+1.90 fps / +25%), min8.3 fpsvs0.8 fps, preparing53.6 msvs60.0 ms5760 MBvs6005 MB(-245 MB,0 MBover budget);no room for new oneshalved (9,000vs18,000);max_waitingdropped (36,432vs41,431)0mismatches (other_bytes=0, showed_another_view=0, failed=0vs5and2on baseline)mapped_rate1.63 ms/svs6.9 ms/s(-76%, max12.9vs51.9 ms)frame-5975.png,frame-5983.png),edge_energy=4.69vs3.88,near_black=0.02%,magenta=0.0%(and#1412bf6800showed zero visual artifacts).