tests: cover signed and unsigned 32-bit min3/max3/med3 in direct compute #3186

Closed
opened 2026-11-27 20:40:54 +00:00 by github-bot · 0 comments
Owner

@⁠xiaoqi72665 on GitHub · 2026-11-27 20:40 UTC · original

Refs #2935 and #1546. Existing Python-side coverage: #1992, #1574, #1577 and #308.

Gap in regression coverage, not lowering. On main 671d2f46, all six canonical VOP3 forms already compile through the native C++ path. The implementation is the generic integer min/max/med3 compare/select branch in src/gfx1013_direct_compute.inl, introduced by 4036577. There is no need for another lowering. I found no focused direct-native regression for all six 32-bit forms (the prior fixtures cover Python/AOT paths).

I am taking a test-only slice:

  • v_min3_u32, v_max3_u32, v_med3_u32, v_min3_i32, v_max3_i32, v_med3_i32.
  • Two full physical wave32 groups, signed extrema / unsigned boundaries, all six operand permutations, repeated and equal values, sparse guest EXEC, destination/S0 alias, full-buffer and guard comparison against a sorting-based CPU oracle.
  • Compile positive and clamp-refusal controls; register the fixture following native_sad. Preserve capability skip 77 in the stock replay. No SDK, runtime, or production compiler changes.

Initial actual Debug/Release verification on 671d2f46: 11 cases per configuration and adapter on RX 7900 XT and app-local WARP, all 2,064 DWORDs per case matched. The local Agility test runner is diagnostic-only, reusing the previous adapter/SDK setup from #3162; it will not be part of the PR. Full groups avoid the known WARP partial-wave ballot anomaly. Fresh main 5fc9f6ff includes #3157 and #3081; final focused retest in progress.

Windows 10 22H2 build 19045, RX 7900 XT 32.0.32029.2010, WARP 1.0.22.0, app-local Agility 1.620.2 DLL-only, Windows SDK 10.0.26100.0, MSVC 19.44. Debug layer unavailable. Public synthetic inputs only.

Buhe (@⁠xiaoqi72665). AI-assisted.

**@⁠xiaoqi72665** on GitHub · 2026-11-27 20:40 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/3184) Refs #2935 and #1546. Existing Python-side coverage: #1992, #1574, #1577 and #308. **Gap in regression coverage, not lowering.** On main 671d2f46, all six canonical VOP3 forms already compile through the native C++ path. The implementation is the generic integer min/max/med3 compare/select branch in src/gfx1013_direct_compute.inl, introduced by 4036577. There is no need for another lowering. I found no focused direct-native regression for all six 32-bit forms (the prior fixtures cover Python/AOT paths). I am taking a **test-only** slice: - v_min3_u32, v_max3_u32, v_med3_u32, v_min3_i32, v_max3_i32, v_med3_i32. - Two full physical wave32 groups, signed extrema / unsigned boundaries, all six operand permutations, repeated and equal values, sparse guest EXEC, destination/S0 alias, full-buffer and guard comparison against a sorting-based CPU oracle. - Compile positive and clamp-refusal controls; register the fixture following native_sad. Preserve capability skip 77 in the stock replay. No SDK, runtime, or production compiler changes. Initial actual Debug/Release verification on 671d2f46: 11 cases per configuration and adapter on RX 7900 XT and app-local WARP, all 2,064 DWORDs per case matched. The local Agility test runner is diagnostic-only, reusing the previous adapter/SDK setup from #3162; it will not be part of the PR. Full groups avoid the known WARP partial-wave ballot anomaly. Fresh main 5fc9f6ff includes #3157 and #3081; final focused retest in progress. Windows 10 22H2 build 19045, RX 7900 XT 32.0.32029.2010, WARP 1.0.22.0, app-local Agility 1.620.2 DLL-only, Windows SDK 10.0.26100.0, MSVC 19.44. Debug layer unavailable. Public synthetic inputs only. Buhe (@⁠xiaoqi72665). AI-assisted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 20:40:54 +00:00
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/R0Y00--Xbox2Windows#3186
No description provided.