tests: four native SDWA checks and the profiles note disagree with the translator on main #3547
Closed
opened 2026-11-30 03:54:26 +00:00 by KelboLive
·
2 comments
No Branch/Tag specified
main
codex/indirect-large-backed-views
codex/word3-preflight-check
codex/vertex-table-two-records
codex/live-index-alias
codex/copied-vertex-buffer-srv
codex/windows-stage-test-output
codex/preserve-live-srv-retirement
codex/share-render-target-tracking
codex/sgd5-negative-offset-fixture
coverage-dashboard
codex/mesh-loose-root
codex/mesh86-cache-padding
codex/xmem-scatter-preflight
codex/mesh-depth-ps
codex/indirect-dispatch-refresh
codex/compute-container-index
codex/startup-compute-formatted-load
codex/compute-indirect-producer
codex/compute-atomic-soffset
codex/mesh-dual-handoff
codex/startup-run-sh-watcher-control
codex/queue31-page-alias
codex/indexed-indirect-compute-root
codex/typed-buffer-view-metadata
codex/translated-indexed-address-alias
codex/fixed-mesh-create-result
codex/xmem-section-lease
codex/startup-slot86-mesh-cache
codex/restore-mesh-barrier-iteration
codex/translated-indirect-upload-index
codex/xapu-completion-opt-in
codex/translated-indexed-rect
codex/translated-indexed-indirect
codex/startup-mesh-lds-integration
codex/startup-console-ms24
codex/startup-slot57-mesh-request
codex/indirect-copy-provenance
codex/present-color-producer-trace
codex/compute-dispatch-binding-trace
codex/translated-indirect-table-buffers
codex/indirect-copy-provenance-base
codex/mix-half-literal-source
codex/translated-indirect-draw
codex/xmem-scatter-diagnostics
codex/slot148-recording-upload
codex/slot70-loading-art-verified
codex/command-list-upload-arena
codex/recover-failed-command-list
codex/startup-heap-timing-notes
codex/align-audio-input-timeline
codex/synthetic-depth-export-control
codex/startup-texture1d-on-windows
codex/1629-packed-position-fixture
codex/cpu-srv-refresh
codex/stream-root-srv-draw
codex/audio-mixer-timer
codex/startup-reload-published-shader
codex/priority-integrate-1284
codex/guest-sixteen-page-record
codex/aot-placed-dxr-batch
codex/guest-directory-selection
codex/gamesave-enumerate-read
codex/readme-archive-to-pixels
codex/pe-placed-view-draw
codex/archive-directory-gpu
codex/slot133-dxr-build
codex/materialize-placed-vertex-view
codex/dstorage-directory-offsets
codex/xg-nine-bc-copy
codex/xg-slot10-bc64-arrays
codex/dxr-guest-address-readback
codex/gpu-va-high-bits
codex/clarify-diagnostic-startup-scope
codex/xg-six-levels
codex/typed-derived-blend
codex/english-legal-text-progress
codex/address-bc-4ks
codex/dstorage-bounded-file-read
codex/wide-srv-offsets-menu
codex/startup-memory-srv
codex/bound-view-tail
codex/language-selector-readback
codex/setup-menu-progress
codex/cpu-plane-refresh
codex/startup-ubyte-vertex
codex/presenter-window-selection
codex/startup-uniform-buffer-lane
codex/intro-loop-timing
codex/static-clzero-loops
codex/document-rtx-intro
codex/startup-insertq
codex/nv12-startup-texture
codex/stream-stage-draw
codex/startup-null-uav-format
codex/startup-draw-capture
codex/shorten-windows-checks
codex/dstorage-rfc1950
codex/startup-dump-fence
codex/pr1135-review-base
codex/startup-stream-requests
codex/startup-chroma-view
codex/readme-graphics-pipeline-streams
codex/static-crt-free-tls
codex/arc-140t-rtx-5080-laptop-gpu-reports
codex/main-startup-progress-entry
codex/signed-dxil-catalogue
codex/reloc-free-preferred-base
codex/quad-dpp-bit-mask
codex/raw-srv-bounds
codex/rx9070-31044-hardware-report
codex/gpu-page-source-provenance
codex/runtime-placeholder-interior
codex/gpu-copy-queue-tile-order
codex/pe-pin-external-providers
codex/xmem-placeholder-reservations
codex/xmem-shared-physical-pages
codex/pe-package-startup
codex/xmem-tools-memory-query
codex/cpu-stack-output-import
codex/pe-load-security-cookie
codex/record-three-bvh-retests
codex/cpu-rbp-frame-anchor
codex/xmem-default-startup
codex/record-rtx-3050-ti-9597
codex/docs-readme-start-here
codex/check-compute-mad24-truncation
codex/docs-discord-community
codex/bound-rcx-branch-mutants
codex/rtx5060ti-bvh-62114
codex/837-neutral-readme-disclaimer
codex/record-rtx-3070-ti
codex/title-neutral-public-wording
codex/exe-shadow-frame-submissions
codex/exe-shadow-runtime-chain
codex/readme-polish
codex/gpu-coverage-nov23
codex/spirv-minlod
codex/shadow-shim-device
codex/exe-two-shadow-frames
codex/shim-dispatch-cleanup
codex/fix-spirv-cache-probe
codex/sampler-use
codex/ballot-bit-extract
codex/packed-fma-release
codex/cpu-packed-fma-o2
codex/publish-coverage-dashboard
codex/mesh-cbv-binding-order
codex/spirv-window-fixture
codex/ps-e32-float-uint
codex/ps-cbuffer-reads
codex/fixed-profile-rescan
codex/shim-compute-integration
codex/readme-visible-coverage
codex/readme-research-navigation
codex/integrate-pr-256
codex/indexed-mesh
codex/sampled-coverage
codex/first-ms
codex/dual-ps
codex/ps-attribute
codex/compute-first
codex/ps-export
codex/readme-research-status
codex/ps-layout
codex/blast-window
codex/chart-caption
codex/reviewer-roles
codex/blast-aot
codex/archive-program
codex/crc-stream-program
codex/exe-image-data-chain
codex/local-cpu-fixture-coverage
codex/exe-bound-frame-chain
codex/exe-mapped-comparison
codex/contribution-dependencies
codex/exe-entry-aot
codex/bink-frame-heap-integration
docs/hardware-seven-reports
codex/bink-custom-heap
codex/bink-heap-callers
codex/discussions-entry-points
codex/gpu-community-batch-64
codex/ffx-scratch-writers
codex/generic-project-documentation
codex/ffx-dispatch-rcas
codex/four-windows-gpu-reports
codex/title-neutral-project-wording
codex/community-coverage-provenance
codex/rcas-packed-texels
codex/community-gpu-retests
codex/community-build-and-gpu-reports
codex/ffx-provider-loop
codex/ffx-recurrent-views
codex/ffx-recurrent-resource
codex/amd-wave64-reports
codex/ffx-backend-slots
codex/upscaler-device-init
codex/ffx-context-lifecycle
codex/ffx-version-query
codex/ffx-provider-contract
codex/typed-object-callback
codex/cpu-ordinal-import
codex/chained-cpu-ranges
codex/cpu-import-call
codex/cpu-direct-call
codex/cpu-leaf-aot
codex/community-project-status
codex/script-state-path-replay
codex/script-state-evidence
codex/bc7-resident-tail
codex/bcpack-mip-tail
codex/bc7-texture-draw
codex/asset-ranges
codex/pixel-constants
codex/pixel-aot
codex/pre-exe-workloads
codex/root-signature-device-coverage
engineering/packed-bvh-leaves
engineering/bvh-build-and-update
engineering/intake-root-roundtrip
community/gpu-check-release
community/english-contributor-entry
gpu-check-v0.1.0
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
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#3547
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?
Imported from R0Y00/Xbox2Windows. Originally posted by KelboLive on 2026-11-30T03:54:26Z.
Verification update · 1 December 2026
#3542 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. #3554 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 #3546:startup_triage_runfails because#3471added a refusal literal without classifying it inCOMPUTE_DISPATCH_REASONS. That one isindependent of this.
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-30T04:37:26Z.
I'm taking this; the
v_sin_f16/v_cos_f16lowering is mine (#3300). 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.
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-30T09:21:24Z.
#3542 (merged at
2e30cc59) fixed all four failures and corrected the note, so I closed my #3555 as superseded. From my side this issue can be closed.AI-assisted.