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

Closed
WASDeKeys wants to merge 4 commits from upstream-pr/1039 into main
WASDeKeys commented 2026-11-24 10:47:19 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by WASDeKeys on 2026-11-24T10:47:19Z.


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.
<!-- greyfinch-sync:ivall/xcl:issue:6580060498 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1039). Originally posted by [WASDeKeys](https://github.com/WASDeKeys) on 2026-11-24T10:47:19Z. --- 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.
WASDeKeys commented 2026-11-24 11:06:00 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by WASDeKeys on 2026-11-24T10:53:04Z.


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?

<!-- greyfinch-sync:ivall/xcl:comment:7129371950 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1039#issuecomment-7129371950). Originally posted by [WASDeKeys](https://github.com/WASDeKeys) on 2026-11-24T10:53:04Z. --- 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?
upstream-sync closed this pull request 2026-11-24 12:05:15 +00:00
DavidM1911 commented 2026-11-24 12:05:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T11:27:35Z.


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

  1. VFS: reject removal of non-empty virtual directories (+test) — overlaps with open PR #1033 (same issue #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 #1042 for issue #965 (and #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.

<!-- greyfinch-sync:ivall/xcl:comment:7130124710 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1039#issuecomment-7130124710). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T11:27:35Z. --- Heads-up on scope: this branch bundles three unrelated changes — 1. `VFS: reject removal of non-empty virtual directories` (+test) — overlaps with open PR #1033 (same issue #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 #1042 for issue #965 (and #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.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!1032
No description provided.