Skip to content

Tests: skip d32s8 memory test on GPUs with under 8 GB VRAM (#42) - #1039

Closed
WASDeKeys wants to merge 4 commits into
xcl-dev:mainfrom
WASDeKeys:main
Closed

WASDeKeys wants to merge 4 commits into
xcl-dev:mainfrom
WASDeKeys:main

Conversation

@WASDeKeys

@WASDeKeys WASDeKeys commented Nov 24, 2026 •

Copy link
Copy Markdown

Skip d32s8_targets_take_their_own_size_of_video_memory on adapters with under 8 GB of dedicated video memory. Fixes #42.

What is in it

  • crates/xcl/src/hle/d3d12x/vram.rs: check DedicatedVideoMemory and call skip_test("< 8 GB VRAM") if under 8 GiB.

Tested

  • NVIDIA GeForce RTX 3050 6GB Laptop GPU (driver 595.97, 6144 MiB), AMD64 CPU, Windows 11 x64 (build 26200), rustc 1.100.0 (MSVC x64, debug).
  • cargo test --workspace -- --test-threads=4: 697 passed, 0 failed, 33 ignored.
  • SKIPPED GPU tests on this adapter: d32s8_targets_take_their_own_size_of_video_memory: < 8 GB VRAM.

This PR only touches #[cfg(test)] mod tests in crates/xcl/src/hle/d3d12x/vram.rs. Could you please apply the test-only label to waive the regression run per CONTRIBUTING.md?

Regression run
Test-only diff (touches only #[cfg(test)] mod tests in crates/xcl/src/hle/d3d12x/vram.rs). Requesting the test-only label per CONTRIBUTING.md.

Not tested

  • Retail game runtime changes (test-only change in unit tests).

AI use

  • Antigravity IDE (Claude Sonnet 4.6): analyzed VRAM allocation concurrency across thread counts and wrote the skip guard.

Under `--test-threads=4`, the full test suite exhausted VRAM (0x8007000E) on
a 6 GB GPU when `d32s8_targets_take_their_own_size_of_video_memory` placed
14 4K D32S8 targets (~935 MB) concurrently with other GPU tests. The
mutex poison from that failure then cascaded into title_textures tests.
All tests pass at `--test-threads=1` and `--test-threads=2`.

Check the adapter's dedicated video memory and call `skip_test("< 8 GB VRAM")`
when under 8 GiB so the suite completes cleanly on 6 GB and smaller adapters.

Fixes ivall#42
Assisted by : Antigravity IDE (Claude Sonnet 4.6)
@WASDeKeys

Copy link
Copy Markdown
Author

This PR only touches #[cfg(test)] mod tests in crates/xcl/src/hle/d3d12x/vram.rs. Could you please apply the test-only label to waive the regression run per CONTRIBUTING.md?

@WASDeKeys WASDeKeys closed this Nov 24, 2026
@DavidM1911

Copy link
Copy Markdown
Contributor

Heads-up on scope: this branch bundles three unrelated changes —

  1. VFS: reject removal of non-empty virtual directories (+test) — overlaps with open PR VFS: RemoveDirectoryW fails on a non-empty merged directory #1033 (same issue VFS: RemoveDirectoryW on a non-empty game folder succeeds and hides the folder in every later run #997); the implementations differ slightly (check_original_dir_empty vs a merged-view check in remove_dir).
  2. D3D12.X: a format without tiled support is not reservable… — vram.rs/desc.rs, unrelated to the rest.
  3. PR checks: reject untouched PR template placeholders — same fix as open PR PR checks: the template's placeholder lines do not count as answers #1042 for issue PR checks: an untouched PR template passes the Tested and AI use checks #965 (and PR checks: reject untouched PR template placeholders (#965) #1037).

python scripts/test_pr_check.py on this branch merged with current main: 9 tests OK. The pr_check part works, but per CONTRIBUTING ("one logical change per PR") these probably want splitting — or at least a note on which parts are meant to land together.

AI use: review by Devin (Cognition, SWE-2); no code changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GPU test results: NVIDIA RTX 3080 (wave32) and AMD RDNA2 iGPU (no mesh shaders)

2 participants