compute: lower DPP8 sources in the direct compute path #3236
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3236"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T00:54:39Z.
Fixes #3235. Part of #2935. Target branch
main.Change (
src/gfx1013_compute_native.cpp,src/gfx1013_direct_compute.inl): direct compute accepts DPP8 sources (src0 233, and 234 with FI) on the VOP1/VOP2 operations its DPP16 path accepts.(L & ~7) | sel[L & 7]withwaveReadLaneAt, within the 32-lane wave, or within the physical half of a split wave64.tests/native_f16_alu_check.pynow expects "unsupported v_add_f16 DPP form" instead of the generic message. The case stays refused.Tests. The setup was Windows 11 with an NVIDIA GeForce RTX 5080 and DXC from the Windows SDK 10.0.26100, Release, on
main38129ba3plus this commit.native_dpp8_hardware(wave32 requests, two groups, eight guard words) reads back against a CPU reference:v_min,v_addandv_maxwith the[4,5,6,7,0,1,2,3]swap;v_addwith and without FI, and sparse-EXECv_minwithout FI.-R "dpp|native_f16|native_sdwa_f16|native_fma_f16|native_direct_container|native_wave|native_permlane".Measured with
compile_dxil --jobs 8 gfx1013-direct-cs@36 --requests, onmain38129ba3and with this commit.maincompiles with the wave32 model until #3006. The DPP8 selection itself stays inside groups of eight lanes.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-28T01:25:18Z.
Review: APPROVED
Independent review of
2cd0089117on maine3633742, tree94bcbe0cf6. The eight-lane selector remains within one physical wave32. The FI behavior agrees with LLVM's AMDGPU DPP8 modifier reference. Binary16 remains refused.Debug and Release /O2 each passed eight selected wave32, DPP16, SDWA and slot-67 checks with no skips. I independently repeated the seven DPP8 cases with source-built 64-thread groups, the slot-67 wave bit clear, distinct input words per lane and different low/high EXEC masks. Each case matched 128 result words and all guards in both configurations. The inactive-source zero and FI cases used 0x55555555 and 0xaa55cc33 in the two halves, so using the wrong EXEC half would fail. Windows 11 26200.9974, RTX 4060 Laptop 32.0.16.1656. These desktop readbacks exercise split guest wave64. They do not constitute console measurement.