Repository navigation
Conversation
Both paths ignored ADD_TID_ENABLE (V# word 3 bit 23): every lane of a buffer load without IDXEN read element 0. RDNA2 takes the lane as the index when IDXEN is clear and ignores ADD_TID with IDXEN (AnyPS5#21970, measured on gfx1036; #24781 applies it to graphics stages). Loads, stores and atomics, both paths. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested I ran the checked-in stride-4
$env:CARGO_TARGET_DIR = 'L:/XclTooling/pr1947-1831ec4-t3-97236edf/target'
$env:CARGO_INCREMENTAL = '0'
$env:CARGO_PROFILE_DEV_DEBUG = '0'
$env:CARGO_PROFILE_TEST_DEBUG = '0'
$env:TEMP = 'L:\XclTooling\pr2066\run-b81d47c-20261125T025448907Z\temp'
$env:TMP = $env:TEMP
& 'C:/Users/ljensen/.cargo/bin/cargo.exe' +stable-x86_64-pc-windows-msvc test --locked -p xcl --lib -j 2 --no-run --message-format=jsonThe following ran once with $env:XCL_ADAPTER = 'A770'
$env:XCL_DXC_DIR = 'C:/Users/ljensen/AppData/Local/XclTooling/dxc-1.9.2609/bin/x64'
$env:XCL_REQUIRE_GPU = 'wave64'
$child = @"
& 'L:/XclTooling/Invoke-ArcTest.ps1' -WaitMinutes 30 -Test { & 'L:/XclTooling/pr1947-1831ec4-t3-97236edf/target\debug\build\xcl/97fdf2b9ff8e1482\out\xcl-97fdf2b9ff8e1482.exe' gpu::recomp::tests::gpu_buffer_add_tid_indexes_by_lane --exact --nocapture --test-threads=1 }; exit `$LASTEXITCODE
"@
& 'C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe' -NoProfile -ExecutionPolicy RemoteSigned -Command $child
The fixture's exact vector assertion passed on both backends. For each lane from 0 through 63, the readback equaled Not tested Other descriptor or address combinations, writes, atomics, other GPU adapters, the full workspace suite, and retail-title smoke runs. AI use T3 Code / Codex ( |
Both paths ignored
ADD_TID_ENABLE(V# word 3 bit 23). Every lane of a buffer access withoutIDXENused index 0, so a 64-lanebuffer_load_dwordthrough such a V# read element 0 in every lane. RDNA2 takes the lane as the index whenIDXENis clear, and ignoresADD_TIDwhenIDXENis set.Source for the rule: boykopovar/AnyPS5#21970 measured it on gfx1036 with their hardware oracle (compute), and boykopovar/AnyPS5#24781 applies the same rule to graphics stages.
What is in it
recomp/emit.rsanddxil/lower_mem.rs: whenIDXENis clear, the MUBUF index isselect(V# word 3 bit 23, lane, 0)instead of 0. This applies at all five sites: loads and stores, sub-dword D16, and atomics. The atomic sites now read V# word 3.recomp/tests.rs:gpu_buffer_add_tid_indexes_by_laneuses a stride-4 V# withADD_TID, and each lane should read its own dword. The test sits next to the other buffer tests rather than at the end of the file.Tested on an RTX 3070 (Ampere, driver 616.56), Windows 11, debug, on
main5ce558f:mainfails on both paths (every lane reads0xA000). This branch passes withXCL_DIRECT_DXIL=0and1.gpu_tests (--skip gpu_sparse_vram): 133 passed withXCL_DIRECT_DXIL=0; with1, 132 passed and 1 failed,gpu_image_get_resinfo_1d_array, which also fails onmain(Direct DXIL: image_get_resinfo of a 1D array gives the layers in y #2046 fixes it).dxil::andbuffer_formatunits: 138 passed.Regression run
I have no retail title here. Could someone with one post the
xcl-smokeblocks formainand this head?Not tested: AMD, titles.
AI-assisted (Claude Code). Synthetic tests only.
🤖 Generated with Claude Code