Repository navigation
Conversation
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Update for head Tested:
Head |
|
Independent native Windows RX 6800M check of exact PR head Environment: Windows 11 build 26200; Ryzen 9 5980HX; Radeon RX 6800M, driver Exact PR head: Test-only isolation: The fixture normally tries native wave64 first. Forcing its wave list to wave32 only still failed at I then kept the PR lowering and locally split the fixture's two instructions. Unclamped-only passed 1/0/0, no skip, across the test's 16 edge-case triples and both wave64 and wave32. Clamped-only failed 0/1/0 at Scope: Focused debug-build synthetic tests only. I did not run the full workspace suite, a paired retail-title smoke, or driver PSO timing. This report does not establish the cause of the clamped-path device suspension. AI use: OpenAI Codex (GPT-6; exact variant not exposed in this session) ran the native Windows tests and local controls, checked the logs, restored the clean PR head, and drafted this report. No game data was used. |
|
Please rebase onto |
07addfb to
139e000
Compare
There was a problem hiding this comment.
@raylitebull Rebased onto main (1a0bbe3, after #2180 landed) to resolve the trailing conflicts in crates/xcl/src/gpu/recomp/tests.rs and crates/xcl/src/gpu/dxil/core_tests.rs (now at 6243e73), and re-verified dot8 / dot4_add_u8_packed (both default and XCL_DIRECT_DXIL=1) plus cargo test --workspace -- --test-threads=4 (1184 passed, 0 failed, 26 ignored in --lib, all integration suites green). Ready for CI / merge.
Add Shader::dot4_add_u8_packed (dx.op.dot4AddPacked, opcode 164) and lower unclamped v_dot8_u32_u4 by splitting even and odd 4-bit nibbles into two packed byte quads and chaining two Dot4AddU8Packed calls. Leave clamped v_dot8_u32_u4 on the 64-bit saturating dot_n path. Part of xcl-dev#1269 Assisted-by: Antigravity (Gemini 4 Neon)
139e000 to
6243e73
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 unclamped RDNA2
v_dot8_u32_u4in the direct DXIL translator using two SM 6.4+dx.op.dot4AddPacked.i32(Dot4AddU8Packed, opcode 164) intrinsics instead of unpacking all 8 nibbles into 8 scalar shifts, 16 masks, 8 multiplies, and 8 adds.Each 32-bit operand is split into two packed byte quads: even nibbles ($2^{32}$ ). Clamped $2^{32}$ .
x & 0x0F0F_0F0F) and odd nibbles ((x >> 4) & 0x0F0F_0F0F), then accumulated withdot4_add_u8_packed(dot4_add_u8_packed(c, a_lo, b_lo), a_hi, b_hi)(modv_dot8_u32_u4remains on the 64-bit saturatingdot_npath becauseDot4AddU8Packedwraps moduloPart of #1269
What is in it
crates/xcl/src/gpu/dxil/ops.rs: addShader::dot4_add_u8_packed(acc, a, b)emittingdx.op.dot4AddPacked.i32(i32 164, acc, a, b).crates/xcl/src/gpu/dxil/shader.rs: register opcode164 => ReadNoneindxc_fn_attrs.crates/xcl/src/gpu/dxil/lower_wide.rs: lower unclampedv_dot8_u32_u4via two chaineddot4_add_u8_packedcalls; keepclamp == trueondot_n.crates/xcl/src/gpu/dxil/ops_tests.rs: adddot4_add_u8_packed_matches_cputesting the intrinsic on GPU including wrappingdx_op_attrs_match_dxcalso verifiesdxc_fn_attrs(164)).crates/xcl/src/gpu/dxil/core_tests.rs: adddot8_u32_u4_unclamped_lowers_to_dot4_add_u8_packedverifying DXIL validation and disassembly (2dx.op.dot4AddPacked.i32(i32 164,calls for unclamped, none for clamped).crates/xcl/src/gpu/recomp/tests.rs: addgpu_v_dot8_u32_u4_edge_casestesting 16 edge cases (even/odd nibbles,0x0F/0xF0isolation,u32::MAXexact threshold and wrapping overflow vs clamped saturation) against CPU reference.V_DOT8_U32_U4instructions, wave32):n = 1drops2464→2336bytes (-128bytes);n = 64drops3564→3460bytes (-104bytes).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: 1157 passed, 0 failed, 46 ignored (24 SKIPPEDhardware-capability / policy checks: native wave64 unavailable on RTX 5080 and rejected direct-pathf16arithmetic), includingdot4_add_u8_packed_matches_cpu,dx_op_attrs_match_dxc,dot8_u32_u4_unclamped_lowers_to_dot4_add_u8_packed, andgpu_v_dot8_u32_u4_edge_cases.XCL_DIRECT_DXIL=1targeted GPU parity runs on RTX 5080 (gpu_v_dot8_u32_u4_edge_cases,gpu_clamp_and_omod_per_instruction): 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
Shader::dot4_add_u8_packed(opcode 164), lowered unclampedv_dot8_u32_u4to twoDot4AddU8Packedcalls, wrote the unit/disassembly/GPU parity tests, and ran the test suite andscripts/smoke.ps1regression checks.