pixel_aot: make the denormal mode explicit and treat NaN payloads as vendor-dependent #307
Open
opened 2026-11-21 21:45:43 +00:00 by MoonYueya
·
15 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#307
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 MoonYueya on 2026-11-21T21:45:43Z.
Summary
pixel_aotcompares translated shaders against a CPU reference, but the floating-point environment those references assume is mostly implicit. #288 makes one piece explicit (v_mad_f32/v_mac_f32always flush). This issue is about the rest: the denormal mode the other f32/f16 instructions run under, and NaN payload handling on the readback side. Both differ in ways that can change test results across GPUs.I measured this on two desktop GPUs and WARP. The data is below in case it is useful. I am not proposing a specific patch.
1. Denormal mode is pipeline state, not shader bytes
On RDNA, instructions such as
v_add_f32/v_fma_f32honorMODE.FP_DENORM. Its initial value comes from the pipeline'sSPI_SHADER_PGM_RSRC1.FLOAT_MODE, not from the instruction stream. A shader blob alone therefore does not tell you whether binary32 denormals are flushed.v_mad_f32/v_mac_f32are the exception (always flushed, per #288).On desktop D3D12, the closest equivalent is the DXIL
-denormattribute (preserve/ftz/any). The same HLSL compiled three ways, differing only in that attribute, gave:preserveftzany0x00000001min(x, 1.0f)0x000000010x000000000x000000000x00000001max(x, -1.0f)0x000000010x000000000x00000000x * 1.0fSo the attribute does change results, but only on paths that survive optimization. A fixture that "checks denormals" through
x * 1.0fwould not detect the mode.Suggestion: treat the f32 (and f16/f64, which have separate mode bits) denormal mode as an explicit parameter of a
pixel_aotcase, record which value the reference assumes, and compile with the matching-denormattribute. Without Scarlett pipeline state the correct value is an assumption; writing it down keeps the assumption visible, as #288 does for the product/sum flush.2. NaN payloads are vendor-dependent on readback
Same probe, 624 rows per vendor (16 f32 bit patterns × 7 ops, 16 f16 bit patterns × 6 ops, × 3
-denormmodes). 597 rows matched between vendors. All 27 mismatches were NaNs:x + 1.0f(0x7FC00000,0x7F800001,0xFFC00003)0x7FFFFFFFh + 1.0h(0x7E00,0x7C01,0xFE03)0x7FFF0x7C01→0x7F802000)0x7FFFFFFFR16G16_FLOATtarget, read back0x7FFFSubnormals, ±0 and rounding-boundary rows were identical on both vendors in this probe.
Implication for
pixel_aot: a fixture whose expected output contains a NaN can pass on NVIDIA and WARP and fail on AMD, or the other way round, if the comparison is bitwise. Comparing NaNs as a class (or excluding NaN payload bits) avoids that. Otherwise the vendor dependence should be stated in the fixture.Environment
1002:164E, driver 32.0.11024.210DE:2206, driver 32.0.16.1742-enable-16bit-typesfor f16 casesLimits
AI-assisted: yes; the measurements were run on the hardware listed above.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-21T21:56:57Z.
Approved for an explicit fixture-level floating-point mode, starting with f32. Match the reference, compilation flags and emitted operations, and include a non-folding control that distinguishes preserve from FTZ. Record unknown/any as such; establish f16 and f64 separately and retain existing instruction-specific rules.
Accept a NaN by class only for a row expecting NaN when the operation or conversion permits sign/payload variation. Record the raw bits and check all other defined bits. Keep comparison predicate results strict. Check integer bit operations, bitcasts and moves bit-for-bit through a lossless integer readback; normalization on a floating-point render-target write is specific to that path.
Imported from R0Y00/Xbox2Windows. Originally posted by abilliontokens on 2026-11-21T22:50:03Z.
Claiming the approved f32 slice. First step: add an explicit per-case f32 denormal mode to the pixel_aot fixture harness — record the mode the CPU reference assumes, compile the emitted HLSL with the matching DXC
-denormattribute, and add a non-folding preserve-vs-FTZ control (min/max on the least subnormal;x * 1.0ffolds to a move and cannot detect the mode). Readback: accept NaN by class only on rows that expect NaN where the operation or conversion permits sign/payload variation, record the raw bits, and keep comparison predicate results and integer/bitcast/move rows bit-for-bit through lossless readback. f16/f64 modes stay unestablished in this patch; existing instruction-specific rules are retained.Environment: Windows 11 Pro 26200, RTX 5060 Ti (32.0.16.2124) + RX 9060 XT (32.0.32029.2010), CMake 4.4.3 / Ninja 1.13.2, Python 3.12.10, MSVC via vswhere latest. Coordination: fixture-mode plumbing only, no overlap with #288's instruction lowering. Will link the PR here.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by abilliontokens on 2026-11-21T23:22:07Z.
PR up: #363 — explicit f32 denormal mode with matching
-denormflags atps_6_2, non-folding preserve-vs-FTZ control, NaN-class readback with raw-word logging, and lossless integer readback. f16/f64 left unestablished as approved. One measured vendor exception recorded: the RTX 5060 Ti driver 32.0.16.2124 refuses PSO creation for the curve program under-denorm preserve(E_OUTOFMEMORY); that fixture records modeany(its rows are subnormal-free). Verified on WARP 10.0.26100.9711, RX 9060 XT and RTX 5060 Ti; commands and results in the PR body.Imported from R0Y00/Xbox2Windows. Originally posted by roansystemlabs on 2026-11-22T08:05:31Z.
Measurement for the f16 part of this issue ("establish f16 and f64 separately"). No project code changed; this only uses the renderer from #363.
Environment
dxcompiler 1.9.2602.17), Python 3.12.10offscreen_checkbuilt from #363 ate045e19, its head before the latest push (losslessR32G32B32A32_UINTreadback via the case-trailer flag)Probe
A minimal standalone
ps_6_2shader compiled with-enable-16bit-types. Every operand comes from the constant buffer, so nothing folds; results are written as raw words to the integer target. f16 rows:min(0x0001, 0x03ff)andmax(0x0001, -0)(least / largest binary16 subnormal)0x0400 * 0.5(least normal × 0.5, so the result is the subnormal0x0200)0x0001(a control that does not depend on the mode)f16 0x0001 -> f32(expect0x33800000) andf32 2^-24 -> f16(expect0x0001)A binary32 control shader runs through the same path and readback (
min/maxon the least f32 subnormal, least normal × 0.5, a move). This shows the harness does see FTZ when it happens.Each shader is compiled as
dxc [-enable-16bit-types] [-denorm <mode>] -T <target> -E main -Fo … -Fc …and drawn withoffscreen_check <hardware|warp> --check-pixel-case <cso> <case>. The case expects the preserve result; on a mismatch the renderer's ownactual_bitsare recorded.DXIL
"fp32-denorm-mode"="any|ftz|preserve". Without-denormthere is no attribute.ftzandpreservebuilds of the f16 shader, the listings differ only in the shader hash and that fp32 attribute.dx.op.binary.f16FMin/FMax,fmul fast half,fpext half→float,fptrunc float→half, and the container has the "Use native low precision" flag. So with native 16-bit types,-denormgives no way to ask for an f16 mode.Results: PSO creation succeeded for every variant on both adapters.
ps_6_2(no-denorm)ps_6_2 -denorm anyps_6_2 -denorm ftzps_6_2 -denorm preserveps_6_6 -denorm ftz00010001 00010200 33800000 00000001. This includes the subnormal produced by the multiply and both conversions.min,maxandleast normal × 0.5returned zero. One detail: in flushed builds, WARP returnsmax(least subnormal, -0)as0x80000000(both operands flushed, then the-0is selected), while the RTX 3070 returns0x00000000. That may matter for the sign rules of the f32 FTZ reference.Conclusion (cautious)
-denormflag says, and DXIL records no f16 mode. The-denormflag is not a lever for f16.preserve, with the evidence above.If useful, I'd be glad to take the f16 slice after #363 lands, on top of its fixture-mode plumbing, if that split suits you. It would add an explicit f16 mode per fixture, a non-folding f16 preserve-vs-FTZ control like the one above, and an explicit flush in the emitted HLSL only where a fixture asks for f16 FTZ. f64 stays out of scope.
AI-assisted: run and prepared with the support of Roan System; reviewed before posting.
Imported from R0Y00/Xbox2Windows. Originally posted by MoonYueya on 2026-11-22T10:25:00Z.
@roansystemlabs Thanks — this matches what we see, and part of it is spec-level rather than measurement:
fp32-denorm-mode. So DXIL gives no f16 denormal attribute to request; that half of the conclusion is settled by the spec and does not depend on how many devices were tested. (The pipeline-side f16 mode bits on RDNA are a separate matter, as the f32 ones are.) Whether f16 subnormals are preserved is still a measurement, since I could not find it stated in DXIL.rst.cs_6_6 -enable-16bit-types, built three times with-denorm preserve|ftz|any, raw words written to aRWStructuredBuffer<uint>):min(h, 1.0h)on the least (0x0001), largest (0x03ff) and a middle (0x0200) binary16 subnormal, and f16→f32 widening of the same values, returned the subnormal unchanged in all three builds. It had noleast normal × 0.5row and nof32 2^-24 → f16row, so it does not replace an AMD run of your probe. If you share the probe, I can run it on that AMD adapter so the comparison includes AMD hardware.faddandfdivrequires a resulting denorm to be flushed, so an add row whose inputs are both normal and whose sum is subnormal (for exampleasfloat(0x00800001) + asfloat(0x80800000), which is0x00000001under preserve, both operands from the constant buffer) separates preserve from FTZ by the spec alone. Yourleast normal × 0.5row measures the same thing, but DXIL.rst has nofmulsection, so it is a measurement rather than a spec guarantee. I'd suggest making an add row the required control and keeping min/max and multiply as supplementary.-0versus RTX+0result formax(least subnormal, -0)fits the same text. Comparing a flushed zero by class (zero, either sign) seems safer than bit-for-bit, unless the operand order in the emitted DXIL is pinned and checked.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by roansystemlabs on 2026-11-22T10:47:50Z.
@MoonYueya Thanks, and agreed on all three points. The probe is below, updated to your suggestion: the required row is now an add of two normal operands whose sum is subnormal, min/max/multiply are supplementary, and zeros are compared by class.
It is three small files (synthetic HLSL, no game data) and uses only
dxcand the repository'soffscreen_checkwith the losslessR32G32B32A32_UINTreadback from #363:Each shader is built at
ps_6_2with no flag and with-denorm any|ftz|preserve, and each row is reported aspreserved,flushed (+0/-0)orother. Built-in negative control: the f32-denorm ftzbuild must flush the required add row and the renderer must report the mismatch, otherwise the script exits 2.Results on Windows 11 (26200), RTX 3070 driver 32.0.16.2101, and WARP 10.0.26100.9818, renderer built at
075413d:0x000000010x0001preserved0x004000000x0200preservedDXIL records only
fp32-denorm-modein every build (none without a flag). The negative control passed on both adapters. An AMD run would be very welcome.denorm_probe_f32.hlsldenorm_probe_f16.hlslrun_denorm_probe.pyTaking the f16 slice. In this harness's own lowering, the f16 mode is fixed by construction:
v_pk_*_f16widens each half from its encoding, computes in binary32 and narrows in integer arithmetic, so a binary32 flush never reaches a binary16 subnormal, and DXIL offers no f16 attribute to request. The PR recordspreservewith that reason, adds a CPU-side check that keeps the lowering free of driver conversions and native halves, and adds a draw whose required row is av_pk_add_f16with normal inputs and the subnormal sum0x8001, with max, multiply and fma as supplementary rows, run under both-denorm preserveandftz. It is narrower than the per-fixture mode I offered above: no fixture asks for f16 FTZ yet, so an explicit flush in the emitted HLSL would have no user. f64 and the compressed-export path (driverf32tof16) stay out of scope. PR to follow, referencing this issue.AI-assisted: prepared with an AI coding agent and reviewed by a human before posting.
Imported from R0Y00/Xbox2Windows. Originally posted by MoonYueya on 2026-11-22T11:19:50Z.
Thanks — here is the AMD column, run with your probe and your renderer unchanged.
Environment: Windows 11, build 10.0.26300.9711; renderer built at
075413d(unchanged source, Ninja/Debug/MSVC 19.51);dxc1.8.2502.11 from Windows SDK 10.0.26100.0. The three files were taken verbatim from your comment (denorm_probe_f32.hlsl(1295 bytes) sha2561ac00271558451c7afc6a5ecb54c5186210f58062d8cfa50454514b894691e9a,denorm_probe_f16.hlsl(1899 bytes)71e580d484e74882a7c1d2dbc9ecb1f46d4aa4f1886f9a186ef8577d109350be,run_denorm_probe.py(5629 bytes)fee2a051f4d93a6c4d08826ae285be3b68a7eba5027e4b71162c18b6cfd589fb).offscreen_checkselects the adapter withXBOX2WINDOWS_ADAPTER, so no code or registry change was needed.Results below use your table layout.
AMD Radeon(TM) Graphics, vendor
1002device164e, driver32.0.11024.2:0x000000010x0001preserved0x004000000x0200preservedFor reference, the same run on the other two adapters on this machine.
NVIDIA GeForce RTX 3080, vendor
10dedevice2206, driver32.0.16.1742: identical to the AMD column above, including+0onmax(least, -0).WARP, Microsoft Basic Render Driver, vendor
1414device008c, driver10.0.26100.9711: identical exceptmax(least, -0), which flushes to-0there, matching what you saw.As in your run, the DXIL listings record only
fp32-denorm-modein every flagged build, nothing without a flag (same dxc and same flags, so identical in every run). The negative control passed on every run (AMD, the RTX 3080 selected both by default and by name, WARP): the f32-denorm ftzbuild flushed the required add row and the renderer reported the mismatch.Two things I am not claiming. This is desktop AMD driver behaviour on one integrated adapter; I did not run anything on console hardware and the table says nothing about it. And the f16 column is weaker than it looks: these builds returned the binary16 subnormal words on all three adapters, but DXIL carries no f16 denormal attribute, so it does not show that a driver must keep them, nor whether the driver evaluated the half operations at half or wider precision.
AI-assisted: measured with an AI coding agent driving the build and runs, reviewed by a human before posting.
Imported from R0Y00/Xbox2Windows. Originally posted by rwZephyr on 2026-11-22T18:47:13Z.
Discrete RDNA 4 measurement using the published f32/f16 probe. All three files matched the SHA-256 values in the prior AMD iGPU report. This report is AI-assisted. The tests ran locally.
Windows 11 25H2 x64 build
26200.9974. Renderer from unmodifiedmainatf1f95cf62ea873f0b32fbe9ae1a629151b6e382a,devpreset, MSVC19.44.35230, SDK10.0.26100, DXC1.8.2502.8, Python3.12.10. The renderer identified the RX 9070 XT (1002:7550) on driver32.0.32029.2010and WARP (1414:008c) on10.0.26100.9818. Both reporteddebug_layer=unavailable.With the workspace-local toolchain loaded and the debug CRT DLLs staged beside
offscreen_check.exe, I configured withcmake --preset dev "-DINTAKE_PYTHON=$python"and built withcmake --build --preset dev --target offscreen_check. Here$python,$dxc, and$rendererpoint to the virtual environment Python, DXC, and built renderer.any/ftz0x00000000max(least, -0)returned0x80000000preserve0x00000001, multiply0x004000000x0001, multiply0x0200, widen0x33800000The required f32 FTZ control flushed the normal-plus-normal add to
+0and triggered the renderer mismatch on both backends. Both scripts exited 0. DXIL recorded onlyfp32-denorm-modein flagged builds, with no denorm attribute in unflagged builds. The binary16 results measure these specific draws on the listed drivers.Imported from R0Y00/Xbox2Windows. Originally posted by romn4rch on 2026-11-22T22:10:51Z.
Intel column, run with the published probe and an unmodified renderer. All three files matched the SHA-256 values in the AMD iGPU report:
denorm_probe_f32.hlsl(1295 bytes)1ac00271558451c7afc6a5ecb54c5186210f58062d8cfa50454514b894691e9adenorm_probe_f16.hlsl(1899 bytes)71e580d484e74882a7c1d2dbc9ecb1f46d4aa4f1886f9a186ef8577d109350berun_denorm_probe.py(5629 bytes)fee2a051f4d93a6c4d08826ae285be3b68a7eba5027e4b71162c18b6cfd589fbEnvironment
26300.100758086device468b, driver32.0.101.7026(integrated GPU of a Core i5-12450HX laptop that also has an RTX 3050 6GB Laptop GPU)offscreen_check.exefrom thegpu-check-windows-x64CI artifact built frommainatb42888dd2e10048348f98d1346db425a32075973. The artifact's SHA-256 matched its.sha256.1.8.2502.8(dxcompiler.dllb4711839e,dxil.dll1.8.2502.8), Python3.14.7Every build reported
adapter=Intel(R) UHD Graphics vendor=8086 device=468b driver=32.0.101.7026, so the selection by name kept all draws on the Intel adapter.Results, in the same layout as above:
0x000000010x0001preserved0x004000000x0200preservedanyandftzbuilds returned rc=1 (renderer mismatch against the preserve expectation); the rest returned rc=0.fp32-denorm-modein the flagged builds and no denormal attribute without a flag, for both shaders.-denorm ftzbuild flushed the required add row and the renderer reported the mismatch. The script exited 0.+0formax(least, -0)in flushed builds, where WARP returns-0.This is the Intel result asked for in the f16 measurement above. The probe now has NVIDIA, AMD and Intel hardware results, plus WARP.
Limits: this is one desktop Intel driver on one integrated adapter, and it says nothing about console hardware. As noted above for the f16 column, these draws returned the binary16 subnormal words; that does not show a driver must keep them, or at which precision it evaluated the half operations. The tests ran locally.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by a747624515-sudo on 2026-11-23T03:25:14Z.
RTX 5070 (driver 32.0.16.2124): probe data, plus two more fixtures that fail PSO creation under
-denorm preserveEverything below is from the published probe in this thread, unmodified. I verified the three files against the SHA-256 values posted above before running:
denorm_probe_f32.hlsl(1295 bytes)1ac00271558451c7afc6a5ecb54c5186210f58062d8cfa50454514b894691e9adenorm_probe_f16.hlsl(1899 bytes)71e580d484e74882a7c1d2dbc9ecb1f46d4aa4f1886f9a186ef8577d109350berun_denorm_probe.py(5629 bytes)fee2a051f4d93a6c4d08826ae285be3b68a7eba5027e4b71162c18b6cfd589fbEnvironment
26100.9974, MSVC14.44.35207(VS Build Tools, Hostx64/x64)10DE:2F04, driver32.0.16.2124mainatbd3020969a5c06816a0dd79830e870ce98c95862,devpreset, Debug1.9.2602.17(dxcompiler.dll: 1.9(5184-21d28f72)) from Windows SDK10.0.26100.01414:008c,10.0.26100.9818) as a second column1. denormal probe
anyftzpreserve0x00800001 + 0x808000000x00000001min/max/least normal * 0.5f16 records only
"fp32-denorm-mode"in the DXIL listing in every variant, never an f16 attribute — same as reported for the other adapters. Negative control passed: the f32ftzbuild flushed the required add row and the renderer reported the mismatch.This matches the shape reported on the RTX 5060 Ti: no flag already flushes, only
preservekeeps the subnormal.2. What is new: two more programs that fail PSO creation under
preserve#363 records one NVIDIA driver exception for
-denorm preserve— RTX 5060 Ti, driver32.0.16.2124, oncurve. #569 records a second one on a different build: RTX 5080, driver32.0.16.2101, ondpp. My adapter is on the same driver build as the 5060 Ti entry, and two different programs fail here:preserveftzanypixel_aot_e64_approx_hardwareE_OUTOFMEMORYpixel_aot_sdwa_unary_hardwareE_OUTOFMEMORYBoth fail the same way: all ten batch cases return
status=error, withTranslated pixel pipeline failed (HRESULT 0x8007000e). Changing onlyF32_DENORM_MODEin the harness from"preserve"to"ftz"(a copy, no other edit) flips both to exit 0 on the same renderer, shader and adapter.I also ran all thirteen
draw-*fixtures under the unchangedpreservedefault. Only these two fail; the other eleven pass.draw-e64still passes underpreserveand then fails underftzat its own dual-mode negative control, which is the expected inversion and a second independent sign that the mode really reaches the pipeline.So on driver
32.0.16.2124: 5060 Ti losescurve, 5070 losese64_approxandsdwa_unary. Same driver build, three different programs, two different adapters. That reads as this driver being unreliable for-denorm preserveon some program shapes rather than one bad fixture, which may matter when deciding which fixtures recordany.Limits
ftz/anyruns used a local copy ofpixel_aot_check.pywith the single constant changed, kept out of the tree.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T04:52:59Z.
Thanks for the Intel and RTX measurements. On RTX 5070 driver
32.0.16.2124, please record the two new results separately from numeric mismatches.e64_approxandsdwa_unaryfail at PSO creation underpreserve, whileftzandanycreate a pipeline. Keepdraw-e64on explicitpreservebecause its negative control distinguishes that mode. A fixture may useanyonly if the cases and their mismatch controls show the expected results are mode-independent. Please include the exact HRESULT and keep this scoped to the measured driver and programs.Imported from R0Y00/Xbox2Windows. Originally posted by denn0x on 2026-11-23T17:09:37Z.
RX 9070 XT: a binary32 equality with a subnormal operand loses the subnormal inside
&&or||, even under-denorm preserve. This makespixel_aot_comparisons_hardwarefail on this adapter and driver.Environment.
1002:7550), driver 32.0.32015.7029, debug layer enabled.10.0.26100.9818.mainatf19bcfc,devpreset.The RX 9070 XT reports above used driver 32.0.32029.2010, and their commits (
edc2e54,f1f95cf) predate the f32 compare draws (bdc76df). As far as I can tell, this is the first RDNA 4 result for those draws.Failure.
ctest --preset dev --no-tests=error -R '^pixel_aot_comparisons_hardware$' -Vfails atcheck_f32_compare_draws. Only casef32-cmp-1(F32_COMPARE_SETS[1]: +0.0, -0.0, -1.0, 1.0) mismatches: word 0 is0x000cccccwhere0x0008ccccis expected. The difference is bit 18,v_cmp_eq_f32_e32 vcc_lo, 1, v16: the inline integer1is read as the binary32 bits0x00000001, and the compare is with -0.0. The expected result is false; the hardware returns true. Its mismatch controls still fire, and WARP passes.Narrowing. On the hardware, the result stays wrong when I:
precise;-Gis;The trigger is the shape the translator emits,
ordered(a) && ordered(b) && (a == b). Synthetic probe, compiled with-Gis -denorm preserve -T ps_6_2, constants0x00000001,0x80000000; every bit should be 0:asfloat(1u) == zon its own&&equality&&equalityisnan(z) || equalityThe same equalities on their own, plus
d > +0,d != -0,d + dandmin(d, 1), keep the subnormal underpreserveon this driver. They flush underftzandanyon both backends. So the mode request works, and the deviation is specific to a compare that feeds&&or||.I also tried other ways of combining the guard and the equality, with
-HV 2021. Each is wrong on the hardware except one:bool e = ...;and thenguard && e;e ? guard : false;(uint)guard & (uint)e;and(guard, e);(e ? 1u : 0u) & (guard ? 8u : 0u), two selects followed by an integer AND, is correct.That looks like the driver's optimizer folding the boolean logic, so I don't think a translator-side rewrite would be robust.
Not tested: the newer driver 32.0.32029.2010. Updating the driver isn't something I can do on this machine.
Following the earlier guidance to keep comparison predicates strict, I'd record this as a driver-specific mismatch for this adapter, like the RTX 5060 Ti PSO case, rather than relax the reference. I can rerun on request.
AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T17:23:03Z.
Keep bit 18 strict and the hardware result as a mismatch. The direct comparison and arithmetic controls separate this from a general inability to preserve binary32 subnormals. @stan495, if available, could you run the same five-bit source-built probe and pixel_aot_comparisons_hardware on the RX 7900 XTX and identify the driver/DXC used? A second RX 9070 XT on 32.0.32029.2010 would also help distinguish driver version from hardware family. Please keep the unusual integer-AND workaround as a probe result until it survives both driver versions and independently preserves NaN predicates and signed zeros.
Imported from R0Y00/Xbox2Windows. Originally posted by MoonYueya on 2026-11-23T17:25:44Z.
Understood, and we will keep the two kinds of result apart. On our side that means being explicit about what we measured, because the RTX 5070 rows are not ours.
32.0.16.2124), and that report already carries the exact code: all ten batch cases returnedstatus=errorwithTranslated pixel pipeline failed (HRESULT 0x8007000E).0x8007000EisE_OUTOFMEMORY, i.e. a creation failure, not a value mismatch — in this harness a wrong value surfaces aspixel_mismatchat compare time, which is the reason the two belong in separate rows rather than one.1002:164edriver32.0.11024.2, RTX 308010de:2206driver32.0.16.1742, and WARP10.0.26100.9711— every probe build created a pipeline in all four modes and the negative control behaved as expected. We did not rune64_approxorsdwa_unary, so we cannot add or contradict a row for them; treat the RTX 5070 result as the only measurement of those two fixtures.draw-e64on explicitpreserveis right for the reason you give: its negative control inverts between modes, so it is the fixture that shows the mode actually reaches the pipeline.any: in our f32 columnsanysits withftz, not withpreserve— no flag,anyandftzall flush the required add row, and onlypreservekeeps0x00000001. A fixture whose expected values assume preservation therefore cannot recordany; it is only usable where the cases and their mismatch controls are mode-independent.Scope: all of the above is the measured adapter, driver and program set, and none of it is console evidence.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by triggered02 on 2026-11-26T03:32:31Z.
Naming the exact blocker so this thread does not sit on "waiting": @R0Y00's ask on this issue has two specific measurements outstanding, and both are host-specific:
Until one of those exists, the open question stays open by construction: the current data has the RTX 5070 rows (E_OUTOFMEMORY at PSO creation � a creation failure, not a value mismatch) and @MoonYueya's RDNA2 iGPU rows, which cannot distinguish a driver-level denormal/NaN-payload difference from an instruction-level one. MoonYueya's point that PSO-creation failures and value mismatches belong in separate rows is accepted and is already how the thread reads.
The integer-AND workaround stays a probe result per the maintainer note � it needs to survive both driver versions and preserve NaN predicates and signed zeros before anything treats it as a fix.