Repository navigation
Conversation
|
Independent RX 6800M (RDNA2 native wave64) verification of exact PR head Environment: Windows 11 build 26200; Ryzen 9 5980HX; Radeon RX 6800M driver Clean exact-head tests: Each of the three added
Local native-wave64 extension: On the same PR production code, I changed only the pixel-shader parity fixture: asserted 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. |
ea02576 to
83fc1bd
Compare
|
Force-pushed the same commit as my username and e-mail was not correct for this GH account |
|
NVIDIA run, to go with luckyteagirl's RDNA2 one. Exact head
The two extra passes are this PR's new GPU tests. The only Not tested: a title, the whole workspace. AI-assisted (Claude Code). Synthetic tests only. |
|
Independent AMD report for Tested
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. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
…xcl-dev#2316) Decode half, verbatim: swizzle_quad_map (quad-permute 0x8000..=0xBFFF or bit mode with upper bits 4:2 preserved), dpp16_quad_map (quad_perm 0x000..=0x0FF, row_xmask 0x160..=0x163) and dpp8_quad_map (lanes 0..4 into 0..4, same relative map on 4..8). The SPIR-V port lowers these maps to subgroup quad ops instead of cross-wave reads; the DXIL quad-op emit half stays out.
|
@saintwolf I published the tested main integration branch in 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 AI use: Codex (GPT-6) resolved the conflict and verified the focused checks. Optional temporary Discord for coordinating contributor work, testing, and comparing results. |
83fc1bd to
2234832
Compare
In Direct DXIL pixel shaders, quad-local ds_swizzle_b32, DPP16, and DPP8 reads previously went through Lw::rla(), emitting 5 WaveReadLaneAt, 1 WaveActiveBallot, 4 QuadReadLaneAt, and ~40 select/bit ops only to discard the cross-wave path via same_quad. Add Lw::quad_lane and Lw::read_lane_quad to emit single-instruction QuadOp (ReadAcrossX/Y/Diagonal), single QuadReadLaneAt broadcasts, identity pass-through, or minimal distinct QuadReadLaneAt selects in pixel shaders while keeping WaveReadLaneAt in non-pixel stages. Also fold constant DPP16 ROW_MASK/BANK_MASK (0xF/0x0), FI=1, and always-valid controls. Measured on 498 sampled retail shaders (seed 7, up to 100 KB, all 498 dxil.dll validated): total DXIL -724 KB (-1.59%), 234 PS -719 KB (-3.28%, up to -8.2%), WaveReadLaneAt in quad-heavy PS cut by 57-100%. Assisted-by: Antigravity (Gemini 4 Neon) Resolve the merge conflict against current main 8b957be. Preserve the main packed-dot and root-UAV fixtures alongside the exact PR tests. Original-PR: xcl-dev#2316 Original-commit: 83fc1bd Assisted-by: OpenAI Codex (GPT-6)
|
@Prime1997 Thanks for resolving the conflict on
|
|
RX 9070 / Linux-Wine verification of current head Tested RX 9070 (RADV GFX1201), Mesa Separate source copies and targets, built with The exact head's parent is
All 10 harness invocations had 0 ignored and 0 capability skips. Main's sole failure was the transplanted The original IR test passed on the head for both pixel translation settings: the symmetric quad program emitted 4 The added fixtures were:
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 Environment: 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. |
|
Independent RTX 4060 (8 GB) / Windows 11 release verification of PR #2316 rebased head Setup
Targeted RTX 4060 release unit & GPU tests (
|
|
Tested Clean
Four passed, zero failed, ignored, or skipped. The two Arc processes used Not tested Actual hardware lane width, native wave64 GPU execution, performance, the full workspace, and retail smoke. AI use T3 Code / Codex ( |
Prime1997
left a comment
There was a problem hiding this comment.
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).
- Head
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.- 60 s
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. - Runtime hunks read in full, no blocking finding. The AMD side (quadOp in pixel shaders, #134) rests on the AMD reports already here; this card cannot add to it.
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
A pixel shader's lane reads that stay in the reader's quad – DPP16 quad_perm and row_xmask below 4, quad-local DPP8 patterns, ds_swizzle in quad mode or a bit mode that keeps the quad – went through `rla` in both translators: four QuadReadLaneAt for the quad, plus a WaveReadLaneAt, a ballot and four more wave reads that only served lanes of other quads and were thrown away. Every derivative the console's code takes by DPP (quad sums, ddx / ddy of shading values) paid for them, in loops too, and on AMD a wave read inside a loop has left helper lanes' registers unreliable (RX 6700 XT, `first_lane_live`); the console's quad reads see helper lanes. VIctory-Neo (KyleS98/VIctory-Neo, docs/findings.md: square holes and dashed edges in shadows) lowers these reads to quad operations alone for the same reason; upstream PR #2316 does it for direct DXIL with quadOp. This uses QuadReadLaneAt with constant lanes only, as `rla` already does in every pixel shader (quadOp of values derived from wave reads crashed AMD's compiler, #134), and covers the HLSL path as well. `emit::quad_map` finds such a read from its source lane per lane (DPP16 by `dpp16_lane`, DPP8, `swizzle_lane`); `Em::quad_read` / `Lw::read_lane_quad` read each quad position the map names once and select by lane & 3 (a broadcast is one read, the identity none). The source lane's EXEC bit is still checked as before. `XCL_PS_QUAD_READS=0` restores the `rla` form in both translators (default on; in the translated cache's identity). Tests: quad_local_lane_reads (the maps), ps_quad_local_lane_reads_take_quad_reads_only (no wave read or quadOp in the PS of either translator, wave32 and wave64; a compute program keeps rla), gpu_ps_quad_reads_in_a_loop_see_helper_lanes (quad sums, diagonal, row and column neighbours inside a loop with a v_readfirstlane, on two triangles: every pixel of both translators, wave32 and wave64, RX 9070 XT; it passes on the earlier form too there). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 1855d0cb1c65c3c6a7f41a2bf4e43aeda17767eb)
A pixel shader's lane reads that stay in the reader's quad – DPP16 quad_perm and row_xmask below 4, quad-local DPP8 patterns, ds_swizzle in quad mode or a bit mode that keeps the quad – went through `rla` in both translators: four QuadReadLaneAt for the quad, plus a WaveReadLaneAt, a ballot and four more wave reads that only served lanes of other quads and were thrown away. Every derivative the console's code takes by DPP (quad sums, ddx / ddy of shading values) paid for them, in loops too, and on AMD a wave read inside a loop has left helper lanes' registers unreliable (RX 6700 XT, `first_lane_live`); the console's quad reads see helper lanes. VIctory-Neo (KyleS98/VIctory-Neo, docs/findings.md: square holes and dashed edges in shadows) lowers these reads to quad operations alone for the same reason; upstream PR #2316 does it for direct DXIL with quadOp. This uses QuadReadLaneAt with constant lanes only, as `rla` already does in every pixel shader (quadOp of values derived from wave reads crashed AMD's compiler, #134), and covers the HLSL path as well. `emit::quad_map` finds such a read from its source lane per lane (DPP16 by `dpp16_lane`, DPP8, `swizzle_lane`); `Em::quad_read` / `Lw::read_lane_quad` read each quad position the map names once and select by lane & 3 (a broadcast is one read, the identity none). The source lane's EXEC bit is still checked as before. `XCL_PS_QUAD_READS=0` restores the `rla` form in both translators (default on; in the translated cache's identity). Tests: quad_local_lane_reads (the maps), ps_quad_local_lane_reads_take_quad_reads_only (no wave read or quadOp in the PS of either translator, wave32 and wave64; a compute program keeps rla), gpu_ps_quad_reads_in_a_loop_see_helper_lanes (quad sums, diagonal, row and column neighbours inside a loop with a v_readfirstlane, on two triangles: every pixel of both translators, wave32 and wave64, RX 9070 XT; it passes on the earlier form too there). (cherry picked from commit 1855d0cb1c65c3c6a7f41a2bf4e43aeda17767eb)
In Direct DXIL pixel shaders, quad-local ds_swizzle_b32, DPP16, and DPP8 reads previously went through Lw::rla(), emitting 5 WaveReadLaneAt, 1 WaveActiveBallot, 4 QuadReadLaneAt, and ~40 select/bit ops only to discard the cross-wave path via same_quad. Add Lw::quad_lane and Lw::read_lane_quad to emit single-instruction QuadOp (ReadAcrossX/Y/Diagonal), single QuadReadLaneAt broadcasts, identity pass-through, or minimal distinct QuadReadLaneAt selects in pixel shaders while keeping WaveReadLaneAt in non-pixel stages. Also fold constant DPP16 ROW_MASK/BANK_MASK (0xF/0x0), FI=1, and always-valid controls. Measured on 498 sampled retail shaders (seed 7, up to 100 KB, all 498 dxil.dll validated): total DXIL -724 KB (-1.59%), 234 PS -719 KB (-3.28%, up to -8.2%), WaveReadLaneAt in quad-heavy PS cut by 57-100%. Assisted-by: Antigravity (Gemini 4 Neon) Resolve the merge conflict against current main 8b957be. Preserve the main packed-dot and root-UAV fixtures alongside the exact PR tests. Original-PR: xcl-dev#2316 Original-commit: 83fc1bd Assisted-by: OpenAI Codex (GPT-6) # Conflicts: # crates/xcl/src/gpu/dxil/core_tests.rs # crates/xcl/src/gpu/dxil/lanes.rs # crates/xcl/src/gpu/dxil/lower_mem.rs # crates/xcl/src/gpu/dxil/lower_valu.rs
2234832 to
a4b2c19
Compare
|
No open or merged PR makes the same change; #3455 touches the neighbouring PS ballot path ( AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
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.