Repository navigation
Conversation
|
Independent native Windows AMD check of exact PR head Tested
This checks the focused GPU and DXIL tests. I did not run the full workspace suite or a paired title smoke on this PR. No claim about speed or title shader use follows from these tests. AI-assisted checkout, testing, log verification, and report drafting with OpenAI Codex (GPT-6). No game data was used. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
838eb4e to
aeab327
Compare
|
Regression run of Against the limits in CONTRIBUTING.md: 104 % of AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, AI use: Claude Code (Claude Opus 5.5) built both trees and ran |
aeab327 to
8f131d4
Compare
|
Code review on 8f131d4 (Lw::mul_hi -> umul_wide/imul_wide in lower.rs + disassembly & GPU edge-case tests): diff is clean and CI is green. Only item needed before merge: an exact-head 8f131d4 AMD GPU pass of gpu_mul_hi_edge_cases with XCL_DIRECT_DXIL=1 (previous RX 6800M run was on 3a599af and the RX 9070 smoke on �eab327 leaves XCL_DIRECT_DXIL unset). |
Replace the 64-bit extend/mul/shift/trunc expansion in Lw::mul_hi with dx.op.binaryWithTwoOuts UMul (op 42) and IMul (op 41), extracting the high dword directly and avoiding i64 ops and Feature::Int64Ops across s_mul_hi_u32/i32, v_mul_hi_u32/i32, and v_mul_hi_u32_u24/i32_i24. Part of xcl-dev#1269 Assisted-by: Antigravity (Gemini 4 Neon)
8f131d4 to
01c4d20
Compare
|
Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current |
|
Independent desktop NVIDIA verification of PR #2172 at head Environment
Targeted release tests & build (
|
| Command | Result |
|---|---|
cargo test --release -p xcl --lib mul_hi_lowers_to_dxil_wide_mul -- --nocapture |
1 passed; 0 failed; 0 ignored; 1337 filtered out (0.01s) |
cargo test --release -p xcl --lib gpu_mul_hi_edge_cases -- --nocapture (3 consecutive runs, on-GPU RTX 4060) |
1 passed; 0 failed; 0 ignored; 1337 filtered out × 3 (0.23s, 0.20s, 0.20s) |
cargo test --release -p xcl --lib gpu::dxil:: |
185 passed; 0 failed; 3 ignored; 1150 filtered out (3.35s; dispatch_chain_native_wave64_builds_whole self-skipped on Wave32-only RTX 4060) |
cargo test --release -p xcl --lib gpu::recomp:: |
402 passed; 0 failed; 20 ignored; 916 filtered out (4.95s; Wave64-only and #1426-refused subcases self-skipped as expected) |
cargo build --release -p xcl --bin xcl |
Clean build (1m 12s, exit 0) |
Paired quiet 60 s retail smoke (title: 29640639)
Exact parent & merge-base (b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7, cached baseline on the same machine):
xcl-smoke v1
commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1518 (PresentX 1518)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14018 MB
PR #2172 (01c4d2068185c915a2e742358f5f2c2067d0a6f5):
xcl-smoke v1
commit: 01c4d2068185c915a2e742358f5f2c2067d0a6f5
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1592 (PresentX 1592)
presents per 2 s (last 3): 60 61 60
device removals: 0
crashes: 0
peak commit: 14016 MB
Runtime log observations (xcl.log)
9222log lines,0[ERROR]/ device-removal / panic lines.- Final draw/memory telemetry in log:
19528 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped); last memory sample14015 MB committed by the process; video memory 6116 MB local, 4683 MB non-local.
Limits of coverage
dx.op.binaryWithTwoOutsUMul/IMullowering (mul_hi_lowers_to_dxil_wide_mul) and on-GPU execution (gpu_mul_hi_edge_cases, 3/3 runs on RTX 4060) passed alongside fullgpu::dxil::andgpu::recomp::.- Wave64-only GPU subcases in
gpu::dxil::andgpu::recomp::self-skipped on the Wave32-only RTX 4060, and the existing#[ignore]dump/fuzz/benchmark tests remained ignored. The 60 s warm-cache retail smoke confirms end-to-end stability and zero regression ontitle: 29640639(frame-count delta vs. cached parent smoke reflects single-run startup variance, not this PR).
AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).
|
A note for the Mac path before this lands: on D3DMetal (Apple silicon, CrossOver), the two ops this PR switches to do not behave as on Windows. Measured on an M5 Pro, macOS 27.2.1, CrossOver 26.3 + D3DMetal, with the DXIL writer's own tests, not this PR's head:
So on a Mac this PR would send every Not tested: this PR's head commit on a Mac, Windows. AI use: Claude Code with Claude Opus 5.5 found the |
|
Tested on AMD / Linux: The head as it is (base Tests (
Not tested
AI use
|
|
No open or merged PR moves AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
Lower RDNA2 32x32→high-32 multiplication (
Lw::mul_hi) directly to DXILdx.op.binaryWithTwoOuts.i32(umul_wide, op 42, andimul_wide, op 41) instead of widening operands toi64, multiplying in 64 bits, shifting right by 32, and truncating back toi32.This covers
s_mul_hi_u32,s_mul_hi_i32,v_mul_hi_u32,v_mul_hi_i32,v_mul_hi_u32_u24, andv_mul_hi_i32_i24and avoids unnecessary 64-bit integer operations andFeature::Int64Opsflags.Part of #1269
What is in it
crates/xcl/src/gpu/dxil/lower.rs: replaceLw::mul_hiwithif signed { self.s.imul_wide(a, b).0 } else { self.s.umul_wide(a, b).0 }(+1/-5 lines).crates/xcl/src/gpu/dxil/core_tests.rs: addmul_hi_lowers_to_dxil_wide_mulverifying DXIL validation and disassembly emitdx.op.binaryWithTwoOuts.i32opcodes 42 (UMul) and 41 (IMul) withoutmul i64orsext i32.crates/xcl/src/gpu/recomp/tests.rs: addgpu_mul_hi_edge_casestesting scalar and vectormul_hi(u32,i32,u24,i24with dirty upper 8 bits and sign/boundary inputs) against 64-bit CPU reference.(V_MUL_HI_U32, V_MUL_HI_I32)pairs, wave32):n = 1changes2272→2348bytes (firstdx.types.twoi32/binaryWithTwoOutsdeclarations);n = 64drops5748→5676bytes (-72bytes) and removes alli64arithmetic.Tested
32.0.15.9579, wave32), AMD Ryzen 7 9700X, Windows 11 Pro10.0.26100,rustc 1.100.0, DXC1.8.2502.11(XCL_DXC_DIR=D:\Windows Kits\10\bin\10.0.26100.0\x64), debug & release builds.cargo test --workspace -- --test-threads=4: 1156 passed, 0 failed, 46 ignored (24 SKIPPEDhardware-capability / policy checks: native wave64 unavailable on RTX 5080 and rejected direct-pathf16arithmetic), includingmul_hi_lowers_to_dxil_wide_mulandgpu_mul_hi_edge_cases.XCL_DIRECT_DXIL=1targeted GPU parity runs on RTX 5080 (gpu_mul_hi_edge_cases,gpu_scalar_sext_mulhi_and_vector_i24_sub_co_ci_u64_shifts): both passed.Regression run
main:
PR:
Not tested
XCL_DIRECT_DXIL=1in thesmoke.ps1launch (because on unmergedmainwithout PR VFS: exempt xcl.exe and host tool dirs from console drive mounts #2101,D:\Windows Kits\...inXCL_DXC_DIRis intercepted by the{game}D-drive VFS mount inside the host process;XCL_DIRECT_DXIL=1was verified in unit/GPU tests).AI use
Lw::mul_hito emitumul_wide/imul_wide, added the disassembly and GPU edge-case tests, and ran the test suite andscripts/smoke.ps1regression checks.