Tests: VOP1 bit scans, bit reversal and not on the GPU #736
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!736
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-736"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@marquezinii on GitHub · 2026-11-24 04:20 UTC · original
marquezinii:tests/vop1-bit-scans→main· +89 −0 · 1 files · 1 commits · openv_ffbh_u32,v_ffbl_b32,v_ffbh_i32,v_bfrev_b32andv_not_b32are translated byemit.rsbut no test runs them, and no open PR covers them (#445, #638, #703 and #699 take the other untested integer ops). This adds one GPU test for the five. Test only: nothing outsidetests.rschanges.What is in it
gpu_vop1_bit_scans_and_reverse(crates/xcl/src/gpu/recomp/tests.rs): one kernel run throughgpu_waves. Inputs are 20 edge words (0, 1, -1, -2, the sign bit alone and with bit 0,0x7FFFFFFF,0xBFFFFFFF,0xC0000000, …) followed by LCG words, half of them with their low bits cleared so the scans from the bottom see long zero runs. Each result is compared with the ISA pseudo-code written as the loops it describes, not the closed formsemit.rsuses. Besides VGPR sources it covers an SGPR source, the inline constant 0 and a literal.Tested
stable-x86_64-pc-windows-msvc, debug; DXC 1.9.2602.17 (Windows SDK 10.0.26100.0)cargo test --workspace -- --test-threads=1on this branch: 702 passed, 0 failed, 41 ignoredcargo test --workspace -- --test-threads=4: the first run onmainf4ce27cwas 701 passed, 0 failed, 41 ignored. After that, every run of the same command failed 3 tests, with this branch and withmainalike:placed_title_textures_share_vram_and_preserve_pixels("cubemap extra_pages must be reused at same va"), thentransitions_apply_when_their_list_is_submittedandd32s8_targets_take_their_own_size_of_video_memoryon the poisoned lock it leaves. They pass alone and single-threaded. This looks like the interaction in #343 / #447, not this change.gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware(no wave64)emit.rsby hand (and reverted) it reported wrong results:v_ffbh_u32without its zero case (33),ffbh_iwithout the sign inversion (48),v_bfrev_b32as a plain move (61). Removing the zero case ofv_ffbl_b32does not fail it, because HLSL'sfirstbitlow(0)is already0xFFFFFFFF.Regression run
Not needed: the PR changes only
crates/xcl/src/gpu/recomp/tests.rs.Not tested
gpu_wavesran the kernel as wave32AI use
@MesshM on GitHub · 2026-11-24 04:27 UTC · original
Test run of
490d605cf249e5097cb27daff72987b491a95180on AMD RDNA4. I merged it onto currentmain64b3f35locally (clean merge) and tested that tree.Tested
stable-x86_64-pc-windows-msvc, debugcargo build --workspace+cargo test --workspace -- --test-threads=4on the merge: 702 passed, 0 failed, 41 ignored, exit code 0;xcllib tests 661 passed, 0 failed, 21 ignoredSKIPPED;gpu_vop1_bit_scans_and_reversepasses, as wave64 and wave32 (both native here).Review: The references match the ISA: the bit scans return −1 (0xFFFFFFFF) for 0,
v_ffbh_i32also for −1, andv_bfrev_b32/v_not_b32are plain bit operations. I found nothing to change.Not tested: no retail title or regression run (I have no unpacked game), no
XCL_SAMPLE_*tests, release build; the PR's head on its old base was not run, only its merge ontomain.Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.
@ItsMrDubey on GitHub · 2026-11-24 04:57 UTC · original
Test report for
490d605cf249e5097cb27daff72987b491a95180(this PR's head)Tested
stable-x86_64-pc-windows-msvc), debug; DXC 1.9.2602.17 from Windows SDK 10.0.2610017 test binaries: 701 passed, 1 failed, 41 ignored. Same machine,
main64b3f3559: 700 passed, 1 failed, 41 ignored.This PR's tests:
gpu::recomp::tests::gpu_vop1_bit_scans_and_reverse: okFailures:
hle::kernelx::tests::xmem_virtual_query_marks_cpu_readable_memoryfails on this machine on every run, on this PR's head and onmain64b3f3559alike (5 of 5 reruns onmain), so it is not from this PR. #650 fixes it here.SKIPPED (no wave64 on this GPU):
gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.AI use: Claude Code (Claude Opus 5.5) ran the builds and tests and wrote this report from their output.
@JJAutoCompare on GitHub · 2026-11-25 06:10 UTC · original
Empirical test report (
490d605c)PR #736, commit
490d605cf249e5097cb27daff72987b491a95180.Hardware / environment
XCL_ADAPTER=A770. Windows x64 build 26200, AMD64 Family 23 Model 113 Stepping 0. GPU driver version was not recorded.rustc 1.100.0 (0ef1bc386 2026-11-09), hostx86_64-pc-windows-msvc. DXC and DXIL1.9.2609.5(DXC commit01b62ad4). Cargo test profile unoptimized, with debug info and incremental compilation disabled.Commands and results
cargo test -p xcl --lib --no-runcompleted outside the GPU lock (exit 0).xcl-00e28da3621caf64.exe gpu::recomp::tests::gpu_vop1_bit_scans_and_reverse --exact --nocapture --test-threads=1ran insideInvoke-ArcTest.ps1withRUST_TEST_NOCAPTURE=1(exit 0).Observed behavior
v_ffbh_u32,v_ffbl_b32,v_ffbh_i32,v_bfrev_b32, andv_not_b32.Not tested
The full GPU workspace suite and game smoke runs were omitted. This report covers one fixture on one adapter.
AI use
Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr736-focused.log and published.
@DavidM1911 on GitHub · 2026-11-25 11:38 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.