Skip to content

[upstream #1089] Skip d32s8_targets_take_their_own_size_of_video_memory on adapters with under 8 GB of dedicated video memory. Fixes #42. - #67

Closed
ufoptg wants to merge 5 commits into
mainfrom
upstream-pr/1089
Closed

ufoptg wants to merge 5 commits into
mainfrom
upstream-pr/1089

Conversation

@ufoptg

@ufoptg ufoptg commented Nov 24, 2026

Copy link
Copy Markdown
Owner

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.

@ivall Could you please add the 'test-only' label to waive the 'smoke.ps1' check for this unit test fix? thanks

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.

Mirror of xcl-dev#1089 (auto-synced, do not edit).

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 #42
Assisted by : Antigravity IDE (Claude Sonnet 4.6)
Move the `< 8 GB VRAM` skip check before acquiring `VRAM_TEST_LOCK`.
On GPUs under 8 GiB, the test now skips immediately without contending for
or risking poisoning from `VRAM_TEST_LOCK`.

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

ufoptg commented Nov 25, 2026

Copy link
Copy Markdown
Owner Author

Upstream PR xcl-dev#1089 was closed or merged.

@ufoptg ufoptg closed this Nov 25, 2026
@ufoptg
ufoptg deleted the upstream-pr/1089 branch November 25, 2026 00:12
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.

2 participants