Repository navigation
Conversation
The title-texture and VRAM tests serialise on TEST_LOCK and VRAM_TEST_LOCK and took them with .lock().unwrap(). When one holder panics (on main, placed_title_textures_share_vram_and_preserve_pixels fails on RDNA2, the packed-mip case xcl-dev#470 fixes), the mutex is poisoned and every later test that takes it fails with PoisonError, though it passes alone: transitions_apply_when_their_list_is_submitted and d32s8_targets_take_their_own_size_of_video_memory. The locks guard no data, so take them the way the crate's other test locks already do (ASYNC_TEST_LOCK, READING_CB_TEST_LOCK): unwrap_or_else(|e| e.into_inner()). Test code only. Measured on an RX 6650 XT, cargo test --workspace -- --test-threads=4: lib tests 647 passed, 3 failed before; 649 passed, 1 failed after. AI-assisted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Independent test report on Tested
Not tested
AI use
|
|
Tested — independent validation of
Not tested: retail title / AI use: OpenCode with DeepSeek V4.1 Flash 1017 ran the tests and drafted this report. |
|
Tested
Not tested
AI use
|
|
Test run of Tested
Review: Taking the guard with Not tested: no retail title or regression run (I have no unpacked game), no Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code. |
|
Independent release-mode validation on NVIDIA. Tested
Commands cargo test --release -p xcl --lib --locked -- title_textures d32s8_targets_take_their_own_size_of_video_memory --test-threads=4 --show-output
cargo build --release --workspace --locked
cargo test --release --workspace --locked --no-fail-fast -- --test-threads=4 --show-outputAll four directly affected tests passed in both the focused and full workspace runs. The real D3D12.X backend selected the RTX 4060. No hangs or cascading PoisonError failures were observed. Two explicit GPU capability skips, included in the passed count:
Ten additional sample-dependent tests explicitly skipped because their sample variables were unset. Both test commands exited with code 0. The worktree remained clean. Not tested: deliberately poisoned mutexes (already covered independently by CryingLaughing), recovery after GPU state corruption, baseline comparison, AMD/Intel GPUs, native wave64 or retail titles. No blocking findings within the tested scope. AI use: ChatGPT (GPT-6.2) assisted with diff review, test planning, log analysis and reporting. All commands were executed locally by me. |
|
Test run of Tested
Not tested
AI-assisted: Claude Code (Claude Opus 5.5) ran the tests and wrote this report. |
Empirical test report (84b6645)Hardware / environment
Commands and results
Observed behavior The CPU transition test and the GPU mirror test passed. The mirror test logged the real Arc A770 backend. The placed-texture test printed Not tested Full GPU workspace suite, game smoke runs, and recovery after an intentionally poisoned mutex. The placed-texture assertions were skipped, and D32S8 assertion coverage was unconfirmed. AI use Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr673-focused.log and published. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
The title-texture and VRAM tests serialise on
TEST_LOCK(title_textures.rs) andVRAM_TEST_LOCK(vram.rs) and take them with.lock().unwrap(). When one holder panics, the mutex is poisoned and every later test that takes it fails withPoisonError, though each passes alone. Onmainon RDNA2,placed_title_textures_share_vram_and_preserve_pixelsfails (the packed-mip case open PR #470 fixes), and it takestransitions_apply_when_their_list_is_submittedandd32s8_targets_take_their_own_size_of_video_memorydown with it. The locks guard no data, so they are now taken the way the crate's other test locks already are (ASYNC_TEST_LOCK,READING_CB_TEST_LOCK):unwrap_or_else(|e| e.into_inner()).What is in it
crates/xcl/src/hle/d3d12x/title_textures.rs,crates/xcl/src/hle/d3d12x/vram.rs: the sixlock().unwrap()calls on these two test locks, all in#[cfg(test)]code. No runtime code changes; 6 lines changed.Tested
cargo test --workspace --no-fail-fast -- --test-threads=4, whole workspace:maindd2ae9a: 687 passed, 3 failed, 41 ignored. The 3 failures are the D3D12.X: map a one-slice title texture's packed mips where D3D12 addresses them #470 test and the twoPoisonErrorfailures named above.placed_title_textures_share_vram_and_preserve_pixelsstill fails, the D3D12.X: map a one-slice title texture's packed mips where D3D12 addresses them #470 case.SKIPPEDGPU tests on this adapter.Regression run
The diff is test-only (
#[cfg(test)]code in two runtime files); these runs are there so the check passes without atest-onlylabel. 60 s each,XCL_NETWORK=0, the same retail title.main:This PR:
Not tested
AI use
🤖 Generated with Claude Code