Repository navigation
Conversation
AMD's driver returns x | bfrev(x) for Bfrev.i32(trunc(mul i64)) when the product is the same on every lane. The i64 Bfrev lowering reverses each 32-bit half after a trunc / lshr of the i64 value, so a Bfrev of an i64 product hit it: fuzz seed 817 (xcl-dev#2115) read 0xfe53ffff for 0x4a43fdeb on an RX 7800 XT. Reduced to Bfrev.i64(mul i64 3, 5). The halves are now reversed with five shift-and-mask steps. The i64 case is the only one that goes through trunc of an i64 value; Bfrev.i32 on a plain i32 is unchanged. The new test fails without the change on the RX 7800 XT (low word 0xf000000f, expected 0) and passes with it. Part of xcl-dev#2115. Seed 783 is a separate driver bug (IMax.i64 after an i64 udiv); the compare / select lowering in xcl-dev#1946 fixes it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
30d48e2 to
a5af72b
Compare
|
Independent Windows/RX 6800M verification of exact PR head Environment: Windows 11 build 26200; Ryzen 9 5980HX; Radeon RX 6800M driver Tested
Regression run Same owned title, seven seconds each, default translation mode, fresh separate data/cache directories. Both runs completed with no memory guard, crash or device removal. These are the exact Main: PR head: Limits: An attempted 12-second PR run hit my external guard at 856 MB free system commit and was stopped before it emitted a smoke block; I excluded it from the comparison. The seven-second pair reached only the first frame, and no title dispatch of this bit-reversal form was observed. The synthetic fixture is the opcode check. The report does not establish a runtime performance or world-load improvement. If the PR head changes, its smoke block must be rerun for the new commit. AI use: OpenAI Codex (GPT-6; exact variant not exposed in this session) ran the native Windows builds and tests, monitored the owned-title smoke runs, compared the failure names and drafted this report. No game data was uploaded. |
|
NVIDIA test report for Tested
Regression run ( base ( this PR: Not tested: this code in the title: it is on the opt-in direct-DXIL path ( AI use: Claude Code (Claude Opus 5.5) built and ran the tests and smoke runs on my machine and wrote this report. |
|
Second NVIDIA run (RTX 3060, 32-lane): passes at the head and merged onto current
SKIPPED: the same 24 lines at the head ( Hardware: RTX 3060 12 GB (driver 610.88), Ryzen 7 5700X, Windows 11 Pro 26300, Rust 1.100.0 MSVC, debug, DXC 1.9.2602.17. |
…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 #2115. AMD's driver returns
x | bfrev(x)forBfrev.i32(trunc(mul i64))when the product is the same on every lane. The i64Bfrevlowering (reverse each 32-bit half, swap) goes through exactly that shape, so fuzz seed 817 read0xfe53ffffwhere the CPU has0x4a43fdeb. The halves are now reversed with five shift-and-mask steps. Reduced form:Bfrev.i64(mul i64 3, 5).Seeds on the RX 7800 XT,
main568e7dbplus this commit's base:IMax.i64fed by ani64udiv chain: the same chain with compare + select, or withIMin/UMax, passes. Direct DXIL: lower i64 min/max as compare/select #1946 (i64 min/max as compare + select) fixes it: with itsops.rschange applied locally 783 goes to 0 mismatches. I did not include that change.So
fuzz_validate_and_gpu_1here still fails on 722 until #2192 and #1946 are in.What is in it
crates/xcl/src/gpu/dxil/ops.rs:bfrev32_shifts, used for both halves in the i64 case ofShader::bfrev.Bfrev.i32on an i32 is unchanged.crates/xcl/src/gpu/dxil/ops_tests.rs:bfrev_i64_of_a_uniform_product_matches_cpu(products3*5and the seed 817 constants). It fails without the change (low word0xf000000f, expected 0) and passes with it.Tested
a5af72b(rebased ontomain1a0bbe3).cargo build --workspace, thencargo test --workspace --no-fail-fast -- --test-threads=4: 1250 passed, 1 failed, 46 ignored. The failure isfuzz_validate_and_gpu_1, which stops at seed 722 (Shaders: preserve first active lane reads across divergent switches #2192); 783 (Direct DXIL: lower i64 min/max as compare/select #1946) is behind it. The other failures seen before the rebase (pc_resource_desc_strips_uav_on_unsupported_formats_and_msaa,gpu_image_get_resinfo_past_last_level) are gone.SKIPPEDlines (f16 / f32 per-lane forms refused, andheap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows); not coverage.bfrev_i64_of_a_uniform_product_matches_cpufails without the change on this card (low word0xf000000f, expected 0) and passes with it.debug_seedfor 817: 64 mismatching results before, 0 after.Regression run
Independent paired run on exact PR head
a5af72bba1a0d25fbd59f37a6a952b33874ce734vsmain1a0bbe3a2ba91ea8f5b6fc29130a053868d3c9e6by @luckyteagirl (AMD Radeon RX 6800M, driver30.0.13002.13003, Windows 11 26200, Rust 1.99.0 MSVC, 7 s each, fresh data/cache directories; see comment):Main:
PR head:
Not tested
Bfrev.i32(trunc(mul i64))outside the i64 lowering is hit by a real shader.AI use
Claude Code (Claude Sonnet 5.5) reproduced the seeds, reduced them, wrote the change and the test, ran the suite and wrote this description; independent RX 6800M smoke blocks pasted from @luckyteagirl's comment.
🤖 Generated with Claude Code