Tests: cover tiled mip claims without a device #1354

Open
github-bot wants to merge 1 commit from github-bot/gh-1354 into main AGit
Owner

@⁠anes66 on GitHub · 2026-11-26 17:48 UTC · original
anes66:test/tiles-cpu-claim-coverage → main · +132 −0 · 1 files · 1 commits · draft

Tiled mip claims can now be checked without creating a device. The three tests cover 9,120 backing/request combinations, cancellation and retry, packed-mip groups, eight concurrent claimers, and 2D/array SRV ranges with their LOD clamp and plane/array metadata preserved.

Only tests are added. This complements the device-backed checks relevant to #776; it does not establish a fix for its device loss or for memory exhaustion.

Tested on Windows 10 x64, Rust 1.100.0:

  • cargo test --locked -p victory-gpu --lib cpu_claim_tests -j2 -- --nocapture --test-threads=1: 3 passed, 0 failed, 0 ignored, no device calls or skips.
  • Two negative controls: leaving cancelled claims set, and returning one packed mip instead of the packed group, each fail the matrix. Both mutations were reverted before the final passing run.
  • cargo clippy --locked -p victory-gpu --lib --tests -j2 -- -D warnings -A deprecated: passed. The deprecation allowance is for the newer local compiler's fetch_update warnings.

GPU tests and the full workspace suite were not run locally. Main at e4245f3 currently fails CI's repository policy check because two existing source files exceed the size limit; this change does not touch those files. Kept as a draft pending CI and review.

**@⁠anes66** on GitHub · 2026-11-26 17:48 UTC · [original](https://github.com/fxceless/victory-fork/pull/1354) `anes66:test/tiles-cpu-claim-coverage` → `main` · +132 −0 · 1 files · 1 commits · draft Tiled mip claims can now be checked without creating a device. The three tests cover 9,120 backing/request combinations, cancellation and retry, packed-mip groups, eight concurrent claimers, and 2D/array SRV ranges with their LOD clamp and plane/array metadata preserved. Only tests are added. This complements the device-backed checks relevant to #776; it does not establish a fix for its device loss or for memory exhaustion. Tested on Windows 10 x64, Rust 1.100.0: - `cargo test --locked -p victory-gpu --lib cpu_claim_tests -j2 -- --nocapture --test-threads=1`: 3 passed, 0 failed, 0 ignored, no device calls or skips. - Two negative controls: leaving cancelled claims set, and returning one packed mip instead of the packed group, each fail the matrix. Both mutations were reverted before the final passing run. - `cargo clippy --locked -p victory-gpu --lib --tests -j2 -- -D warnings -A deprecated`: passed. The deprecation allowance is for the newer local compiler's `fetch_update` warnings. GPU tests and the full workspace suite were not run locally. Main at `e4245f3` currently fails CI's repository policy check because two existing source files exceed the size limit; this change does not touch those files. Kept as a draft pending CI and review.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 17:48:40 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1354/head:github-bot/gh-1354'
git switch 'github-bot/gh-1354'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1354'
git switch 'github-bot/gh-1354'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1354'
git switch 'github-bot/gh-1354'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1354'
git switch 'main'
git merge --squash 'github-bot/gh-1354'
git switch 'main'
git merge --ff-only 'github-bot/gh-1354'
git switch 'main'
git merge 'github-bot/gh-1354'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.