Repository navigation
Conversation
Physical-silicon verification: v_movrel* DPP 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/428/head:pr-428; git worktree add out/wt-428 pr-428
Set-Location out/wt-428; .\tools\dev.ps1 | Out-Null; $ErrorActionPreference='Continue'
cmake --preset dev -B out/build/dev-428 "-DINTAKE_PYTHON=C:/Users/james/Documents/Xbox2Windows/out/pe-env/Scripts/python.exe"
cmake --build out/build/dev-428 # 387/387 targets, 0 errors
ctest --test-dir out/build/dev-428 --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-428 --no-tests=error -R '^pixel_aot_hardware$' --output-on-failure
$env:XBOX2WINDOWS_ADAPTER='RTX 5060 Ti'; ctest --test-dir out/build/dev-428 --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 wave-width-independence claim holds on silicon as measured for the dynamic-VGPR-indexing forms: bit-exact readback ( #421 (conversions) and #423 (extra f32/carry/dot) were verified in separate worktrees; separate comments posted there. AI-assisted; runs executed locally. |
|
@KomaGuy Independent AMD (RDNA4, native wave64) result on Why this adapter matters for these formsYour lowering turns quad-local Environment
CommandsObserved
What it establishesThe static and runtime-dynamic The negative mutations built into LimitThe harness prints per-draw counters but no per-program label, so this is a whole-suite result: I can say every one of the 111 draws matched with zero absolute error, not which line of output belongs to which of the four instructions. AI-assisted; runs executed locally. |
|
Thanks @thepatrickworld for the independent RX 9070 XT wave64 verification on the |
|
Independent Windows verification on a physical GPU (the PR author verified only on Linux and left Windows to CI). I trial-merged this PR onto main and ran the draws here. Merge state: conflicts against current main ( Environment: Windows 11 build 26300.9974, NVIDIA GeForce RTX 4060, driver 32.0.16.2124, debug layer unavailable, MSVC 19.50.35726, Windows SDK 10.0.26100.0, DXC 1.9.2609.5, Python 3.13.12. Build: 881/881 targets, exit 0.
The four new forms do run in the hardware draw: The timeout is not a mismatch — the same test needs about 59 s on this adapter on unmodified main and crosses the 60 s limit once the extra draw cases are added. Raising or removing the per-test Verdict on behavior: the new DPP16/DPP8 AI-assisted. |
Change
Lower quad-local
DPP16(quad_perm) andDPP8(dpp8) forms for all four relative VGPR-indexing move instructions intools/pixel_aot.py, covering the final 4DPP16and 4DPP8forms (+8 forms on bothgfx1013andgfx1030):v_*_dppinstructions (4):v_movreld_b32_dpp,v_movrels_b32_dpp,v_movrelsd_b32_dpp, andv_movrelsd_2_b32_dpp.m0indexing:m0immediates directly (VGPR[dst + m0],VGPR[src + m0], or splitsrc + m0[9:0]/dst + m0[25:16]onv_movrelsd_2_b32_dpp).s_bfe_u32,s_and_b64,s_or_b64,s_lshl_b64,s_lshr_b64, ands_mov_b32so runtime-dynamicm0offsets proven bounded (up to 16 reachable slots, all initialized and in0..255) lower to conditional VGPR selects and per-slot conditional updates (reading all reachable sources before updating destinations, supporting overlapping source/destination banks).QuadReadAcross*,QuadReadLaneAt,WaveGetLaneIndex() & 3u), emitting zero extra helper functions for existing shaders.m0still holdinginterp_base, unbounded or overly wide dynamicm0, out-of-range or uninitialized reachable VGPRs, source modifiers (-/|.|), cross-quadDPP8,row_*/wave_*, partial masks, non-VGPR operands, WQM, andvmcnt/sample_desthazards.DPP_MOVREL_BODYderives quad coordinates fromuv.x/uv.y, tests all 4 forms across bothDPP16andDPP8with both runtime-dynamicm0(different VGPR indices across 2 constant sets on one compiled shader) and staticm0, and verifies 5 negative mutations.Verification
Tested on Linux x86_64 (Python 3.13.5, LLVM 19.1.7, Clang 19.1.7) on top of
ac48a50: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_MOVREL_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 4DPP16and 4DPP8forms against bothdocs/coverage/gfx1013.tsvanddocs/coverage/rdna2.tsv.DPP_MOVREL_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.M0[31:0]forv_movrel{s,d,sd}_b32,M0[9:0]source /M0[25:16]destination forv_movrelsd_2_b32) and DirectX Shader Model 6.0 quad-intrinsic specification.f32/move/select), shader: lower quad-local DPP16 and DPP8 32-bit integer/bitwise/shift ops in pixel_aot #414 (23 integer/bitwise/shift), shader: lower quad-local DPP16 and DPP8 binary16 ops in pixel_aot #419 (23f16), shader: lower quad-local DPP16 and DPP8 conversion ops in pixel_aot #421 (19 conversions), and shader: lower quad-local DPP16 and DPP8 extra f32, carry, and dot ops in pixel_aot #423 (12 extraf32/carry/dot) with zero opcode overlap — completing 101/101DPP16+ 101/101DPP8ongfx1013and 100/100DPP16+ 100/100DPP8ongfx1030.Checklist