tests: four native SDWA checks and the profiles note disagree with the translator on main #3549
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#3549
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@KelboLive on GitHub · 2026-11-30 03:54 UTC · original
Verification update · 1 December 2026
#3544 applied the SDWA expectation and profile-note corrections in
2e30cc59. On thea0e126c2main tree, a local Release rerun passed all four reported cases (native_cvt_f16_i16_ir,native_cvt_f16_i16_controls,native_sdwa_profiles_ir,native_sdwa_profiles_dxil). The first attempt had missing local IR-dumper executables. Building both dumpers and rerunning gave 4 passed, 0 failed, 0 skipped. #3556 continues to track PR preset coverage.tests: four native SDWA checks and the profiles note disagree with the translator on main
Summary
mainat44a3ad5aafails four native compute tests, and the reason is the same in all four: theyexpect an
unimplemented direct SDWA operand profilerefusal for programs that#3470now admits, so thetranslator refuses them one gate later, on the destination.
While confirming that, the same investigation found a second and more interesting disagreement: the note
merged with
#3470saysv_sin_f16andv_cos_f16are "still refused in SDWA", and the test asserts thatrefusal, but the translator accepts both when the destination is well formed. The test only passes because
its malformed destination is rejected before the profile check is reached.
Reproduction
In-box dev preset,
44a3ad5aa, NVIDIA GeForce RTX 4070 Ti SUPER (driver 32.0.16.2101):The remaining failures were capability skips, reported separately.
1. The four failures: expectation versus the destination gate
Every one reports the same pair:
tests/native_cvt_f16_i16_check.py:212vop1(op, 3, 249)+0x06060601, for each op inOPSunimplemented direct SDWA operand profileunsupported SDWA destination modifiertests/native_sdwa_profiles_check.py:154v_sin_f16(0x60)unimplemented direct SDWA operand profileunsupported SDWA destination modifier0x06060601putsdst_select = 6, anf32placement.#3470admitted these ops as SDWA profiles, sothey pass the profile gate at
src/gfx1013_compute_native.cpp:414and reach the 16-bit destination rule atsrc/gfx1013_compute_native.cpp:422(dst_16accepts onlyWORD_0/WORD_1). The translator is thereforeright and the expectation is stale: the program is still refused, but for a narrower and more accurate
reason.
2.
v_sin_f16andv_cos_f16are accepted, contrary to the note and the testReaching the profile gate with a valid destination, the same two ops translate:
Measured with
out/build/dev/native_compute_ir_dump.exeon44a3ad5aa. This contradicts both:docs/experiments/direct-sdwa-profiles.md: "Still refused in SDWA:v_sin_f16/v_cos_f16(no directlowering)" — but
063d4e1a5("shader: lower v_sin_f16 and v_cos_f16 in direct Compute DXIL") added thatlowering, so the sentence was out of date before
#3470repeated it.invalid.
Why pull-request CI did not catch this
#3470was green on its branch. Theprpreset is a smoke selection (CMakePresets.json,testPresetspr), andnative_*is not in its include list, so these four tests are only evaluated by the fullctest --preset dev -E '_hardware$'run onmain. That is the same blind spot recorded in #3052.Suggested resolution
These need a decision per case rather than one string replacement, which is why this is an issue and not a
patch:
native_cvt_f16_i16_check.py: theOPSentries are now admitted profiles, so either expect thedestination refusal for the
dst_select = 6program, or move the SDWA case into the positive set with aWORD_0/WORD_1destination and assert the lowered result. The second keeps the coverage meaningful.native_sdwa_profiles_check.pycase 14:v_sin_f16/v_cos_f16are admitted, so the case belongs withthe admitted profiles, not the refusals.
docs/experiments/direct-sdwa-profiles.md: correct the "still refused" sentence, since the loweringexists.
A related report on the first of the two
mainfailures is in #3548:startup_triage_runfails because#3471added a refusal literal without classifying it inCOMPUTE_DISPATCH_REASONS. That one isindependent of this.
@legacy-code-archaeologist on GitHub · 2026-11-30 04:37 UTC · original
I'm taking this; the
v_sin_f16/v_cos_f16lowering is mine (#3302). Plan, following your suggested resolution: move thenative_cvt_f16_i16SDWA cases into the positive set withWORD_0/WORD_1destinations and keep one case that expects the destination refusal fordst_select = 6, movenative_sdwa_profilescase 14 to the admitted profiles, and correct the sentence indocs/experiments/direct-sdwa-profiles.md. Tests and doc only, no translator change.AI-assisted.
@legacy-code-archaeologist on GitHub · 2026-11-30 09:21 UTC · original
#3544 (merged at
2e30cc59) fixed all four failures and corrected the note, so I closed my #3557 as superseded. From my side this issue can be closed.AI-assisted.