Repository navigation
Conversation
Fix the legacy emitter’s repeated exit guard and jumps into an else arm. Verify both with small synthetic control-flow programs. Refs: xcl-dev#701 Assisted-by: GPT-6.2 Sol
Test report: #765 on NVIDIA under Wine + vkd3d-proton (Linux)This complements the RX 9070 run in the description with a 32-lane NVIDIA GPU, through the same kind of stack (Wine, vkd3d-proton 3.1, DXC 1.9.2609.5). Setup
Results (lib test binary under Wine,
Not tested
AI use: Claude Code (Claude Opus 5.5) built the tests, ran them on the machine above and wrote this report. The counts are pasted from those runs. The account owner asked for test reports to be posted while they were away and has not reviewed this one. |
|
Hardware check of Tested
Regression run PR ( Not tested
AI use
|
|
Native Windows cross-check for Native Windows GPU suite — Paired retail smoke — same title, same duration, release builds, no uncommitted changes; both blocks verbatim. Main ( Head ( Both steady 60 presents / 2 s, no device removal — a no-regression check on the retail boot/menus path, not a repro of #701's shader (that stays covered by your synthetic regressions). AI use: GPT-6.2 Astra (API model selector) in DSH ran the suite and both smokes and drafted this comment; the human contributor reviewed the numbers before posting. |
|
Independent native Windows NVIDIA RTX 5080 build/test run and code review at head Code Review
Tested
Not tested
AI use: Antigravity (Gemini 4 Neon) performed the code review, ran the RTX 5080 workspace tests, and drafted this comment. |
|
A random-program check of
On #729, seeds 431 and 3252 also give wrong SGPRs on the GPU with 16 inputs each, and identical ones on Tested: NVIDIA GeForce RTX 4060 Laptop GPU (driver 616.87, 32-lane waves, so wave64 runs split), Windows 11 26200, Rust 1.100.0 MSVC, DXC 1.8.2502.11, debug. Not tested: AMD / native wave64; the harness's general-form (#172) checks, which this adaptation drops. AI-assisted: Claude Code, Claude Opus 5.5. |
`if (a && b) { ... } else { E }` compiles to two conditional jumps to the
start of E. The first became the if/else; the second, inside the if
branch, became a nested plain `if` ending where the if branch ends, so
else_ok saw no jump into the else (a nested if raises no flag). When the
second jump was taken, HLSL's `else` did not run (upstream xcl-dev#701, shape 2).
else_ok now refuses an else whenever any branch of the if branch targets
[t, u), including t itself; the jump then raises the skip flag and the
code after it runs under the flag's guard. `edges` is in instruction
order, so the scan is a binary search plus the branches of the if branch.
The check in structurable_uncached for a branch to the else's start is
now unreachable and goes.
Retail shaders.rpf, all 2 682 compute programs (split wave64, 4 windows),
checked by a static walk of the HLSL against the machine successors:
390 wrong transitions in 363 programs before (301 CS_RaytracingResolve
variants, CS_GatherRaymarchedLocalLightsClassified*, CS_ResolveVBuffer,
CS_MergeQuads, ...; 14 of them skipped an early s_endpgm), 0 after. The
HLSL of exactly those 363 programs changes (+18 KB of 3.85 GB).
Tests from xcl-dev#765, with the text tests in the single `xcl_skip` spelling:
the GPU test gives [1, 1, 0, 0, 1] instead of [1, 1, 0, 1, 1] without
this change (RTX 5090, wave32 split form). xcl-dev#765's guard-reopening hunk
is not needed after c70c9f0 (a guard fails on any flag); its two-breaks
test passes without it.
Ported from xcl-dev#765 (Abuudiii).
Assisted-by: omp (Claude Opus 5.5)
|
Independent confirmation of this fix on current Tested
Not tested
The rebased head and a second regression test (a compute dispatch with two branches to the else arm) are ready on our side. We can't push them to a fork just now, because our token lacks the AI use: Claude Code (Claude Opus 5.5) and Codex helpers ran the check and the GPU tests on our machine; Claude Code wrote this. |
|
Follow-up to the check above: AI use: a Codex helper ran the suite on our machine; Claude Code wrote this. |
|
@Abuudiii the rebase I mentioned above is now on a branch you can pull: AI use: Claude Code (Claude Opus 5.5) did the rebase and wrote this. |
|
Verification on RTX 3060 Ti (Windows 11): merge conflict with current |
Fixes #701 in the legacy structured emitter. Reopen a skip guard when a later branch can set it and preserve actual jumps into the else arm.
What is in it
Tested
cargo test --workspace --no-fail-fast -- --test-threads=1: 704 passed, 0 failed, 41 ignored; the two wave64 tests skipped (gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware). All three PR regressions ran and passed.64b3f35:cargo test --workspace -- --test-threads=4: 704 passed, 0 failed, 41 ignored, no GPU skips.Regression run
Native Windows runs reported by @ryosen0.
Not tested
AI use