Shaders: test first-active-lane isolation in wave32 #846
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/852"
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 thatirishguyyy on 2026-11-24T06:48:58Z.
What is in it
v_readfirstlanewith different EXEC masks and lane values in the two halves of one hardware wave.Tested
32.0.32029.2010), Ryzen 7 7800X3D, Rust1.100.0, release build atc8b26b4onbeaa245.cargo test --workspace --release --locked --offline -- --test-threads=4— 716 passed, 0 failed, 41 ignored. Both graphics draws exercised both halves, and no GPU tests reported a skip.5/64instead of37/64for the upper half and failed as expected.Not tested
AI use
Imported from ivall/xcl. Originally posted by milas6669 on 2026-11-24T07:02:34Z.
Test report on
c8b26b4(PR head; its base ismainbeaa245, which is stillmain; no merge conflict).Tested
x86_64-pc-windows-msvc, debugcargo test --workspace --no-fail-fast -- --test-threads=4; the same command onmainbeaa245(this PR's base): 713 passed, 0 failed, 41 ignoredplaced_title_textures_share_vram_and_preserve_pixels(thecubemap extra_pages must be reused at same vaassert),transitions_apply_when_their_list_is_submittedandd32s8_targets_take_their_own_size_of_video_memory(bothPoisonErrorafter the first panic). They are the flaky tests of #718 / #447 and fail onmainin some of my runs (on this exact main run they passed), so they are not from this PR.gpu_pixel_wave32_first_lane_uses_its_own_half,gpu_vertex_wave32_first_lane_uses_its_own_halfandgraphics_wave32_first_lane_uses_its_own_half: all three are counted as passed, but the first two printSKIPPED ... no wave64here, so on this GPU they ran no check; only the third didgpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardwareNot tested
scripts/smoke.ps1(test-only diff)AI use
Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-24T08:09:32Z.
Linux / AMD RDNA3 datapoint.
Merged state: head
c8b26b4onto main1ec4c98, clean merge.Full suite,
cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4: 711 passed, 7 failed, 41 ignored. Failures = the known Wine-lane set from my #42 rows - zero flakes in this lane. wave32 first-active-lane isolation tests green (711 passed, zero flakes in this lane).Not tested: retail titles (none here), Windows, RDNA4.
Counts only, no game data.
Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross
x86_64-pc-windows-gnu,XCL_NETWORK=0, release profile,--test-threads=4. My Linux rows: #42 / #718.AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.
upstream-sync referenced this pull request2026-11-24 11:05:28 +00:00
Imported from ivall/xcl. Originally posted by iggyvilla on 2026-11-24T13:04:36Z.
Test report for
c8b26b4aac2c8f61d62eda067cb6a1b818aeeacf(current head of #852, base1ec4c98; onlycrates/xcl/src/gpu/recomp/tests.rschanges; not merged withmain) on an AMD RDNA2 card. The commands were run, and the output captured, by an agent (omp, DeepSeek V4.1 Flash); the text below was checked against the PR head's source and written by Claude Code (Claude Sonnet 5.5).Tested
cargo test -p xcl --lib --release -- wave32_first_lane: 3 passed, 0 failed, but two of them skipped themselves:cargo test -p xcl --lib --release -- gpu_wave32_program_in_wave64_hardware: 1 passed, 0 failed (695 filtered out, 0.40 s), not skipped.What this shows
[WaveSize(64)]and checks all 64 lanes, passes:V_READFIRSTLANE_B32returns 10 for lanes in the first half and 37 for the second. This is the PR's first execution on native wave64 hardware.tests.rs:4237,runner::skip_test) fired. A skip is not coverage: the vertex/pixel half of this PR is unverified on this card. The probable reason is that the emitted VS/PS carry no[WaveSize]and this driver ran them as 32-lane waves (every pixel reported half 0), but the test cannot tell that apart from a 64-lane wave whose upper half was never active.graphics_wave32_first_lane_uses_its_own_halfonly checks the generated HLSL text, so it passes without touching the GPU.Not tested
[WaveSize(64)]for graphics); no fullcargo test --workspace. Test-only diff, so no smoke pair is needed.main. The raw output was not kept as a file; the blocks above are the agent's capture.AI use
Claude Code, Claude Sonnet 5.5: checked the report against the PR head's
tests.rsand wrote this text; it ran nothing. The build and test runs were done by omp with DeepSeek V4.1 Flash, which changed no code.Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T04:54:07Z.
Tested
Clean detached PR head
c8b26b4aac2c8f61d62eda067cb6a1b818aeeacf. STOR-WINLAB, Windows 11 Enterprise Evaluation 25H2 x64 (26200.9974), Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175, Rust/Cargo 1.100.0 x86_64-pc-windows-msvc, DXC/DXIL 1.9.2609.5, unoptimized test profile.Both GPU fixtures skipped on Arc A770 with
no wave64before shader compilation or draw. Zero graphics assertions executed. Libtest counted 2 passed, 0 failed, 0 ignored, with 2 explicit skips within that passing count.cargo test --locked -p xcl --lib --no-runexited 0 outside the mutex. WithXCL_ADAPTER=A770, these prebuilt commands ran insideInvoke-ArcTest.ps1 -Test. Both children and wrapper exited 0, and each filter excluded 695 tests.The fixtures require one hardware wave64 to exercise two guest wave32 halves. Arc reached the adapter capability check and returned before the isolation readback.
Not tested
Pixel or vertex lane isolation on Arc, shader-stage wave width, the compute or HLSL-text fixtures, the workspace suite, and retail smoke.
AI use
T3 Code / Codex (
gpt-6.2-sol) ran the checked-in fixtures and prepared this report.Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T10:15:45Z.
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!
mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #172Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T20:40:43Z.
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 BBareth on 2026-11-30T09:39:43Z.
merge-check claim
head:
c8b26b4aacImported from ivall/xcl. Originally posted by BBareth on 2026-11-30T09:45:54Z.
merge-check
base:
9dfbe3ea66head:
c8b26b4aacmerge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2887 passed, 2 failed, 51 ignored; failing: gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16, which fails on the base alone too (base: 2885 passed, 1 failed, 51 ignored, 28 SKIPPED lines); and this PR's own
gpu::recomp::tests::graphics_wave32_first_lane_uses_its_own_half, which is new here. It panics atassert!(t.hlsl.contains("rla(v0, first_lane(exec_lo, 0u))")): on current main the generated HLSL of the vertex / pixel form no longer contains that exact text. 30 SKIPPED lines, two more than the base:gpu_pixel_wave32_first_lane_uses_its_own_halfandgpu_vertex_wave32_first_lane_uses_its_own_halfskip withno wave64on this card, so the draw tests did not run here.review: test-only, one file, read in full; nothing unsafe. The blocking point is the failing test above: the codegen test pins four exact HLSL substrings, and at least one has changed on main since the PR's base. It needs a rebase and the assertions brought up to date (or made less dependent on exact text), then a rerun; the two GPU draw tests need a wave64 adapter to say anything.
performance: none; tests only.
verdict: not yet: the PR's own test
graphics_wave32_first_lane_uses_its_own_halffails when merged into current mainhardware / tool and model: RTX 5070 Ti 16 GB, driver 621.24 (32.0.16.2124); i7-12700K; Windows 11 26200. Claude Code, Claude Fable 5.2 read the diff, ran the build and the suite and wrote this check.
Imported from ivall/xcl. Originally posted by saintwolf on 2026-11-30T11:37:02Z.
merge-check claim
head:
c8b26b4aacImported from ivall/xcl. Originally posted by saintwolf on 2026-11-30T11:47:12Z.
merge-check
base:
9dfbe3ea66head:
c8b26b4aacmerge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2883 passed, 6 failed, 51 ignored; SKIPPED: 29 (24 no wave64, 2 no heap windows, 2 no xgameruntime.dll, 1 cannot disable the driver cache 0x887A002D); failing: gpu::recomp::tests::graphics_wave32_first_lane_uses_its_own_half (new in this PR; panics at assertion failed: t.hlsl.contains("rla(v0, first_lane(exec_lo, 0u))")), gpu::dxil::msaa_tests::gpu_direct_image_get_resinfo_d16 (also fails on base
9dfbe3eaalone), and 4 hle::d3d12x::title_textures::tests::* (parallel flake; all 65 title_textures tests pass with --test-threads=1)review: read the full +87/-0 diff in crates/xcl/src/gpu/recomp/tests.rs (test-only). Blocking issue: graphics_wave32_first_lane_uses_its_own_half fails against current main because it pins the exact HLSL substring "rla(v0, first_lane(exec_lo, 0u))", which no longer matches generated HLSL. Not tested: gpu_pixel_wave32_first_lane_uses_its_own_half and gpu_vertex_wave32_first_lane_uses_its_own_half (skipped with no wave64 on RTX 4070 SUPER).
performance: none (test-only PR)
verdict: not yet: graphics_wave32_first_lane_uses_its_own_half fails on current main; update the HLSL assertion and re-verify
hardware / tool and model: NVIDIA GeForce RTX 4070 SUPER (32.0.16.2140), AMD Ryzen 7 7800X3D, Windows 11 Pro 26300, rustc 1.100.0, debug / Antigravity (Gemini 4 Hydrogen)
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:19:07Z.
Triage (#1607) – head
c8b26b4No open or merged PR adds the same tests. It extends gpu_wave32_program_in_wave64_hardware with a v_readfirstlane_b32 under a half-local EXEC, and adds an HLSL-shape check plus VS/PS GPU draws that wave32 first-lane reads stay in their own 32-lane half. The HLSL strings it asserts (xcl_half, the select(and(xcl_w32, ...)) mask pick, WaveReadLaneAt(v, l + 32u * xcl_half)) are in main's emit.rs. Test-only. The GPU parts skip without wave64 hardware, so CI does not run them.
Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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.