tests: native_sdwa_f16 checks and native_cvt_pk_u8_hardware fail on main #3052
Open
opened 2026-11-27 11:51:16 +00:00 by pigalot
·
8 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#3052
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 pigalot on 2026-11-27T11:51:16Z.
Three native compute tests fail on
main1c879506(and on98007de5). There are two separate causes.Environment: Windows 11 Pro 10.0.26200, NVIDIA GeForce RTX 5090 (driver 32.0.16.1088), dev preset with the debug layer on.
native_sdwa_f16_ir(0, 'add', '0xa55a4200', '0xa55a4200')native_sdwa_f16_hardwarenative_cvt_pk_u8_controlsnative_cvt_pk_u8_hardware[(8, '0xa5a5a501', '0xa5a5a500'), (24, …), (40, …), …]Pull-request CI runs only the
prsmoke preset, and the full-E '_hardware$'run onmainhas been cancelled by later pushes. That may be why the IR failure was not seen.1.
native_sdwa_f16_*: the shared comparator now requiresHI_AThis does not depend on the GPU.
native_sdwa_f16_iruses no device.Case.matches()intests/native_sdwa_f16_check.pypasses the extracted 16-bit half tonative_f16_alu_check.same_half.f6cdee10) changedsame_halfto requiregot >> 16 == HI_A >> 16(0xabcd), because the non-SDWA forms now keep D[31:16].same_halfreturns False for every SDWA case, even when the word is identical to the expected one.high=parameter) innative_f16_alu_check.py, used bynative_sdwa_f16_check.py. That keeps #3020's stricter check for the non-SDWA forms.2.
native_cvt_pk_u8_hardware: literal 0.5 becomes 1 on this driver0.5as av_mov_b32literal, select 0. The reference expects 0 (ties to even); the GPU returns 1.compile_dxilemits keeps the operation:bitcast→FMin(36) with 255.0 →Round_ne(26) →fptoui, with no folding.A scratch run of the same program (not committed) compared two sources:
v_cvt_f32_u32 v1, v0thenv_mul_f32 v1, 0.5, v1, so 0.5 × lane, computed at run time0.5Round_ne(0.5)(orfptoui(Round_ne(0.5))) to 1. That is a hypothesis: I have not looked at the driver's ISA and have not run this on AMD or WARP.startup_gfx2hlsl_cvt_pk_u8_hardware,compute_store_aot_alu_cvt_pk_u8_hardware,pixel_aot_rndne_hardwareandstartup_gfx2hlsl_float_round_hardware, pass on this GPU. With a literal,dxcprobably foldsround(0.5)itself, so the driver never sees it.Possible directions; the choice is for the maintainers:
I'd rather not change the expected value, since RDNA 2 was measured as ties-to-even.
I can send a PR for part 1 if that helps. This issue was AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by akimfomin on 2026-11-27T12:05:00Z.
pigalot’s literal-versus-lane comparison leaves the expected tie unchanged. PortBridge found an independent reference in AnyPS5 #501: their gfx1035-tested SPIR-V path expresses ties-to-even with an explicit integer/fraction check. An independently written CPU check of that arithmetic matched an exact decimal oracle on 10,776 binary32 inputs, including every positive half tie below 255 and its two neighbors.
The next useful control is your existing DXIL test with both literal and lane-derived 0.5 on AMD and WARP. I added exact inputs and reporting to PortBridge Lab #121. If a freshly written integer/fraction lowering is tried, verify the emitted operations as well as the readback because optimization might restore the rounding intrinsic. The AnyPS5 code and hardware results belong to that team. This reference does not establish the NVIDIA cause or a DXIL fix.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-27T12:07:27Z.
Part 1 landed in #3053. Independent check for part 2 on
main35f7197e:native_cvt_pk_u8_check.py controls <compile_dxil> <sdk>passed andhardware <native_store_replay> <sdk>failed with the same first mismatch in Debug and Release/O2on RTX 4060 Laptop (driver 32.0.16.1656, Windows 11 26200.9974, SDK 10.0.26100, native fixture debug layer off). Word 8 was0xa5a5a501, expected0xa5a5a500; the shown mismatches repeat every 16 words. This reproduces literal 0.5 on another NVIDIA adapter. The expected tie-to-even value stays 0. I did not measure the AMD/WARP literal-versus-lane control.Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-27T12:58:54Z.
I reproduced the packed-U8 failure independently on an RTX 4070 at
fca7c35b: Release readback first differs at word 8 (0xa5a5a501, expected0xa5a5a500). I’ll take the direct compute follow-up and test an integer lowering of the measured ties-even conversion against both literal and lane-derived inputs. The SDWA comparator work from #3053 is separate.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-27T13:32:13Z.
The direct packed-U8 fix merged in #3058 (
246857e4); #3053 already fixed the SDWA comparator. In independent Debug and Release/O2tests on the RTX 4060 Laptop, both the literal and lane-derived packed-U8 replays now matched all 2,064 words, including guards. The related HLSL WARP tests also passed. Native AMD and the original RTX 5090 report are still useful confirmations. If you can rerun the four original entries on that RTX 5090, please post the exact main commit and result.Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-11-27T17:04:07Z.
Independent Windows receipt for the fixes on
main2641cc72.Windows build 10.0.26300.10075, AMD Radeon RX 9060 XT (driver 32.0.32029.2010), D3D12 debug layer not enabled.
4/4 passed, no skips:
native_sdwa_f16_ir: 17 results and 10 refusals.native_cvt_pk_u8_controls: literal and lane-derived programs compiled without Round_ne or fptoui; negated source refused; the three references differ.native_sdwa_f16_hardware: 34 results and 2030 guards.native_cvt_pk_u8_hardware: literal and lane-derived replays matched all 2064 words (1024 results, guards and sentinels).A second adapter and driver confirm the merged #3053/#3058 fix.
Imported from R0Y00/Xbox2Windows. Originally posted by akimfomin on 2026-11-27T17:52:42Z.
One more independent hardware result for #3058. jstrdev ran the two synthetic packed-U8 checks on a physical Intel Arc B580 at
246857e4593880fbc19ab18eb1d4a56ba8370ad6, Windows Debug, driver 32.0.101.9175. Both passed with zero skips, and both literal and lane-derived readbacks matched all 2,064 words. jstrdev’s report and controlsThe run also exposed a test setup gap on multi-GPU machines. At that revision native_store_replay.cpp opens the default device. The
XBOX2WINDOWS_ADAPTERsetting is handled by the shared test helper, which this runner doesn't use. jstrdev independently checked that the default was the B580 for the recorded run. Printing the selected adapter LUID would make future receipts unambiguous, even when DXGI lists several adapters with identical names. PortBridge coordinated the independent run.Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-27T18:56:10Z.
I reproduced the adapter-selection gap raised in the Arc report. On Windows 11 and RTX 4070, a
native_store_replaybinary built from the same runner source asmain88cddb09still completed both packed-U8 dispatches withXBOX2WINDOWS_ADAPTER='no adapter has this name'. I’ll take this test-runner follow-up: honor an explicit adapter filter, reject an unmatched filter before dispatch, and print the actual device’s adapter identity and LUID for hardware reports.Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-29T03:07:47Z.
Both causes are fixed on
main: #3053 (d6457679) for thenative_sdwa_f16_*comparator and #3058 (246857e4) fornative_cvt_pk_u8_hardware. The adapter filter gap raised above is fixed by #3155 (5fc9f6ff). The four original entries passed 4/4 on RX 9060 XT at2641cc72(above); the packed-U8 replays were also reported passing on RTX 4060 Laptop and Arc B580.native_sdwa_f16_irandnative_cvt_pk_u8_controlspass in both Windows jobs ofmainrun 46194701708 (0614f68c); that run is red on five other tests. The RTX 5090 rerun asked for on 11-27 has not been posted. Close now, or wait for it?