Tests: cover V_BFE_U32 width and offset bounds on the GPU #1616
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1626"
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?
Imported from ivall/xcl. Originally posted by pane33 on 2026-11-24T18:23:50Z.
Add GPU coverage for the width and offset bounds of
V_BFE_U32. The test checks zero width, the maximum effective width, masking of both operands, and extraction across the end of the source word.What is in it
gpu_unsigned_bfe_width_and_offset_boundstocrates/xcl/src/gpu/recomp/tests.rs.Tested
32.0.16.2124, Rust and Cargo1.100.0(x86_64-pc-windows-msvc), DXC1.9.2602.17, debug profile. Tested base9e3831e1f570d3646e53ab753b19ec07eb8f1485with the proposed diff applied.cargo test -p xcl --lib gpu_unsigned_bfe_width_and_offset_bounds -- --nocapture— 1 passed, 0 failed, 0 ignored, 0 GPU skips, 748 filtered out. All 32 wave32 lanes matched their expected results, covering all five cases.powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\scripts\test.ps1withRUST_TEST_NOCAPTURE=1— 777 passed as reported by Cargo, 0 failed, 41 ignored, 0 filtered out. The pass count includes the three GPU skips below.gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware(no wave64), andheap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).git diff --check— passed.Regression run
tests.rs. The runtime smoke requirement does not apply.Not tested
XCL_SAMPLE_*variables were unset.AI use
Imported from ivall/xcl. Originally posted by Belox17 on 2026-11-24T20:02:49Z.
Test report for
d6f33d6fon NVIDIA (RTX 3060 Ti): the new GPU test passes and nothing else changesTested
d6f33d6fas is (base9e3831e), clean tree.gpu_unsigned_bfe_width_and_offset_bounds) withcargo test -p xcl --lib <name>: 1 passed (the GPU part ran on this adapter, noSKIPPED).cargo test --workspace -- --test-threads=4on the head: 777 passed, 0 failed, 41 ignored; its base9e3831eon the same machine: 776 passed, 0 failed, 41 ignored. SKIPPED on both:gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware(no wave64),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).mainc160d86e(clean merge): 859 passed, 0 failed, 42 ignored;mainalone: 858 passed, 0 failed, 42 ignored, the same three SKIPPED as above.Not tested
AI use: Claude Code (Claude Opus 5.5) ran the commands on this machine and wrote this report from those runs.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T20:46:40Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~22 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-28T08:00:48Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:19:42Z.
Triage (#1607) – head
d6f33d6No merged test covers these
v_bfe_u32cases: main has onlygpu_signed_bfe_arithmetic_shiftand BFEs with constant fields. #2171 (opened later, a DXIL lowering change) addsgpu_v_bfe_edge_cases, a superset of these cases for u32 and i32. Keep only one of the two if #2171 lands.The expected values match
(S0 >> (S1 & 31)) & ((1 << (S2 & 31)) - 1). No problems found in the diff.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Imported from ivall/xcl. Originally posted by grathepic on 2026-12-03T00:02:25Z.
merge-check
078358a058d6f33d6f33git diff --checkexit 0)cargo +1.98.1-x86_64-pc-windows-msvc build --offline --locked --workspace— exit 0 (36 pre-existing warnings inxcllib)cargo +1.98.1-x86_64-pc-windows-msvc test --offline --locked --workspace --no-fail-fast -- --test-threads=4(withXCL_DXC_DIR=C:\VulkanSDK\1.4.363.0\Bin) — 3006 passed, 1 failed, 52 ignored across 44 harnesses; 27 SKIPPED (22 no wave64, 2 no heap windows, 1 no GPU_UPLOAD heaps, 1 no dxil.dll, 1 cannot disable the driver cache (Windows Developer Mode required)). New GPU testgpu::recomp::tests::gpu_unsigned_bfe_width_and_offset_boundsran and passed with 0 skips. The single failure was an unrelated pre-existing 5 s late-release timeout flake intests\gpu_two_pass_cache_e2e.rs:584(two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs); immediate reruncargo +1.98.1-x86_64-pc-windows-msvc test --offline --locked -p xcl --test gpu_two_pass_cache_e2e -- --nocapturepassed (1 passed, 0 failed in 5.87s).crates/xcl/src/gpu/recomp/tests.rswith zero production code or dependency changes)+33/-0), placed alongsidegpu_signed_bfe_arithmetic_shiftand usinggpu_waves()(wave32 on NVIDIA, wave64+wave32 on AMD, skips cleanly without GPU/DXC). Pre-fills destinationv4withu32::MAXand verifies all 5 RDNA2V_BFE_U32boundary cases (width = 0,width = 31, 5-bit width masking32 -> 0, straddling bit 31offset = 30, width = 6, and combined offset+width masking40 -> 8, 36 -> 4). Note: open PR #2171 (currently dirty/unmerged) includes a superset BFE test, per #1607 triage.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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.