Recompiler: emit direct quad ops for quad-local PS swizzles and DPP #2306
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2316"
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 ivall/xcl. Originally posted by saintwolf on 2026-11-25T13:40:46Z.
Direct DXIL pixel shaders previously routed every quad-local
ds_swizzle_b32,DPP16, andDPP8read throughLw::rla(), emitting 5WaveReadLaneAt, 1WaveActiveBallot, 4QuadReadLaneAt, and ~40 bit/select ops only to discard the cross-wave path viasame_quad. Because wave intrinsics are notReadNone,opt.rsDCE could not remove the unused cross-wave calls.DPP16also emitted non-foldableROW_MASK/BANK_MASKshifts even for0xF/0x0andSGe/imaxchecks for always-valid controls.This lowers quad-local reads in pixel shaders directly to
dx.op.quadOp(ReadAcrossX/Y/Diagonal), singledx.op.quadReadLaneAtbroadcasts, identity pass-through, or minimal distinctdx.op.quadReadLaneAtselects (keepingWaveReadLaneAtin non-pixel stages), and folds constantDPP16mask/validity checks across all stages. Part of #1269.What is in it
crates/xcl/src/gpu/dxil/lanes.rs: addLw::quad_laneandLw::read_lane_quad(supersedingread_quad_permutationfroma50fa7abwith fullQuadOp/QuadReadLaneAtlowering).crates/xcl/src/gpu/dxil/lower_mem.rs: addswizzle_quad_map(quad permute0x8000..=0xBFFFand quad-preserving bit-mode< 0x8000) and routeds_swizzle_b32throughread_lane_quad/quad_lane.crates/xcl/src/gpu/dxil/lower_valu.rs: adddpp16_quad_map(0x000..=0x0FF,0x160..=0x163) anddpp8_quad_map, route quad-local DPP16/DPP8 throughread_lane_quad, and specialize constantROW_MASK/BANK_MASK,FI=1, and always-validDPP16controls.crates/xcl/src/gpu/dxil/core_tests.rs: addps_quad_local_swizzle_and_dpp_emit_direct_quad_ops(validation + intrinsic counts for PS wave32/wave64 and VS),gpu_ps_direct_quad_swizzle_and_dpp_match_hlsl(fullscreen + diagonal helper-lane GPU parity vs HLSL, gated onwave32_supported()+ DXC so WARP/no-GPU CI skips cleanly, withS_WQM_B32in the diagonal helper-lane pass), andgpu_direct_dpp16_row_bank_masks_and_fi_zero(gated onwave32_supported()+ DXC).Tested
32.0.16.2140, wave32), AMD Ryzen 7 7800X3D, Windows 1126300,rustc 1.100.0 (0ef1bc386 2026-11-09), DXC/DXIL1.8.2502.11(Windows SDK10.0.26100.0).main(9dfbe3ea) ata4b2c195:cargo test -p xcl --lib ps_quad_local_swizzle_and_dpp_emit_direct_quad_ops: 1 passed, 0 failed.cargo test -p xcl --lib gpu_ps_direct_quad_swizzle_and_dpp_match_hlsl: 1 passed, 0 failed.cargo test -p xcl --lib gpu_direct_dpp16_row_bank_masks_and_fi_zero: 1 passed, 0 failed.cargo test -p xcl --lib gpu::dxil::lanes::ps_ballot_tests::: 8 passed, 0 failed.cargo build --release -p xcl: clean build..\scripts\test.ps1, debug): 1,253 passed, 0 failed, 46 ignored across 23 test binaries.xcl shaders <pack> --direct --sample 500 --seed 7 --max-bytes 100000 --validate --threads 8, release, pre-rebase head): 498 / 498 translated anddxil.dll-validated (0errors; 158 shrunk, 0 grew).45,499,896 -> 44,775,836 B(-724,060 B,-1.59%).21,949,800 -> 21,230,816 B(-718,984 B,-3.28%, up to-8.2%).WaveReadLaneAt/QuadReadLaneAt/QuadOp):11441aa968b462c5:512,956 -> 476,504 B (-7.1%),71,004 -> 66,688 (-6.1%),wrla 996 -> 191,qrla 481 -> 290,qop 0 -> 28fd955a83b812406b:596,476 -> 562,964 B (-5.6%),77,221 -> 72,929 (-5.6%),wrla 1,181 -> 506,qrla 545 -> 414,qop 0 -> 7774552a952e99a89:402,548 -> 374,256 B (-7.0%),57,024 -> 53,737 (-5.8%),wrla 891 -> 231,qrla 473 -> 209,qop 0 -> 112529d8f27da1a3874:344,304 -> 316,136 B (-8.2%),49,239 -> 45,962 (-6.7%),wrla 826 -> 166,qrla 421 -> 157,qop 0 -> 112237c90ea491571f1:249,228 -> 232,848 B (-6.6%),35,525 -> 33,279 (-6.3%),wrla 316 -> 0,qrla 165 -> 58,qop 0 -> 7CreateGraphicsPipelineStateon the 6 largest affected pixel shaders (2 alternating cold trials each with fresh exe basename; warm 2nd calls0.1-0.2 ms): sum41,387.9 ms -> 41,509.5 ms(+0.3%, neutral within noise on NVIDIA).Regression run
main:PR head (
XCL_DIRECT_DXIL=1,XCL_PREPARE=0,XCL_PSO_PRELOAD=0):Not tested
XCL_SAMPLE_*env vars unset).cargo test --workspacewas not re-run after rebasing onto9dfbe3ea(targeted unit + GPU tests and release build were run ona4b2c195).AI use
9dfbe3ea, fixed the CI WARP skip gate, ran tests, corpus sweep, cold PSO measurements, and smoke runs locally, and drafted this description.Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-25T13:49:58Z.
Independent RX 6800M (RDNA2 native wave64) verification of exact PR head
ea02576f497d5fe9f269ba78a32c9dee725d9501.Environment: Windows 11 build 26200; Ryzen 9 5980HX; Radeon RX 6800M driver
30.0.13002.13003; Rust 1.99.0 MSVC; DXC/DXIL 1.9.2609.5.XCL_ADAPTER=6800M,XCL_REQUIRE_GPU=wave64,XCL_DIRECT_DXIL=1; debug tests in an isolated Cargo target.Clean exact-head tests: Each of the three added
gpu::dxil::core_testscases passed 1/0/0 with noSKIPPEDline:ps_quad_local_swizzle_and_dpp_emit_direct_quad_opsvalidated the pixel-shader wave32 and wave64 DXIL/intrinsic shape (and the vertex-shader control).gpu_ps_direct_quad_swizzle_and_dpp_match_hlslmatched direct DXIL, HLSL, and analytical fullscreen results, plus direct/HLSL diagonal-edge helper-lane output. Its checked-in fixture executes wave32.gpu_direct_dpp16_row_bank_masks_and_fi_zeromatched direct and HLSL GPU readback under partial EXEC. Its checked-in fixture executes wave32.Local native-wave64 extension: On the same PR production code, I changed only the pixel-shader parity fixture: asserted
runner::wave64_supported() == Ok(true), set itsKernelOptionstowave64: true, and set the two HLSL pixel-shaderOptionstowave64: true. The fullscreen and diagonal-edge direct-vs-HLSL GPU draw test passed 1/0/0, no skips. I restored the clean PR worktree afterward. This is local fixture-only evidence, not a result from the unchanged test source.Limits: Focused synthetic tests only. I did not run the full workspace suite, an owned-title smoke pair, runtime pixel-shader timing, Intel, or Linux/Wine on this head.
AI use: OpenAI Codex (GPT-6; exact variant not exposed in this session) ran the native Windows tests, made and restored the fixture-only wave64 diagnostic, checked the clean exact head, and drafted this report. No game data was used.
Imported from ivall/xcl. Originally posted by saintwolf on 2026-11-25T14:02:10Z.
Force-pushed the same commit as my username and e-mail was not correct for this GH account
Imported from ivall/xcl. Originally posted by upipibi on 2026-11-25T14:05:51Z.
NVIDIA run, to go with luckyteagirl's RDNA2 one. Exact head
83fc1bd(the re-authored commit), as-is on its base1a0bbe3a: RTX 3070 8 GB, driver 616.56, Windows 11, debug.XCL_DIRECT_DXIL=0XCL_DIRECT_DXIL=1quadfilter (this PR's 12 tests, incl.gpu_ps_direct_quad_swizzle_and_dpp_match_hlsl,gpu_direct_dpp16_row_bank_masks_and_fi_zero)gpu_suite (--skip gpu_sparse_vram, single-threaded)main1a0bbe3aThe two extra passes are this PR's new GPU tests. The only
SKIPPEDlines are two wave64-only tests that are skipped onmaintoo (gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware: no wave64 on this card).Not tested: a title, the whole workspace.
AI-assisted (Claude Code). Synthetic tests only.
upstream-sync referenced this pull request2026-11-25 15:05:51 +00:00
Imported from ivall/xcl. Originally posted by nnonno91 on 2026-11-25T14:44:19Z.
Independent Radeon iGPU and RTX 5090 verification on exact head
83fc1bdb1ffd39641a428eab31e6f099d0017168.Tested
cargo test --locked -p xcl --lib quad -- --nocapture --test-threads=1and the same command with filtergpu_direct_dpp16_row_bank_masks_and_fi_zero. SetXCL_DIRECT_DXIL=1and selected each adapter withXCL_ADAPTERin separate processes. Each adapter gave 12 passed forquadand 1 passed for the DPP16 filter, with 0 failed, 0 ignored and no skips.Not tested
Shader-size or compile-time measurements, a retail title and the full workspace suite.
AI use
OpenAI Codex (GPT-6.2 Sol) ran the tests, checked the logs and wrote this report.
Imported from ivall/xcl. Originally posted by oni-swr on 2026-11-25T15:26:20Z.
Independent AMD report for
83fc1bdb1ffd39641a428eab31e6f099d0017168.Tested
main).ps_quad_local1 passed,gpu_ps_direct_quad1 passed,gpu_direct_dpp161 passed (the two GPU tests ran, no SKIPPED line).cargo test --workspace --no-fail-fast -- --test-threads=4: 1252 passed, 1 failed, 46 ignored. The one failure isgpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1(seed 722:res[30] = 0x1, CPU 0x7fffffff). It fails identically onmain06c9f550on this adapter (cargo test -p xcl --lib fuzz_validate_and_gpu_1), so it is not caused by this PR.f16_programs_on_the_gpu/f32_programs_on_the_gpuper-lane cases refused forV_MUL_F16,V_PK_MUL_F16orV_CVT_F16_F32, plusheap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).scripts/smoke.ps1 -Seconds 60on a real title (same title, same time), release build. main06c9f550: 1531 frames, last presents per 2 s 60 36 38, peak commit 17752 MB, no device removal, no crash. PR head83fc1bdb: 1586 frames, last presents per 2 s 60 60 60, peak commit 14847 MB, no device removal, no crash. Both exit 0x0.Not tested
Wave64-only hardware, other adapters, a title whose shaders use these quad swizzles/DPP forms (the smoke run only shows no regression).
AI use
Claude Code (Claude Sonnet 5.5) ran the tests and the smoke runs and wrote this report. No game files, dumps or shader names are included.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T17:52:52Z.
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!
Imported from ivall/xcl. Originally posted by Prime1997 on 2026-11-26T16:04:48Z.
@saintwolf I published the tested main integration branch in
xcl-dev/xcl, retaining your authorship. It applies83fc1bdbto main8b957becand resolves this PR's conflict.Main's #2173 dot-product test and #2368 root-UAV load tests stay in place. The branch also includes all three of your shader quad/DPP tests. The three main checks and three PR checks all passed.
Local result: 6 passed, 0 failed, 0 ignored, 0 explicit skips on the RTX 3060 Ti. Each exact filter ran separately with
--test-threads=1 --nocaptureafter a freshcargo test --locked -p xcl --lib --no-runbuild, with 1,347 tests filtered out per invocation. The branch is available for the PR rebase. The focused checks leave full-suite, exact-head title smoke, and the maintainer RDNA4 batch validation pending.AI use: Codex (GPT-6) resolved the conflict and verified the focused checks. Optional temporary Discord for coordinating contributor work, testing, and comparing results.
Imported from ivall/xcl. Originally posted by saintwolf on 2026-11-26T17:58:23Z.
@Prime1997 Thanks for resolving the conflict on
review/2316-main-8b957bec! Rebased ontoe120925e(merges cleanly ontomain8b957becwith zero conflicts) at22348324:direct_ps_ballot_uses_quad_ops_and_keeps_entry_exec_live_onlyinlanes.rs, which previously failed CI becausehelper_lane_masks_ps_codeincludes two quad-local DPP16 ops (0xB1,0x4E) that now lower directly todx.op.quadOp(updated the check to assert exactly those 2quadOpcalls whilevopc_onlyright below still verifies VOPC itself emits 0quadOp)..\scripts\test.ps1passed with 0 failures and a fresh 60 sscripts/smoke.ps1run at22348324is updated in the PR description.Imported from ivall/xcl. Originally posted by SzczepanGrela on 2026-11-26T18:29:35Z.
RX 9070 / Linux-Wine verification of current head
223483246da1ba05aecc9af2a5d8d69bbf55f69cagainst main8b957bec6f82495aec940944c6bf47faa02db590. The focused rebase checks and GPU comparisons pass on the PR, including an added native-wave64 DPP mask fixture. This adds release/Wine/RDNA4 results to the older Windows reports.Tested
RX 9070 (RADV GFX1201), Mesa
26.3.1-arch3.5, Ryzen 7 7700, CachyOS kernel7.3.0-5-cachyos, GE-Proton11-12 / Wine 11.0 Staging, native d3d12/d3d12core/dxgi, vkd3d-proton8293130ebe370b1+(local asserts-disabled build), DXC1.9.2602.17, Rust1.97.1, releasex86_64-pc-windows-gnu.Separate source copies and targets, built with
cargo test --offline --locked --release --target x86_64-pc-windows-gnu -p xcl --lib --no-run. Main received the three upstream tests. Both copies had identical test-only output observations and additional fixtures; original assertions were retained. Source and executable hashes were verified.The exact head's parent is
e120925e3abc9956a8b9bae631969d32e8ccd43c. Main's GPU source directory is byte-identical to that parent. Applying the four-file PR diff to current main also produced byte-identical changed files to the exact head; that integrated tree was checked in source only.All 10 harness invocations had 0 ignored and 0 capability skips. Main's sole failure was the transplanted
ps_quad_local_swizzle_and_dpp_emit_direct_quad_opsIR assertion,0versus4expectedQuadOpcalls. GPU comparisons passed on both sources. The seven existing controls covered the packed dot-product lowering, root-window load IR and execution, and all fourlanes::ps_ballot_tests, including the changed ballot assertion and helper-lane draw.The original IR test passed on the head for both pixel translation settings: the symmetric quad program emitted 4
QuadOp, 0QuadReadLaneAt, 0WaveReadLaneAt, and one entry ballot. The broadcast/asymmetric case had the expected 1QuadOpand 3QuadReadLaneAt; the vertex control retained wave reads without quad intrinsics.The added fixtures were:
wave64: truein both translators. This is a translation setting, not proof of the physical graphics wave size selected by the driver.The captured fixtures produced 40 draws and 20 compute dispatches, including 12 native-wave64 dispatches. A separate verifier checked 5,120 fullscreen RGBA words and 5,120 DPP register words against independent formulas, with zero mismatches on either source. It also checked 5,120 diagonal RGBA words for direct/HLSL and cross-revision parity, plus the triangle's 28-pixel coverage mask. The six HLSL PS/CS control cases stayed byte-identical across revisions and repetitions.
For the diagonal fixture, the covered pixels
(0,1),(2,3),(4,5), and(6,7)have all-zero outputs on both sources and both backends, under both logical wave settings. This is a parity observation; the check does not establish an independent console-ISA oracle for helper-lane values.Environment:
XCL_ADAPTER=AMD Radeon RX 9070,XCL_REQUIRE_GPU=wave64,XCL_NETWORK=0,XCL_DIRECT_DXIL=1,XCL_DXC_THREADS=1, native DLL overrides and private enabled caches. Fixtures explicitly call the direct and HLSL translators.Not tested
Full workspace suite, retail shader corpora, smoke/title runs, merged-tree execution, physical graphics wave size, independent console helper-lane semantics, shader/PSO execution timing, or FPS/performance. Small owned synthetic shaders and inputs only.
AI use
OpenAI Codex (GPT-6; exact serving variant not exposed) reviewed the full diff, prepared the added fixtures and observations, built and ran both sources, independently checked source bytes, IR, GPU outputs and coverage, and wrote this report. Publication authorized by the account owner.
Imported from ivall/xcl. Originally posted by Decodere on 2026-11-26T19:22:29Z.
Independent RTX 4060 (8 GB) / Windows 11 release verification of PR #2316 rebased head
223483246da1ba05aecc9af2a5d8d69bbf55f69c(exact parent & merge-basee120925e3abc9956a8b9bae631969d32e8ccd43c). Measurements and targeted GPU/unit test results only; not a full source review.Setup
7956 MiBreported by D3D12), driver32.0.16.2114(NVIDIA621.14, WDDM 3.2)31.9 GiBusable), Windows 11 Home26200rustc 1.100.0 (0ef1bc386 2026-11-09), DXC1.9.2609.5, release builds, quiet machine (zero concurrent builds/tests during timed runs; notegpu/dxil/*edits give22348324a freshXCL_DIRECT_DXIL_SOURCE_IDnamespace)title: 29640639viascripts/smoke.ps1 -Seconds 60(XCL_NETWORK=0, default flags, no input)Targeted RTX 4060 release unit & GPU tests (
22348324)cargo test --release -p xcl --lib ps_quad_local_swizzle_and_dpp_emit_direct_quad_ops -- --nocapture: 1 passed, 0 failed, 0 ignored (0.01 s,0SKIPPED).cargo test --release -p xcl --lib gpu_ps_direct_quad_swizzle_and_dpp_match_hlsl -- --nocapture: 1 passed, 0 failed, 0 ignored (0.38 s, executed on RTX 4060,0SKIPPED).cargo test --release -p xcl --lib gpu_direct_dpp16_row_bank_masks_and_fi_zero -- --nocapture: 1 passed, 0 failed, 0 ignored (0.23 s, executed on RTX 4060,0SKIPPED).cargo test --release -p xcl --lib direct_ps_ballot_uses_quad_op -- --nocapture: 1 passed, 0 failed, 0 ignored (0.02 s,0SKIPPED).cargo test --release -p xcl --lib gpu::dxil::core_tests::(3 consecutive parallel passes): 22 passed, 0 failed, 1 ignored on all 3 passes (0.51 s/0.49 s/0.50 s,0SKIPPED).cargo test --release -p xcl --lib gpu::dxil::: 187 passed, 0 failed, 3 ignored (3.59 s;1SKIPPED:gpu::dxil::kernel::dispatch_chain_native_wave64_builds_wholeskippedno wave64on NVIDIA wave32 RTX 4060).Paired 60 s RTX 4060 smoke (exact parent
e120925evs22348324)Both runs completed cleanly at steady 60/2 s pacing with
0device removals and0crashes (22348324vse120925excl.log:6,116vs6,114 MBpeak/end local VRAM,4,683 MBvs4,651 MBend non-local VRAM,19,513vs19,588translated draws /1,024dispatches with0skipped).Exact parent (
e120925e):PR #2316 head (
22348324):Limits of coverage
22348324(only the 4 targeted tests individually, 3 parallel passes ofgpu::dxil::core_tests::, all187passing tests ingpu::dxil::, release build, and exact-parent paired 60 s smokes);dispatch_chain_native_wave64_builds_wholeskippedno wave64on wave32 NVIDIA hardware.gpu_ps_direct_quad_swizzle_and_dpp_match_hlslandgpu_direct_dpp16_row_bank_masks_and_fi_zero; visual inspection of interactive in-world pixel shaders beyond the 60 s smoke was not performed.RTX 4060) on native Windows 11; no AMD, Intel, or Wine/Linux run on this host.AI use
Ran the targeted release GPU/unit tests, release build, and exact-parent paired quiet 60 s smoke runs with assistance from Google Antigravity (Gemini 4 Neon); all test counts, timings, memory figures, and smoke blocks were extracted directly from
cargo test,xcl.log, andscripts/smoke.ps1outputs.Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-27T11:03:07Z.
Tested
Clean
223483246da1ba05aecc9af2a5d8d69bbf55f69con Windows 11 build 26200.9974, Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175, Rust 1.100.0 MSVC, DXC/DXIL 1.9.2609.5, unoptimized test profile. Built withcargo test --locked -j 2 -p xcl --lib --no-run. Ran the resulting executable with--exact <filter> --test-threads=1 --nocapturefor each synthetic fixture:gpu::dxil::core_tests::ps_quad_local_swizzle_and_dpp_emit_direct_quad_opsandgpu::dxil::lanes::ps_ballot_tests::direct_ps_ballot_uses_quad_ops_and_keeps_entry_exec_live_onlyboth passed.gpu::dxil::core_tests::gpu_ps_direct_quad_swizzle_and_dpp_match_hlslmatched two 8×8 float32 RGBA HLSL-reference draws and the analytical values at all 64 fullscreen pixels. The diagonal draw used HLSL parity.gpu::dxil::core_tests::gpu_direct_dpp16_row_bank_masks_and_fi_zeromatched all 160 VGPR values across 32 logical lanes under partial EXEC.Four passed, zero failed, ignored, or skipped. The two Arc processes used
XCL_ADAPTER=A770and separate shared mutex acquisitions. Executable SHA-256 matched before, under, and after the lock.Not tested
Actual hardware lane width, native wave64 GPU execution, performance, the full workspace, and retail smoke.
AI use
T3 Code / Codex (
gpt-6.2-sol) selected, ran, and independently reran the checked-in tests.Imported from ivall/xcl. Originally posted by Prime1997 on 2026-11-28T23:26:29Z.
Review: APPROVED
Approving on a merge-check run on an RTX 3060 Ti 8 GB (driver 32.0.16.1714, i5-10400, Windows 11 Pro 26200, Rust 1.100.0).
223483246da1ba05aecc9af2a5d8d69bbf55f69cmerged cleanly ontomain7db2f391, and the workspace builds.cargo test --workspace --no-fail-fast -- --test-threads=4, with--skipfor threeuma_drivertests that can end the library harness on this PC on plainmaintoo: 2,594 passed, 0 failed, 49 ignored, 28 SKIPPED (21 of them no wave64).mainwith the same skips: 2,591 passed, 0 failed. All three new tests pass, including the GPU parity against the HLSL path on wave32.scripts/smoke.ps1withXCL_PREPARE=0: 1,405 frames against 1,385 onmain, peak commit 15,507 MB against 15,626 MB, no device removal, no crash. The smoke stays in menus and video, so it runs few of the changed pixel shaders.AI use: Claude Code ran the builds, tests and smoke on Prime's PC and wrote this text. Approving is Prime's decision.
I use a temporary Discord to coordinate my work. Anyone helping test XCL or compare results is welcome. Test coordination on Discord
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:48:52Z.
Triage (#1607) – head
a4b2c19No open or merged PR makes the same change; #3455 touches the neighbouring PS ballot path (
Lw::ballot_ps) and goes the other way, fromquadOpto per-laneQuadReadLaneAt.Risk in the diff:
Lw::read_lane_quad(dxil/lanes.rs) now emitsdx.op.quadOpon arbitrary DPP /ds_swizzle_b32source values in pixel shaders. #134 (comment in lower_valu.rs) and #3455 both report amdxc64 on RDNA2 crashing in the PSO build onquadOpof values that derive fromWaveReadLaneAt, which such a source can be (e.g. afterv_readfirstlane). The PR was only run on NVIDIA; it needs an AMD run on a title before it goes in, or theQuadReadLaneAtform for the three cross reads.The quad maps (
swizzle_quad_map,dpp16_quad_map,dpp8_quad_map) and the folded ROW_MASK / BANK_MASK / FI handling match the previous lowering.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Imported from ivall/xcl. Originally posted by ClosetPie107 on 2026-12-02T17:13:09Z.
Linux / AMD RDNA4 (RADV, Wine + vkd3d-proton): full test suite on
a4b2c19Merged onto
main5eaadb54(clean merge) and compared withmainrun twice on the same machine.Setup
v3.1-83-gcae8353edand DXVKdxgi.dllfrom GE-Proton11-16, DXC 1.9.2609.5x86_64-pc-windows-msvcwithcargo-xwin; test binaries run under WineTested:
cargo xwin test --workspace --target x86_64-pc-windows-msvc --no-fail-fast -- --test-threads=4 --skip <31 tests>main5eaadb54main: none.ps_quad_local_swizzle_and_dpp_emit_direct_quad_ops,gpu_ps_direct_quad_swizzle_and_dpp_match_hlsl,gpu_direct_dpp16_row_bank_masks_and_fi_zero).About the failures on
mainand the 31 skipped tests (same for every PR in this batch)main's 177 failures under Wine come from #175: once a test has set up the real device, vkd3d-proton refuses the command allocators XCL adopts (d3d12_command_list_Reset: Invalid command allocator), and later tests getE_INVALIDARG(0x80070057). Running vkd3d-proton master with its vtable check taken out,hle::d3d12x::sparse::testsgoes from 106 passed / 38 failed to 144 / 0.std::terminate()(Cannot reliably convert LLVM pointer type, we cannot differentiate between Function and Private), which kills the whole test binary. They are the split-wave64, dispatch-chain and bridged-mask GPU tests,gpu_compute_mode_dispatch_abi,gpu_compute_thread_limits_leave_the_lanes_past_them_out, the twogpu_mesh_mode_*tests, andconsole_wave64_compute_through_the_pso_hook_dispatch_and_read_back, plusserialize_root_signature_strips_console_flags_and_preserves_pc_flags, whose null descriptor vkd3d-proton dereferences. The dxil-spirv ones crash the same way with vkd3d-proton master (f8c1cae8, dxil-spirv93ab44c5).mainwas run twice: same counts, same failure set.SKIPPEDlines (same asmain): no heap windows (2), no D3D12 debug layer (2-3), driver cache control not implemented in vkd3d-proton (1).Not tested: Windows, NVIDIA, a retail title /
scripts/smoke.ps1, a review of the diff. This is a test report, not amerge-check.AI use: omp (Claude Opus 5.5) merged, built and ran the suites on this machine, compared the results with
main, and drafted this report. The user asked for it to be posted.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.