tests: pin SCC of scalar min/max with equal operands on the direct compute path #3443
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!3443
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3441"
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?
@Leyukaka on GitHub · 2026-11-29 09:09 UTC · original
Leyukaka:tests-direct-scc-equal→main· +30 −4 · 1 files · 1 commits · merged 2026-11-29 10:04 UTCRefs #3436
#3436 noted that no direct-path test reads SCC after
s_min/s_maxwith S0 == S1. This adds one totests/native_descriptor_scc_check.py.What it pins. On the non-runtime program (
gfx1013-direct-cs), each group now runss_min_u32,s_min_i32,s_max_u32ands_max_i32twice: once with equal operands (s5, s5) and once with unequal ones (s5 = 3 and inline -1, i.e. 0xFFFFFFFF as u32). Each SCC is read withs_cselect_b32and stored, which gives 8 cases per group. Expected SCC is 0 for equal operands and 1 for the unequal pairs, following the current strict lowering inarithmetic(src/gfx1013_direct_compute.inl):SCC is seeded to 1 by
s_or_b32before the first case, and the expected values alternate 0, 1, so a missing SCC write shows in every case. The group stride goes from 16 to 64 bytes to make room. The runtime program is unchanged.This pins what the direct path does today. It does not say which result the ISA specifies.
Evidence (release preset, branch based on
184b15db; merges cleanly into main1a0120ba, where the test file and the lowering are unchanged):native_descriptor_scc_hardwarepasses.lttoleinarithmeticmakes it fail withAssertionError: s_min_u32 group 0: SCC for equal operands=1, unequal operands=1; expected 0, 1. With the change reverted, the test passes again.native_descriptor_scc_warpskips (77) with "requires shader model 6.6 with wave32", and theprtest preset filter does not includenative_descriptor_scc_*. These cases therefore run only with the hardware variant.Not covered. No comparison with gfx2hlsl, and no max-side mutation was run. #3437 changes the gfx2hlsl side; this PR does not need it and does not touch the files it changes.