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! |
|
Linux/RADV + Wine GPU test report on PR Setup
Results
Affected suites (
Not tested
AI use
|
Replace the 10-11 op shift/mask/select expansion in Lw::bfe_u and Lw::bfe_i with direct dx.op.tertiary Ubfe (op 52) and Ibfe (op 51) intrinsics. Leave s_bfe_u32 / s_bfe_i32 (sbfe_u / sbfe_i) untouched because they use 7-bit widths where width >= 32 keeps all remaining bits rather than masking width to 5 bits. Part of xcl-dev#1269 Assisted-by: Antigravity (Gemini 4 Neon)
cd67649 to
457db25
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 |
Lower RDNA2
v_bfe_u32andv_bfe_i32in the direct DXIL translator directly todx.op.tertiary(Tertiary::Ubfe, op 52, andTertiary::Ibfe, op 51) instead of emitting an 10–11 op shift/mask/select expansion.s_bfe_u32ands_bfe_i32(Lw::sbfe_u/Lw::sbfe_i) are left unchanged because scalar BFE maskswidthto 7 bits (0x7F) wherewidth >= 32extracts all remaining bits, whereas DXILUbfe/Ibfemaskswidthandoffsetto 5 bits (0..=31).Part of #1269
What is in it
crates/xcl/src/gpu/dxil/lower.rs: replaceLw::bfe_uandLw::bfe_ibodies withself.s.tertiary(Tertiary::Ubfe, w, o, v)andself.s.tertiary(Tertiary::Ibfe, w, o, v)(+2/-21 lines).crates/xcl/src/gpu/dxil/core_tests.rs: addbfe_lowers_to_dxil_intrinsicschecking DXIL validation and disassembly fordx.op.tertiary.i32opcodes 52 (Ubfe) and 51 (Ibfe).crates/xcl/src/gpu/recomp/tests.rs: addgpu_v_bfe_edge_casestesting 24 edge cases (w = 0,w = 1,w = 31, unmaskedw = 32/w = 0x104/o = 32/o = 0x104,o + w == 32,o + w > 32, sign-extension boundaries) against an exact CPU reference.(V_BFE_U32, V_BFE_I32)pairs, wave32):n = 1changes2332→2352bytes (firstdx.op.tertiary.i32declaration);n = 64drops5940→5548bytes (-392bytes).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), includingbfe_lowers_to_dxil_intrinsicsandgpu_v_bfe_edge_cases.XCL_DIRECT_DXIL=1targeted GPU parity runs on RTX 5080 (gpu_v_bfe_edge_cases,gpu_signed_bfe_arithmetic_shift,gpu_valu_float_and_int): all 3 passed; confirms NVIDIA's D3D12 compiler masks DXILUbfe/Ibfewidth and offset to 5 bits cleanly even for unmasked32and0x104.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::bfe_uandLw::bfe_itoTertiary::Ubfe/Tertiary::Ibfe, wrote the disassembly and GPU edge-case tests, and ran the test suite andscripts/smoke.ps1regression checks.