Repository navigation
Recompiler: decode packed G16 gradients in direct DXIL - #2838
CryingLaughing wants to merge 1 commit into
Conversation
Start each packed derivative direction on a dword boundary and widen its half components before SampleGrad. This addresses the Direct DXIL counterpart noted in xcl-dev#436.
|
Independent verification and source audit of PR #2838 at head Source & Triage Notes
Tested
Not tested
AI use
|
|
AMD run (listed as untested), with an RTX 3060 in the same PC: the new tests pass on both, and nothing else changes from Tested: pass, head
On both cards the only result changes are the three new tests, all ok: On native wave64: the two new GPU tests build their kernel with Not tested: a G16 sample in wave64, retail titles, release, Intel. AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report. |
|
RX 9070 / Linux-Wine verification of head This adds Linux/Wine and explicit native-wave64 sampling to the Windows RX 9070 XT report above. Tested RX 9070 (RADV GFX1201), Mesa Separate source copies and targets, built with
All 10 harness invocations had 0 ignored and 0 capability skips. The main failures were the expected IR/layout/pixel assertions, with no device removal or unexpected execution failure. The added
Across original and added checks, there were 40 sampling dispatches and 56 pixel draws, including 24 native-wave64 dispatches. A separate verifier recomputed 8,192 coordinate words and 3,584 pixel words from the saved readbacks and the fixture's texel/gradient values. The PR had 0 mismatched words; main had 2,048 coordinate and 736 pixel mismatches. The ordinary Environment: Not tested Full workspace suite, retail data, smoke runs, HLSL G16 fixes, other image dimensions or opcode variants, native Windows, other GPUs, or title performance/FPS. Native wave64 coverage here is for the compute sampling kernels; the pixel draws do not establish a physical graphics wave size. These fixture results are not an independent console-ISA conformance result. AI use OpenAI Codex (GPT-6; exact serving variant not exposed) reviewed the change, prepared the additional fixtures and observations, built and ran both sources, independently checked source bytes, DXIL metadata and captured GPU values, and wrote this report. Publication authorized by the account owner. |
|
I compared parent With packed 16-bit gradients, the parent sampled mip 0 in all 32 samples where mip 1 was expected. The PR returned the expected mip-1 colors in all 32 samples, including the correct green or yellow for each layer. The zero-gradient and full-width-gradient controls passed on both revisions. An independent repeat on the PR head reproduced the result with zero skips. I used Codex GPT-6.2 Sol for the GPU fixture and comparison, and a separate GPT-6.2 Sol agent for independent verification. Codex GPT-6.2 Astra wrote this comment. I reviewed and approved this comment before posting. |
…XIL (verbatim) + step-117 sync log Upstream xcl-dev#2838 ef36b7d (single commit, still OPEN): packed G16 gradients start each derivative direction at a new dword. Fix hunk context byte-identical in tree; all 4 additions (fix + helper + 3 tests) verified byte-identical to upstream head. recomp/tests.rs is cfg(all(test, windows)) so new tests are parse-verified only here; execution waits for Windows CI (pre-fix failure by construction: G16 cases expect 3/4/7/9 legacyF16ToF32 conversions, pre-fix emits 0). Scan xcl-dev#2832..xcl-dev#2920: only xcl-dev#2838 new since step-116 (push race, not builder fault). Gates: checks 0 errors (22+28 warnings); lib 783/0/1; e2e 4/1 by design, 24 FAIL lines all D3D12.X; retail exit 139 at exe+0x2237320, stubs 20, xgr XAsync/XNetworking/XUser HOLDS.
Direct DXIL read each
IMAGE_SAMPLE_*_G16gradient as a 32-bit float. That also moved the coordinates to the wrong VGPRs. This fixes the direct path identified in the #436 review. #436 covers HLSL.What is in it
gpu/dxil/lower_image.rs, decode the gradients as packed 16-bit values, with each derivative group starting on a dword boundary.SAMPLE_Dcontrols. A pixel test gives both layouts the same coordinates, then verifies that a nonzero upper-half gradient selects mip 1 and zero selects mip 0. The fixtures call direct DXIL explicitly.Tested
ef36b7dfe3eeb0a5c872dc667d6cdfc1d20033c9on main8b957bec6f82495aec940944c6bf47faa02db590. Windows 11 25H2 build 26200.9974, Core i5-13600K, RTX 4080 driver 621.01, Rust 1.100.0 x64 MSVC, DXC 1.8.2502.11, debug.cargo build --workspace --locked -j 2passed. WithXCL_ADAPTER=4080,cargo test --workspace --locked -j 2 --no-fail-fast -- --test-threads=4 --show-outputreported 1,449 passed, 0 failed, 47 ignored across 38 harnesses. The pass count includes 29 capability skips and 10 unset optional sample notices.Regression run
Matched retail smoke is pending.
Not tested