Repository navigation
Shaders: preserve first active lane reads across divergent switches - #2192
gloger2003 wants to merge 1 commit into
Conversation
Broadcast the first active lane i32 value with a masked wave reduction. On the RX 7800 XT the original opcode returns a case-local value in fuzz seed 722. Pin that case in a standalone test. Assisted-by: OpenAI Codex (GPT-6.2 Sol, high reasoning effort, Fast mode)
|
Windows software-adapter check on RDNA2 translation scope. I also translated ten synthetic compute entries on Windows with the patch and with only its Predicate reuse. The three lane-setup sites already compute AI use — OpenAI Codex (GPT-6) wrote the local fixture and ran the checks. |
|
Independent native Windows check of exact PR head Environment: Windows 11 build 26200; Ryzen 9 5980HX; Radeon RX 6800M, driver PR head: The seed-722 regression passed 1/0/0, with no skip: the log says Test-only control: I kept the new seed-722 test and restored only Scope: Seed 722 did not reproduce the parent behavior reported on the RX 7800 XT on this RX 6800M/driver. This run confirms that the focused test executes on this card, but it does not demonstrate a before/after correction here. I did not run the full workspace suite or a retail-title comparison on this PR. AI use: OpenAI Codex (GPT-6; exact variant not exposed in this session) ran both variants, restored the clean PR head, checked the GPU comparison counts, and drafted this report. |
…1860, xcl-dev#1913, xcl-dev#2192, xcl-dev#1946, xcl-dev#2237 Integrates XG CopyFromSubresource 7-arg ABI (xcl-dev#684), DirectStorage physical-page list re-read (xcl-dev#1405), vkd3d-proton in-place vtable patching with UnadoptGuard composition (xcl-dev#1395), single-back-edge Direct DXIL CFG (xcl-dev#1860), wave64 graphics Direct DXIL guard (xcl-dev#1913), and AMD RDNA2-4 DXIL fuzz fixes (xcl-dev#2192, xcl-dev#1946, xcl-dev#2237).
Part of #1833. Follow-up to #1679. On a Radeon RX 7800 XT, the direct DXIL read of the first active lane can return a value from a later divergent switch case. That case should see the value captured before the switch.
What is in it
Tested
cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --show-outputwith XCL_DXIL_CACHE pointing to a writable directory reported 1154 passed, 1 failed, 46 ignored. Runtime skips: 7 (gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu, gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu, heap_window_out_of_memory_falls_back_to_the_switch_form). Seed 783 also produced mismatches on clean main. The HLSL mesh cache-only test passed separately on both revisions with a writable cache, after both had failed using the default directory in this environment.Regression run
Minecraft Preview, 90 seconds per build, 1x MSAA and
XCL_DIRECT_DXIL=all, with separate fresh caches. An earlier 30-second pair reached only 42 frames on main and ended before the candidate entered the title, so the comparison uses a longer matched run.Not tested
Other GPU drivers, retail world entry, and performance of workloads that use this operation more frequently.
AI use
OpenAI Codex (GPT-6.2 Sol, high reasoning effort, Fast mode) investigated the mismatch, compared implementations, wrote the patch and regression test, ran validation, and drafted this description.