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

Closed
opened 2026-11-27 20:40:36 +00:00 by xiaoqi72665 · 0 comments
xiaoqi72665 commented 2026-11-27 20:40:36 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by xiaoqi72665 on 2026-11-27T20:40:36Z.


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 #3160; it will not be part of the PR. Full groups avoid the known WARP partial-wave ballot anomaly. Fresh main 5fc9f6ff includes #3155 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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6654144089 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3184). Originally posted by [xiaoqi72665](https://github.com/xiaoqi72665) on 2026-11-27T20:40:36Z. --- 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 #3160; it will not be part of the PR. Full groups avoid the known WARP partial-wave ballot anomaly. Fresh main 5fc9f6ff includes #3155 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.
Sign in to join this conversation.
No labels
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.

Reference
R0Y00/Xbox2Windows#3184
No description provided.