Repository navigation
Tests: cover D3D12.X frame clock events, handles, and statistics - #2367
amazedturnip wants to merge 1 commit into
Conversation
Add integration tests in crates/xcl/tests/frame_clock.rs pinning co-scheduled type-0/type-2 events, WaitFrameEventX flags (WAIT_ALL, TOKEN_ON_TIMEOUT), ancillary signaled indices (-2, 1, -1), token_in origin refresh, error contracts, and activity() counters.
|
On NVIDIA / this machine, Tested:
Why: with a scratch probe inserted between A way to make it independent of timing: give this test a frame interval long enough that no tick can fall between Not tested: a release build, AMD, a title. AI use: Claude Code (Claude Opus 5.5) ran the tests and the scratch probe, and wrote this report. |
Add integration tests in
crates/xcl/tests/frame_clock.rscoveringxcl::hle::d3d12x::framepublic contracts not exercised by the inline unit tests: co-scheduled type-0/type-2 events at offset 0,WaitFrameEventXflags (WAIT_ALL,TOKEN_ON_TIMEOUT), ancillary signaled-index reporting (-2,1,-1),token_inorigin refresh, error paths, andactivity()counter deltas.What is in it
crates/xcl/tests/frame_clock.rs: add integration tests covering co-scheduled type-0/type-2 events at offset 0,WaitFrameEventXflags (WAIT_ALL,TOKEN_ON_TIMEOUT), ancillary handle signaled-index reporting (-2,1,-1),token_inorigin refresh,ScheduleFrameEventX/WaitFrameEventX/GetFrameStatisticsXerror contracts, andactivity()counter deltas.Tested
AMD Radeon(TM) Graphics (driver 32.0.21043.19003, DXC 1.9.2609, native wave64),XCL_ADAPTER=radeon):cargo test --workspace -- --test-threads=2— 1218 passed, 2 failed, 26 ignored (SKIPPED GPU tests: 1 (f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426 semantics differ from the console's))), 1 (f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426 semantics differ from the console's))), 1 (f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426 semantics differ from the console's))), 1 (f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426 semantics differ from the console's))), 1 (f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426 semantics differ from the console's))), 1 (f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426 semantics differ from the console's))), 1 (cannot disable the driver cache (Windows Developer Mode is required): The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D)); pre-existing upstream/main failures excluded: gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1, gpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier)Not tested
AI use