test: cover direct compute 32-bit integer min3 max3 and med3 #3187
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!3187
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3185"
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?
@xiaoqi72665 on GitHub · 2026-11-27 20:41 UTC · original
xiaoqi72665:native/int32-minmax3→main· +139 −0 · 2 files · 1 commits · merged 2026-11-27 22:06 UTCFixes #3186. Refs #2935, #1546.
Change
Add a focused direct-native regression for v_min3/max3/med3 in u32 and i32. The native compare/select lowering already exists (
4036577); no production compiler change is needed. The prior Python/AOT implementations and tests are #1992, #1574, #1577 and #308.Verification
Clean builds on main
5fc9f6ff(includes #3157 and #3081), with only this test fixture/registration added. Both Debug and Release:671d2f46also passed 44/44 cases; not added to final revision totals.Environment: Windows 10 22H2 build 19045, RX7900XT driver 32.0.32029.2010, WARP 1.0.22.0, Agility 1.620.2 DLL-only, Windows SDK 10.0.26100.0, MSVC 19.44. Debug layer unavailable. Full physical waves deliberately avoid the independently reproduced WARP partial-wave ballot anomaly (#3162); sparse guest EXEC remains covered. No claim that the known WARP failure is fixed.
Standard commands:
On this Win10 machine, the actual readback additionally used the locally built replay copy with explicit device-factory/Agility exports, not a capability bypass.
Public source-generated fixtures only. AI-assisted; tested locally by Buhe (@xiaoqi72665).
@KelboLive on GitHub · 2026-11-27 21:16 UTC · original
LGTM on the min3/max3/med3 test coverage.\n\nNote: Like #3189, this PR removes
v_cvt_f16_*conversions from the direct compute path. Please clarify if these are being moved to a different code path or deprecated.535b76165eto81693c167a@xiaoqi72665 on GitHub · 2026-11-27 21:25 UTC · original
Thanks for checking! #3161 merged at 20:43:02 UTC, 107 seconds after this PR was opened. The old branch lacked that newer commit; our three-dot diff never removed the conversions. Rebased onto
5b145caas81693c1; range-diff is identical and the Files changed are still only two added test files (+139/-0). All ofsrc/and the #3161 test files match upstream byte-for-byte.Fresh Debug/Release: conversion IR (82 cases, 38 refusals), DXIL controls, and min/max/median controls passed in both builds. Stock GPU tests skip 77 on this Win10 machine. With the local Agility replay, min/max/median passed 44/44 cases on RX 7900 XT and WARP. The conversion GPU fixture reaches its final guard check but hits an existing
F.SENTINELAttributeError; a local diagnostic copy using an exact full-buffer sentinel comparison passed all 82 conversions across two groups on both adapters in both builds. No conversion code or tests were changed in this PR.AI-assisted; locally verified by Buhe.
@pigalot on GitHub · 2026-11-27 22:05 UTC · original · approved these changes
I reviewed
81693c16merged overmain5612e924. The merge is clean (tree9fdc4f0b) andgit diff --cached --checkis clean. The PR only adds a test and its registration.What I traced.
main, notests/native_*.pyexercises VOP3 opcodes0x152..0x159, so this is the first direct-native fixture for the six integer min3/max3/med3 forms.v_{min,max,med}3_{i,u}32.bound(...)select chain atgfx1013_direct_compute.inl.SEED, and the aliased signed-median destination keeps S0.What I ran. I built
compile_dxil native_store_replayindevandrelease, then ran/O2, with no skips.native_int32_minmax3_hardwareexecuted all 11 cases on the GPU, and each matched all 2,064 words.Negative controls. The production lowering is unchanged, so I mutated it in
src/gfx1013_direct_compute.inl. For each, I rebuilt indevand ran both tests:signed_order = false(i32 compared unsigned)0x7fffffffvs0x80000000at word 11)0x80000000vs0xffffffff)max(a, b)replaced withmin(a, b)Restored and rebuilt afterwards;
git diff --quietis clean.Verdict: approve on
81693c16.Environment: NVIDIA GeForce RTX 5090 driver 610.88, Windows 11 25H2 build 26200.9974, MSVC 19.52.37029, Windows SDK 10.0.28000.0 DXC, Python 3.12.10, wave32, debug layer off.
CI:
Build and test on Windowspasses on81693c16.This reply was AI-assisted.