Repository navigation
Direct DXIL: image_get_resinfo of a 1D array gives the layers in y - #2046
Conversation
The direct translator took a 1D array (DIM 4) through the catch-all arm, which put the layer count in z and 1 in y. RDNA gives it in y, as the HLSL path does since xcl-dev#1266 (cafda82), so gpu_image_get_resinfo_1d_array failed with XCL_DIRECT_DXIL=1 ([4, 1, 1] for [4, 3, 1]). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Independent AMD verification on head Tested
Not tested Retail smoke, the full workspace suite and other GPUs. AI use OpenAI Codex (GPT-6.2 Sol) adapted the extra test, ran the comparisons and wrote this report. |
|
Independent Intel Arc A770 verification of #2046 at clean head Tested
$exe = 'L:\XclTooling\pr1844-71f2ceb-t3-737e5ee5\target\debug\build\xcl\97fdf2b9ff8e1482\out\xcl-97fdf2b9ff8e1482.exe'
$env:XCL_DIRECT_DXIL = '0'
& 'L:/XclTooling/Invoke-ArcTest.ps1' -Test { & $exe resinfo --nocapture --test-threads=1 2>&1 }
$env:XCL_DIRECT_DXIL = '1'
& 'L:/XclTooling/Invoke-ArcTest.ps1' -Test { & $exe resinfo --nocapture --test-threads=1 2>&1 }
Not tested Packed D16 1D-array output, the ordinary query’s AI use T3 Code / Codex (gpt-6.2-sol) ran the checked-in tests and wrote this report. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Test report on Tested
Not tested
AI use
|
|
RTX 3060 reproduction and validation report for this exact 1D-array failure. Hardware: Ryzen 7 9800X3D, RTX 3060 12 GB (driver 621.14), approximately 16 GB RAM, Windows 11 Home 26200. Rust 1.95.0 MSVC; DXC/DXIL 1.9.2602.17. Before: #2057 reference head
After cherry-picking only This is a local integration report, not a clean main/PR-head test or a title smoke comparison. The local input harness and a separate one-line wrapping-arithmetic correction in #2057's texture-upload test-data generator were also present. No title data is attached; no gameplay claim is made. AI use: Codex, GPT-6 (exact serving variant not exposed), reproduced the failure, integrated this existing patch, ran the tests and wrote this report. The fix remains its original author's work. |
|
Regression run of Against the limits in CONTRIBUTING.md: 105 % 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 |
image_get_resinfoof a 1D array (DIM 4) in the direct translator went through the catch-all arm. That arm puts the layer count in z and 1 in y. RDNA gives the layers in y, which the HLSL path has done since #1266 (cafda82). Sogpu_image_get_resinfo_1d_array, added by #1266, fails onmainwithXCL_DIRECT_DXIL=1:That's not new with #1874: it fails the same way at
fb32c87.What is in it
crates/xcl/src/gpu/dxil/lower_image.rs: a DIM 4 arm,(width, layers, layers, mips), matching the HLSL path's{t}_d = {t}_h.Tested
main568e7dbwithXCL_DIRECT_DXIL=1, DarkPanda69 sawgpu_image_get_resinfo_1d_arrayfail on an RTX 3060 (wave32, split wave64) and an RX 9070 XT (RDNA4, native wave64), in runs for Recompiler: direct DXIL emits a repeated scalar load once #2207 (comment) and Direct DXIL: unused raw loads and f16 conversions are dropped #2212, the failure this PR fixes.mainc00f3fc:cargo test -p xcl --lib -- resinfo: 3 passed withXCL_DIRECT_DXIL=0and1. Before the change,gpu_image_get_resinfo_1d_arrayfailed with1.gpu_tests withXCL_DIRECT_DXIL=1(--skip gpu_sparse_vram): 128 passed, 1 failed. The failure isgpu_fmt_encode_int_sat_and_f16_rtz, which also fails onmainand which Recompiler: saturate UINT/SINT and use RTZ in direct DXIL fmt_encode #2043 fixes.dxil::units: 132 passed.Regression run
Run by Toons29 on an AMD Radeon RX 9070 (comment),
mainand this head, pasted unedited:Not tested
AI use
🤖 Generated with Claude Code