Direct DXIL: image_get_resinfo of a 1D array gives the layers in y #2046
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2046
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2046/head"
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?
@upipibi on GitHub · 2026-11-25 01:58 UTC · original
upipibi:fix/direct-resinfo-1d-array→main· +2 −0 · 1 files · 1 commits · merged 2026-11-25 10:38 UTCimage_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 #2207 (comment) and #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 #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
@nnonno91 on GitHub · 2026-11-25 02:09 UTC · original
Independent AMD verification on head
f884dc52d76f8e12c1f332dde4cf3b99c5b90ef4and its parentc00f3fcfce59bb4dfd3a1f96bbc84c60e765b538. I reproduced the wrong layer count before the fix, including in a separate test of packed 16-bit output.Tested
XCL_ADAPTER=AMD RadeonandXCL_REQUIRE_GPU=wave64.cargo test --locked -p xcl --lib resinfo -- --nocapture --test-threads=1in separate processes withXCL_DIRECT_DXIL=0and1. The head passed all 3 tests in each run. On the parent,0passed all 3 and1gave 2 passed and 1 failed. The direct 1D-array query produced[4, 1, 1]for width, layers and mips instead of[4, 3, 1].D16=1and checked both packed words for all 64 lanes. Rancargo test --locked -p xcl --lib gpu::recomp::tests::local_resinfo_1d_array_d16 -- --exact --nocapture --test-threads=1withXCL_DIRECT_DXIL=1on each revision. The parent failed with lane 0 words[0001000b, 00010005]. The head passed with[0005000b, 00010005], which packs width 11, layers 5 in both fields and 1 mip level. The temporary test was removed from both checkouts. All runs had 0 ignored and no skips.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.
@JJAutoCompare on GitHub · 2026-11-25 02:22 UTC · original
Independent Intel Arc A770 verification of #2046 at clean head
f884dc52d76f8e12c1f332dde4cf3b99c5b90ef4. The ordinaryimage_get_resinfoquery at mip 0 returned width 4, layer count 3 iny, and mip count 1 on all 64 lanes in both HLSL/DXC and direct DXIL.Tested
x86_64-pc-windows-msvc), DXC/DXIL 1.9.2609.5, unoptimized test profile.cargo test --locked -p xcl --lib --no-run, usingCARGO_BUILD_JOBS=2,CARGO_INCREMENTAL=0,CARGO_PROFILE_DEV_DEBUG=0, andCARGO_PROFILE_TEST_DEBUG=0.CARGO_TARGET_DIRwasL:/XclTooling/pr1844-71f2ceb-t3-737e5ee5/target.TMPandTEMPwereL:/XclTooling/pr2046/temp.XCL_ADAPTER=A770andXCL_DXC_DIR=%LOCALAPPDATA%/XclTooling/dxc-1.9.2609/bin/x64. Ran the built library test binary in two separate processes under the Arc mutex.gpu_image_get_resinfo_1d_arrayis the GPU test that switches backends. The filter also runs the CPU check for HLSLGetDimensionsemission and the direct-only packed 2D/MSAA query test under both settings.Not tested
Packed D16 1D-array output, the ordinary query’s
zoutput, multiple mip levels or nonzero mip indices, the parent revision, other GPUs, the full workspace suite, and retail-title smoke runs.AI use
T3 Code / Codex (gpt-6.2-sol) ran the checked-in tests and wrote this report.
@DavidM1911 on GitHub · 2026-11-25 04:28 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
@onlynullpoint on GitHub · 2026-11-25 05:12 UTC · original
Test report on
f884dc5applied onto currentmain6020a33: RTX 5090 Laptop GPU (Blackwell, 32-lane waves), driver 616.92.gpu_image_get_resinfo_1d_arrayfails onmainwithXCL_DIRECT_DXIL=1and passes with this change; the whole suite shows no new failure on either path. The reports so far are AMD, Intel Arc and RTX 30; this adds an RTX 50 card with the direct translator.Tested
f884dc5cherry-picked ontomain6020a33in a clean worktree (applies cleanly, 1 file, +2)cargo test -p xcl --lib -- resinfo --test-threads=1withXCL_DIRECT_DXIL=1: onmain, 2 passed, 1 failed,gpu_image_get_resinfo_1d_arraywithleft: [4, 1, 1],right: [4, 3, 1]; with the change, 3 passed, 0 failed. Without the variable: 3 passed on both treescargo test --workspace --no-fail-fast -- --test-threads=4with the change: 1150 passed, 4 failed, 46 ignored; withXCL_DIRECT_DXIL=1: 1149 passed, 5 failed, 46 ignored. None of them comes from this change: the fourfuzz_validate_and_gpu_*are the RTX 50 refusal of #1905 (fixed by #1919), the fifth withXCL_DIRECT_DXIL=1isoffline_compute_pipeline_is_reused_by_a_second_process(#1674)no wave64, 3per-lane form: refused(V_MUL_F16,V_PK_MUL_F16,V_CVT_F16_F32), 1 Developer Mode off, 1no heap windows)Not tested
6020a33), the whole suite onmainwithout the change, release, any smoke pair or titleAI use
@Swagi-REDACTED on GitHub · 2026-11-25 06:47 UTC · original
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
f7e08e6c1eb801215dd045cf46dd35631dca0d2c, with an optional local input harness.cargo test --locked -p xcl --lib gpu_image_get_resinfo_1d_array -- --test-threads=1:[4, 1, 1]instead of[4, 3, 1].After cherry-picking only
f884dc52d76f8e12c1f332dde4cf3b99c5b90ef4(local head9b44d4bcb70eb488fac7bb328ca8929918f86dd0):XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 cargo test --locked -p xcl --lib gpu_ -- --test-threads=4gives 143 passed, 0 failed, 1 ignored, includinggpu_image_get_resinfo_1d_array. Two explicit skips: native-wave64 geometry-prefix and wave32-in-wave64-hardware cases. The synthetic test's assertions were unchanged.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.
@Toons29 on GitHub · 2026-11-25 09:47 UTC · original
Regression run of
f884dc52on the retail title, for this PR's Regression run section. Both blocks are fromscripts/smoke.ps1as printed, not edited:mainon568e7db7, this PR on its head commit with no uncommitted changes, same title and time.Against the limits in CONTRIBUTING.md: 105 % of
main's frames, 101 % of its peak commit, no crash, no device removal.AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0,
cargo build --release -p xcl, 60 s,XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.AI use: Claude Code (Claude Opus 5.5) built both trees and ran
scripts/smoke.ps1; a script posted this right after the run, with both blocks exactly as printed.