fix(gpu): return split submissions' descriptor slots; keep min level on moved views #223
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/trustno1-coder--VIctory-NVIDIA!223
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-223"
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?
@mutlusinan on GitHub · 2026-11-27 19:53 UTC · original
mutlusinan:fix/gpu-slots-and-view-levels→main· +28 −23 · 2 files · 2 commits · openProblem
submit_cutalready does this after the sameexecute; the split path did not.show_fromlowersResourceMinLODClampby the number of levels it skips, but the clamp is measured from mip 0 of the resource, not from the view's first level — so the minimum level changed when the view's start moved.Fix
queue.rs,submit_split: callcrate::list::tables_done(&lists[..cut])afterhost.execute, assubmit_cutdoes.tiles.rs,show_from: leaveResourceMinLODClampalone; the device test now samples the same resident level through the adjusted and the original view instead of expecting the adjusted one to read level 1.Verification
cargo check --workspace --target x86_64-pc-windows-msvc --locked— clean.cargo run -p xtask -- policy— 286 files ok.tiles.rsdevice test needs a GPU and was not run here.Ported from fxceless/victory-fork
af23c65(fork PR #1320) and41f9857(fork PR #1210), GPL-3.0-or-later.@mutlusinan on GitHub · 2026-11-27 20:21 UTC · original
Risk assessment (porting review)
Host::executeissubmit(..., late = false), which holds the submission lock for the whole passage, i.e. the lists have run when it returns.submit_cuthas used exactly this sequence (queue.rs:171-177), andtables_doneskips null lists and lists that still haveearlierwork.nowfilters out entries without a host list).ResourceMinLODClampis measured from mip 0 of the resource per D3D12, so leaving it untouched is spec-correct. The device test that covers it was not run here (needs a GPU).mainate69e39c.@1tsethan on GitHub · 2026-11-27 23:00 UTC · original
Independent Windows validation of PR #223.
Tested commit:
4bdf2b31f95f099091aa192791685ff2ba0c14ce.cargo test --locked -p victory-gpu tiles:: -- --nocapture --test-threads=1Exit: 0.
Tested commit:
4bdf2b31f95f099091aa192791685ff2ba0c14ce.cargo test --locked -p victory-gpu levels_on_demand_on_the_card -- --ignored --nocapture --test-threads=1Exit: 0.
Tested commit:
4bdf2b31f95f099091aa192791685ff2ba0c14ce.cargo test --locked -p victory-gpu levels_on_demand_on_the_card -- --ignored --nocapture --test-threads=1Exit: 0.
Test-specific environment:
VICTORY_TILES_TEST_CARD=1The first explicitly ignored device-test invocation selected the software adapter and passed. The recheck sets
VICTORY_TILES_TEST_CARD=1; its adapter/progress notes are listed separately. The debug layer is not installed.Independent verification with OpenAI Codex assistance. Windows 11 Pro build 26200; Rust 1.98.1 MSVC; Windows SDK libraries from Microsoft.Windows.SDK.CPP.x64 10.0.28000.2957. Test harness used an RTX 3070 Ti / AMD integrated-GPU host; adapter identity was not captured for every test. These are focused checks on the stated PR commit, not gameplay, FPS, or a merged-main integration result.
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.