gpu(descriptor): preserve disjoint small linear texture views under Rule::Start #164
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/164"
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 Androtim/MiniVI. Originally posted by Androtim on 2026-11-29T20:43:27Z.
## 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: passedImported from Androtim/MiniVI. Originally posted by Androtim on 2026-11-29T21:05:04Z.
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).Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-11-29T21:27:43Z.
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).