Repository navigation
Conversation
Physical-silicon verification: DPP conversion forms pass on wave 4 / 32 / 64Independent verification of the wave-width-independence claim ("valid across wave sizes 4 (WARP) through 64") that CI cannot cover (CI excludes PR head: Environment
Commands (exact)git fetch origin pull/421/head:pr-421; git worktree add out/wt-421 pr-421
Set-Location out/wt-421; .\tools\dev.ps1 | Out-Null; $ErrorActionPreference='Continue'
cmake --preset dev -B out/build/dev-421 "-DINTAKE_PYTHON=C:/Users/james/Documents/Xbox2Windows/out/pe-env/Scripts/python.exe"
cmake --build out/build/dev-421 # 373/373 targets, 0 errors
ctest --test-dir out/build/dev-421 --no-tests=error -R '^pixel_aot_' --output-on-failure # default adapter + WARP: 2/2 Passed
$env:XBOX2WINDOWS_ADAPTER='RX 9060 XT'; ctest --test-dir out/build/dev-421 --no-tests=error -R '^pixel_aot_hardware$' --output-on-failure
$env:XBOX2WINDOWS_ADAPTER='RTX 5060 Ti'; ctest --test-dir out/build/dev-421 --no-tests=error -R '^pixel_aot_hardware$' --output-on-failure
out/pe-env/Scripts/python.exe -B tests/pixel_aot_check.py binary out/tools/llvm-mc.exe out/tools/llvm15/bin/llvm-objcopy.exe out/tools/llvm15/bin/LLVM-C.dllResults
Wave-width verdictThe claim that the quad-local DPP lowering is wave-width independent holds on silicon as measured: bit-exact readback ( Note: this branch contains only this PR's own fixture ( AI-assisted; runs executed locally. |
|
@KomaGuy Independent AMD (RDNA4, native wave64) result on Environment
CommandsObserved
Why an AMD result is worth having hereThe conversions go through the same quad-local path ( LimitThe harness prints per-draw counters but no per-program label, so this is a whole-suite result: every one of the 111 draws matched, but I cannot attribute a given line of output to a specific conversion form. AI-assisted; runs executed locally. |
|
Thanks @thepatrickworld for the independent RX 9070 XT wave64 verification! Holding this branch in place until #419 lands, then I'll refresh onto |
Change
Lower quad-local
DPP16(quad_perm) andDPP8(dpp8) forms for all 19 conversionVOP1/VOP2operations intools/pixel_aot.py, covering 19 additionalDPP16and 19 additionalDPP8forms (+38 forms on bothgfx1013andgfx1030):v_*_dppinstructions (19):v_cvt_f32_i32_dpp,v_cvt_f32_u32_dpp,v_cvt_f32_ubyte0_dpp,v_cvt_f32_ubyte1_dpp,v_cvt_f32_ubyte2_dpp,v_cvt_f32_ubyte3_dpp,v_cvt_off_f32_i4_dpp.v_cvt_i32_f32_dpp,v_cvt_u32_f32_dpp,v_cvt_flr_i32_f32_dpp,v_cvt_rpi_i32_f32_dpp.v_cvt_f16_i16_dpp,v_cvt_f16_u16_dpp,v_cvt_i16_f16_dpp,v_cvt_u16_f16_dpp,v_cvt_norm_i16_f16_dpp,v_cvt_norm_u16_f16_dpp.v_sat_pk_u8_i16_dpp,v_cvt_pkrtz_f16_f32_dpp.src0asuintbits via SM 6.0 quad intrinsics, preservesvdst[31:16]on all 7 16-bit destination forms pergfx1013(rejecting uninitialized destination VGPRs), applies saturating integer conversions and deterministicpack16_rne/pack16_rtzhelpers emitted only when used, allows-/|.|only onDPP16float-input forms, and rejects integer-input modifiers,DPP8modifiers, cross-quadDPP8,row_*/wave_*, partial masks, non-VGPR operands, WQM, andvmcnthazards.DPP_CVT_BODYderives quad lane ID{0, 1, 2, 3}fromuv.x/uv.y, tests all 19 forms across 2 constant sets, and checks 5 negative mutations (AcrossXvsAcrossY, cyclicdpp8rotation,rpivsflr,norm_i16vsnorm_u16, andDPP16negation).Verification
Tested on Linux x86_64 (Python 3.13.5, LLVM 19.1.7, Clang 19.1.7) on top of
e5e0079:python3 -B tests/pixel_aot_check.py binary llvm-mc-19 llvm-objcopy-19 libLLVM-19.so— passed (controls, negative controls, andllvm-mc -mcpu=gfx1013assembly→DXBC/XDAT/XBCH/FSSM→disassembly→lowering parity forDPP_CVT_BODYand all existing fixtures).python3 -B tests/ffx_dispatch_aot_check.py llvm-mc-19 llvm-objcopy-19 libLLVM-19.so— passed.python3 -B tests/script_state_check.py,tests/bcpack_check.py,tests/resource_ranges_check.py,tests/layout_chunks_check.py,tests/docs_links_check.py,tests/bidi_controls_check.py— all passed.tools/form_coverage.pyrecords 19DPP16and 19DPP8forms against bothdocs/coverage/gfx1013.tsvanddocs/coverage/rdna2.tsv.DPP_CVT_BODYand all 5 negative mutations on a 4-lane SIMT 2×2 pixel quad C++20 harness withclang++-19 -std=c++20 -O2 -Wall -Wextra -Wpedantic -Werror -fsanitize=undefined,address— bit-exact match across all 4 quad lanes on both constant sets and all 5 mutations caught; 0 sanitizer errors.dxc -Gis -T ps_6_0), WARP (pixel_aot_warp), and hardware (pixel_aot_hardware) checks were not run locally on Linux; relying on thebuild-and-testWindows CI job to verify DXC compilation and D3D12 WARP quad readback.Evidence and follow-up
tests/pixel_aot_check.pyare original MIT-licensedgfx1013assembly sequences built from source at test time.f32/move/select), shader: lower quad-local DPP16 and DPP8 32-bit integer/bitwise/shift ops in pixel_aot #414 (23 integer/bitwise/shift), and shader: lower quad-local DPP16 and DPP8 binary16 ops in pixel_aot #419 (23f16) with zero opcode overlap (combined85/101DPP16+85/101DPP8).Checklist