test: cover v_min_u32 with DPP quad swaps in the pixel translator #2164
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2172"
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 R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T02:48:39Z.
Part of #2023
What this unblocks: Item H,
v_min_u32with a DPP16 quad swap, now has a pinned lowering with a real WARP readback instead of relying on an untested table entry.v_min_u32is already in the integer VOP2 table, and the DPP quad-swap base (#2141/#2143) lowers any table entry throughQuadReadAcross{X,Y,Diagonal}. No translator change is needed. This PR adds the missing coverage to the existingstartup_gfx2hlsl_dpp_quad_swapsuite and its docs paragraph:v_min_u32_dpp vN, v0, v0for each of the three swaps. The exchanged position issrc0;src1stays the lane's own position (AMD RDNA 2 ISA, "Data-Parallel Primitives"; LLVM 15quad_perm).yfirst, so the result is the neighbour for some pixels and the lane itself for others. A plain exchange or a maximum reads a different image.min(QuadReadAcrossX(v0), v0)etc.), decode of the fixture words, the missings_wqmrefusal, and llvm-mc reassembly of the fixture to the same words.minreplaced bymax, and references with one swap dropped.Still refused (unchanged): DPP8, row shifts, mirrors, partial masks, broadcasts, source modifiers and non-whole-quad EXEC.
Verification (Linux, executed locally):
git diff --check origin/main...HEAD: cleantests/startup_gfx2hlsl_dpp_quad_swap_check.py: PASStests/startup_gfx2hlsl_dpp_quad_swap_check.py binary llvm-mc-19: PASS (min fixture reassembles to the same words)tests/docs_links_check.py,tests/bidi_controls_check.py,tests/startup_gfx2hlsl_operand_count_check.py,tests/startup_translator_check.py,tests/startup_gfx2hlsl_refusals_check.py: PASSWin2025 WARP (Windows Server 2025 build 26100, MSVC 14.44.35207, D3D12 WARP, head
70ae4f7a, executed locally):ctest --preset dev -R <regex below> --no-tests=error --output-on-failure: 2/2 passed (controls 0.26s, warp 2.22s)ctest --preset releasewith the same regex, after a fresh release build ofoffscreen_check: 2/2 passed (controls 0.33s, warp 2.15s)ctest regex:
^(startup_gfx2hlsl_dpp_quad_swap_controls|startup_gfx2hlsl_dpp_quad_swap_warp)$AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T03:05:34Z.
Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit
70ae4f7a866a9d372956fb33b699a69fabc76cd3:cmake --build --preset dev --target offscreen_check -- -j 4): 1.03sctest --preset dev -R '^(startup_gfx2hlsl_dpp_quad_swap_controls|startup_gfx2hlsl_dpp_quad_swap_warp)$' --parallel 3 --no-tests=error --output-on-failure): 2/2 passed (startup_gfx2hlsl_dpp_quad_swap_controls0.28s,startup_gfx2hlsl_dpp_quad_swap_warp2.42s)The WARP draw includes the new
v_min_u32_dppprogram (DXC vs_6_0/ps_6_0, 16 x 16 pixels against the integer reference) and its mutations, includingminreplaced bymax. Hardware variant not run (VM has WARP only).AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-25T03:12:23Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
70ae4f7ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.