Repository navigation
Tests: align XMemVirtualQuery buffers and verify CPU flags - #650
yaandrei2000 wants to merge 1 commit into
Conversation
|
Test report for 53301d8 (this PR's head) Tested
Not tested
AI use
|
|
Test run of Tested
Review: Duplicate of #656 (open), which fixes the same misaligned buffer with an 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. |
Use aligned storage for VirtualQueryEx and seed the output flags so the tests catch a missing write for reserved and guarded pages. Check the state and protection returned for the guard page. When a temporary mutation wrote flags only for readable pages, both tests in 53301d8 passed and both updated tests failed. Assisted-by: OpenAI Codex (GPT-6 family, exact variant unavailable)
53301d8 to
7fdea65
Compare
|
Test report for Tested
17 test binaries: 698 passed, 3 failed, 41 ignored. Same machine, This PR's tests:
On this machine the failure is not intermittent: Failures:
SKIPPED (no wave64 on this GPU): AI use: Claude Code (Claude Opus 5.5) ran the builds and tests and wrote this report from their output. |
|
Tested on Windows 10 with Rust 1.90, where
Not tested: the whole suite with this PR applied; #656 (same failure, smaller change). AI use: Claude Code, Claude Opus 5.5 ran the tests and wrote this comment. |
|
Regression run of Against the limits in CONTRIBUTING.md: 100 % of AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, AI use: Claude Code (Claude Opus 5.5) built both trees and ran |
Fix intermittent failures in the XMemVirtualQuery tests. The old byte array could be misaligned for VirtualQueryEx on Windows x64. Zero-initialized flags could also mask a missing write for reserved or guarded pages. Related to #656.
What is in it
crates/xcl/src/hle/kernelx.rs, share a C-layoutQueryInfobetween the two tests. Check the buffer layout, start each query withcpu_flags = u32::MAX, and verifyMEM_RESERVEfor the reserved case andMEM_COMMITwithPAGE_READWRITE | PAGE_GUARDfor the guard case.Tested
Tested commit
7fdea657c96e45e9630b6db9016d7b5f8b7746cbin a clean worktree based onf4ce27ceb6d1b0576d0c659b713b674778bf1968. Windows 11 build 26300.9974, Ryzen 5 5500, GTX 1660 Ti (driver 617.42), Rust 1.88.0 (x86_64-pc-windows-msvc), debug, DXC 1.9.2609.5.cpu_flagsonly for readable pages. Both tests from53301d8still passed. Both updated tests failed on the reserved and guard-page cases withcpu_flags & 3 == 3(expected0).--no-fail-fastcommands on cleanf4ce27c. It reported 697 passed, 4 failed, and 41 ignored. Both trees failed the cubemap VRAM reuse assertion inplaced_title_textures_share_vram_and_preserve_pixels. The resulting poisoned locks also failedtransitions_apply_when_their_list_is_submittedandd32s8_targets_take_their_own_size_of_video_memory. Cleanmainalso failedxmem_virtual_query_marks_cpu_readable_memory(returned0, expected1). Cubemap check #447 and Poisoned test locks #673SKIPPEDresults as passes in each workspace run:gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware.Earlier independent checks of
53301d8cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4on the exact commit reported 688 passed, 0 failed, 41 ignored, and two Wave64 skips included in the pass count. Both focused tests passed. NVIDIA report53301d8onto91f9a5ereported 692 passed, 0 failed, 41 ignored, and 0 skips. Both focused tests passed. The commands werecargo build --workspaceandcargo test --workspace -- --test-threads=4. AMD reportRegression run
Please apply the
test-onlylabel after reviewing this revision.Not tested
Retail titles, cases requiring external
XCL_SAMPLE_*data, release builds, and the updated tests on AMD GPUs.AI use
ChatGPT (GPT-6.2) helped diagnose and write the original fix. OpenAI Codex (GPT-6 family, exact variant unavailable) strengthened the tests, ran and checked the mutation and workspace tests, and drafted this description.