shader: lower v_frexp, v_cvt_flr/rpi and v_ldexp in gfx2hlsl (Part of #1723) #2072
Closed
tedin7 wants to merge 11 commits from
upstream-pr/2079 into main
pull from: upstream-pr/2079
merge into: R0Y00:main
R0Y00:main
R0Y00:codex/indirect-large-backed-views
R0Y00:codex/word3-preflight-check
R0Y00:codex/vertex-table-two-records
R0Y00:codex/live-index-alias
R0Y00:codex/copied-vertex-buffer-srv
R0Y00:codex/windows-stage-test-output
R0Y00:codex/preserve-live-srv-retirement
R0Y00:codex/share-render-target-tracking
R0Y00:codex/sgd5-negative-offset-fixture
R0Y00:coverage-dashboard
R0Y00:codex/mesh-loose-root
R0Y00:codex/mesh86-cache-padding
R0Y00:codex/xmem-scatter-preflight
R0Y00:codex/mesh-depth-ps
R0Y00:codex/indirect-dispatch-refresh
R0Y00:codex/compute-container-index
R0Y00:codex/startup-compute-formatted-load
R0Y00:codex/compute-indirect-producer
R0Y00:codex/compute-atomic-soffset
R0Y00:codex/mesh-dual-handoff
R0Y00:codex/startup-run-sh-watcher-control
R0Y00:codex/queue31-page-alias
R0Y00:codex/indexed-indirect-compute-root
R0Y00:codex/typed-buffer-view-metadata
R0Y00:codex/translated-indexed-address-alias
R0Y00:codex/fixed-mesh-create-result
R0Y00:codex/xmem-section-lease
R0Y00:codex/startup-slot86-mesh-cache
R0Y00:codex/restore-mesh-barrier-iteration
R0Y00:codex/translated-indirect-upload-index
R0Y00:codex/xapu-completion-opt-in
R0Y00:codex/translated-indexed-rect
R0Y00:codex/translated-indexed-indirect
R0Y00:codex/startup-mesh-lds-integration
R0Y00:codex/startup-console-ms24
R0Y00:codex/startup-slot57-mesh-request
R0Y00:codex/indirect-copy-provenance
R0Y00:codex/present-color-producer-trace
R0Y00:codex/compute-dispatch-binding-trace
R0Y00:codex/translated-indirect-table-buffers
R0Y00:codex/indirect-copy-provenance-base
R0Y00:codex/mix-half-literal-source
R0Y00:codex/translated-indirect-draw
R0Y00:codex/xmem-scatter-diagnostics
R0Y00:codex/slot148-recording-upload
R0Y00:codex/slot70-loading-art-verified
R0Y00:codex/command-list-upload-arena
R0Y00:codex/recover-failed-command-list
R0Y00:codex/startup-heap-timing-notes
R0Y00:codex/align-audio-input-timeline
R0Y00:codex/synthetic-depth-export-control
R0Y00:codex/startup-texture1d-on-windows
R0Y00:codex/1629-packed-position-fixture
R0Y00:codex/cpu-srv-refresh
R0Y00:codex/stream-root-srv-draw
R0Y00:codex/audio-mixer-timer
R0Y00:codex/startup-reload-published-shader
R0Y00:codex/priority-integrate-1284
R0Y00:codex/guest-sixteen-page-record
R0Y00:codex/aot-placed-dxr-batch
R0Y00:codex/guest-directory-selection
R0Y00:codex/gamesave-enumerate-read
R0Y00:codex/readme-archive-to-pixels
R0Y00:codex/pe-placed-view-draw
R0Y00:codex/archive-directory-gpu
R0Y00:codex/slot133-dxr-build
R0Y00:codex/materialize-placed-vertex-view
R0Y00:codex/dstorage-directory-offsets
R0Y00:codex/xg-nine-bc-copy
R0Y00:codex/xg-slot10-bc64-arrays
R0Y00:codex/dxr-guest-address-readback
R0Y00:codex/gpu-va-high-bits
R0Y00:codex/clarify-diagnostic-startup-scope
R0Y00:codex/xg-six-levels
R0Y00:codex/typed-derived-blend
R0Y00:codex/english-legal-text-progress
R0Y00:codex/address-bc-4ks
R0Y00:codex/dstorage-bounded-file-read
R0Y00:codex/wide-srv-offsets-menu
R0Y00:codex/startup-memory-srv
R0Y00:codex/bound-view-tail
R0Y00:codex/language-selector-readback
R0Y00:codex/setup-menu-progress
R0Y00:codex/cpu-plane-refresh
R0Y00:codex/startup-ubyte-vertex
R0Y00:codex/presenter-window-selection
R0Y00:codex/startup-uniform-buffer-lane
R0Y00:codex/intro-loop-timing
R0Y00:codex/static-clzero-loops
R0Y00:codex/document-rtx-intro
R0Y00:codex/startup-insertq
R0Y00:codex/nv12-startup-texture
R0Y00:codex/stream-stage-draw
R0Y00:codex/startup-null-uav-format
R0Y00:codex/startup-draw-capture
R0Y00:codex/shorten-windows-checks
R0Y00:codex/dstorage-rfc1950
R0Y00:codex/startup-dump-fence
R0Y00:codex/pr1135-review-base
R0Y00:codex/startup-stream-requests
R0Y00:codex/startup-chroma-view
R0Y00:codex/readme-graphics-pipeline-streams
R0Y00:codex/static-crt-free-tls
R0Y00:codex/arc-140t-rtx-5080-laptop-gpu-reports
R0Y00:codex/main-startup-progress-entry
R0Y00:codex/signed-dxil-catalogue
R0Y00:codex/reloc-free-preferred-base
R0Y00:codex/quad-dpp-bit-mask
R0Y00:codex/raw-srv-bounds
R0Y00:codex/rx9070-31044-hardware-report
R0Y00:codex/gpu-page-source-provenance
R0Y00:codex/runtime-placeholder-interior
R0Y00:codex/gpu-copy-queue-tile-order
R0Y00:codex/pe-pin-external-providers
R0Y00:codex/xmem-placeholder-reservations
R0Y00:codex/xmem-shared-physical-pages
R0Y00:codex/pe-package-startup
R0Y00:codex/xmem-tools-memory-query
R0Y00:codex/cpu-stack-output-import
R0Y00:codex/pe-load-security-cookie
R0Y00:codex/record-three-bvh-retests
R0Y00:codex/cpu-rbp-frame-anchor
R0Y00:codex/xmem-default-startup
R0Y00:codex/record-rtx-3050-ti-9597
R0Y00:codex/docs-readme-start-here
R0Y00:codex/check-compute-mad24-truncation
R0Y00:codex/docs-discord-community
R0Y00:codex/bound-rcx-branch-mutants
R0Y00:codex/rtx5060ti-bvh-62114
R0Y00:codex/837-neutral-readme-disclaimer
R0Y00:codex/record-rtx-3070-ti
R0Y00:codex/title-neutral-public-wording
R0Y00:codex/exe-shadow-frame-submissions
R0Y00:codex/exe-shadow-runtime-chain
R0Y00:codex/readme-polish
R0Y00:codex/gpu-coverage-nov23
R0Y00:codex/spirv-minlod
R0Y00:codex/shadow-shim-device
R0Y00:codex/exe-two-shadow-frames
R0Y00:codex/shim-dispatch-cleanup
R0Y00:codex/fix-spirv-cache-probe
R0Y00:codex/sampler-use
R0Y00:codex/ballot-bit-extract
R0Y00:codex/packed-fma-release
R0Y00:codex/cpu-packed-fma-o2
R0Y00:codex/publish-coverage-dashboard
R0Y00:codex/mesh-cbv-binding-order
R0Y00:codex/spirv-window-fixture
R0Y00:codex/ps-e32-float-uint
R0Y00:codex/ps-cbuffer-reads
R0Y00:codex/fixed-profile-rescan
R0Y00:codex/shim-compute-integration
R0Y00:codex/readme-visible-coverage
R0Y00:codex/readme-research-navigation
R0Y00:codex/integrate-pr-256
R0Y00:codex/indexed-mesh
R0Y00:codex/sampled-coverage
R0Y00:codex/first-ms
R0Y00:codex/dual-ps
R0Y00:codex/ps-attribute
R0Y00:codex/compute-first
R0Y00:codex/ps-export
R0Y00:codex/readme-research-status
R0Y00:codex/ps-layout
R0Y00:codex/blast-window
R0Y00:codex/chart-caption
R0Y00:codex/reviewer-roles
R0Y00:codex/blast-aot
R0Y00:codex/archive-program
R0Y00:codex/crc-stream-program
R0Y00:codex/exe-image-data-chain
R0Y00:codex/local-cpu-fixture-coverage
R0Y00:codex/exe-bound-frame-chain
R0Y00:codex/exe-mapped-comparison
R0Y00:codex/contribution-dependencies
R0Y00:codex/exe-entry-aot
R0Y00:codex/bink-frame-heap-integration
R0Y00:docs/hardware-seven-reports
R0Y00:codex/bink-custom-heap
R0Y00:codex/bink-heap-callers
R0Y00:codex/discussions-entry-points
R0Y00:codex/gpu-community-batch-64
R0Y00:codex/ffx-scratch-writers
R0Y00:codex/generic-project-documentation
R0Y00:codex/ffx-dispatch-rcas
R0Y00:codex/four-windows-gpu-reports
R0Y00:codex/title-neutral-project-wording
R0Y00:codex/community-coverage-provenance
R0Y00:codex/rcas-packed-texels
R0Y00:codex/community-gpu-retests
R0Y00:codex/community-build-and-gpu-reports
R0Y00:codex/ffx-provider-loop
R0Y00:codex/ffx-recurrent-views
R0Y00:codex/ffx-recurrent-resource
R0Y00:codex/amd-wave64-reports
R0Y00:codex/ffx-backend-slots
R0Y00:codex/upscaler-device-init
R0Y00:codex/ffx-context-lifecycle
R0Y00:codex/ffx-version-query
R0Y00:codex/ffx-provider-contract
R0Y00:codex/typed-object-callback
R0Y00:codex/cpu-ordinal-import
R0Y00:codex/chained-cpu-ranges
R0Y00:codex/cpu-import-call
R0Y00:codex/cpu-direct-call
R0Y00:codex/cpu-leaf-aot
R0Y00:codex/community-project-status
R0Y00:codex/script-state-path-replay
R0Y00:codex/script-state-evidence
R0Y00:codex/bc7-resident-tail
R0Y00:codex/bcpack-mip-tail
R0Y00:codex/bc7-texture-draw
R0Y00:codex/asset-ranges
R0Y00:codex/pixel-constants
R0Y00:codex/pixel-aot
R0Y00:codex/pre-exe-workloads
R0Y00:codex/root-signature-device-coverage
R0Y00:engineering/packed-bvh-leaves
R0Y00:engineering/bvh-build-and-update
R0Y00:engineering/intake-root-roundtrip
R0Y00:community/gpu-check-release
R0Y00:community/english-contributor-entry
No reviewers
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!2072
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2079"
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 tedin7 on 2026-11-25T00:03:22Z.
Part of #1723
What this unblocks: pixel shaders that use
v_frexp_mant_f32,v_frexp_exp_i32_f32,v_cvt_flr_i32_f32,v_cvt_rpi_i32_f32orv_ldexp_f32no longer stopgfx2hlsl.pywith "Unsupported"; they now lower to HLSL.Source: AMD "RDNA 2" Instruction Set Architecture reference guide, instruction descriptions V_FREXP_MANT_F32, V_FREXP_EXP_I32_F32, V_CVT_FLR_I32_F32, V_CVT_RPI_I32_F32 (VOP1) and V_LDEXP_F32 (VOP3); Microsoft HLSL intrinsic reference,
frexpandldexp.Changes:
tools/startup/gfx2hlsl.py: five new handlers.cvt_rpiisfloor(x + 0.5).ldexpclamps the shift to +-300 and scales in three parts, so no factor overflows binary32.tests/startup_gfx2hlsl_frexp_cvt_check.py: runs the emitted HLSL on the CPU against RDNA 2 ISA references. It is registered asstartup_gfx2hlsl_frexp_cvtinCMakeLists.txt.v_ldexp_f32for the compute path is left to #1918, which touches a different tool.Verification:
python3 -B tests/startup_gfx2hlsl_frexp_cvt_check.pyon the merged branch:gfx2hlsl frexp/cvt/ldexp check passed(36 inputs per unary op, 736 for ldexp).python3 -B tests/startup_gfx2hlsl_frexp_cvt_warp_check.py: controls passed;... draw <dxc> <offscreen_check> warp [fxc]draws every operation against references from Python doubles and a mutated lowering that must read other words.gfx2hlsl.pyfromorigin/main: fails withUnsupported: v_frexp_mant_f32.origin/main(three conflicts:CMakeLists.txtanddocs/experiments.mdkept both sides,gfx2hlsl.pykept both handler groups).AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-25T00:10:18Z.
Review: COMMENTED
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:
c455011555ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-25T00:03:35Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
628685fℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-25T00:10:18Z.
Code review location:
tools/startup/gfx2hlsl.py; line 1484For input
0x3effffff(immediately below 0.5), HLSL roundsx + 0.5to1.0before applyingfloor, returning 1 instead of 0;8388609.0fsimilarly becomes 8388610 instead of remaining 8388609. These cases already appear in the repository'sCVT_FLR_RPI_EXCEPTIONALreference table. The new evaluator masks this because its+uses Python binary64 arithmetic. Use the exact fractional-part decomposition already implemented for this opcode intools/pixel_aot.py, and model binary32 addition in the check.Useful? React with 👍 / 👎.
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-25T00:10:18Z.
Code review location:
tools/startup/gfx2hlsl.py; line 1477For NaN inputs, this branch returns zero for both
v_cvt_flr_i32_f32andv_cvt_rpi_i32_f32, contradicting the established reference inCVT_FLR_RPI_EXCEPTIONALintests/pixel_aot_check.py: native RDNA 2 measurements give0x7ffffffffor positive NaNs and0x80000000for negative NaNs. The new lowering disagrees with all six NaN rows for each opcode, while its new reference function duplicates the incorrect zero result. Classify NaNs using their source bits and select the signed saturation endpoint rather than applying the truncating conversion's NaN-to-zero rule.Useful? React with 👍 / 👎.
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-25T00:10:18Z.
Code review location:
CMakeLists.txt; line 2207This adds five supported startup-translator opcodes and a new reproduction check, but neither
README.mdnordocs/experiments.mdis updated.AGENTS.mdexplicitly requires a public documentation update when capabilities or reproduction commands change; the existing frexp/cvt experiment notes describe the separatepixel_aot.pypath, not this startup lowering. Add a startup-specific entry with the check command, the CPU-only result, and the denormal limitations so contributors can discover and reproduce the new capability.AGENTS.md reference: AGENTS.md:L211-L212
Useful? React with 👍 / 👎.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T01:02:45Z.
Review: COMMENTED
No description provided.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T01:02:46Z.
Review: COMMENTED
No description provided.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T01:02:48Z.
Review: COMMENTED
No description provided.
Imported from R0Y00/Xbox2Windows. Originally posted by thepatrickworld on 2026-11-25T01:47:09Z.
Independent run on hardware.
startup_gfx2hlsl_frexp_cvt_warp_check.py draw … hardware …exits 0 here, head7f436813, with FXC and DXC: AMD Radeon RX 9070 XT,1002:7550, driver32.0.32029.2010, Windows 11 build 26200.9974. 148 pixel draws, nomismatchline; 11 of them carry a NaN operand and 16 a-INF, so the special cases the guide names are actually drawn rather than skipped. WARP passes in the same run.The fixture is named for WARP but takes the adapter as an argument, so as far as I can tell this is its first run on a card. It covers what was missing from this PR: the translated
frexp,cvtandldexpunder FXC and DXC on an adapter nobody had tried, including the sign-dependent NaN saturation and thecvt_rpitie cases.Limit. AMD only; there is no NVIDIA adapter on this machine. The expected side is this PR's own model, so what passes here is that the translation and the model agree on the card — not that the model is right about every clause of the guide. The parts I could check against the guide directly are the special-value clauses, and those are the ones carried in the inputs above.
AI-assisted; runs executed on the machine above.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T01:02:44Z.
Code review location:
tools/startup/gfx2hlsl.py; line 1484Fixed in
7f43681(rebased on main, push pending): rpi now adds 1 to floor(x) from the exact fraction (x - floor(x) >= 0.5), so 0x3effffff reads 0 and 8388609.0 stays; the CPU evaluator now rounds binary32 add/sub and the check covers both rows.AI-assisted; commands listed were executed locally: python3 -B tests/startup_gfx2hlsl_frexp_cvt_check.py (pass), python3 -B tests/startup_gfx2hlsl_frexp_cvt_warp_check.py controls (pass). The D3D12 draw was not re-run on Win2025 for this commit.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T01:02:46Z.
Code review location:
tools/startup/gfx2hlsl.py; line 1477Fixed in
7f43681(rebased on main, push pending): both conversions now read 0x7fffffff for a positive NaN and 0x80000000 for a negative one, selected from the source bits; the reference follows the same table and covers all NaN spellings.AI-assisted; commands listed were executed locally: python3 -B tests/startup_gfx2hlsl_frexp_cvt_check.py (pass), python3 -B tests/startup_gfx2hlsl_frexp_cvt_warp_check.py controls (pass). The D3D12 draw was not re-run on Win2025 for this commit.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T01:02:48Z.
Code review location:
CMakeLists.txt; line 2207Fixed in
7f43681(rebased on main, push pending): added a startup-specific section to docs/experiments.md with the check command, the CPU-only result and the denormal limits.AI-assisted; commands listed were executed locally: python3 -B tests/startup_gfx2hlsl_frexp_cvt_check.py (pass), python3 -B tests/startup_gfx2hlsl_frexp_cvt_warp_check.py controls (pass). The D3D12 draw was not re-run on Win2025 for this commit.
Imported from R0Y00/Xbox2Windows. Originally posted by Makto94 on 2026-11-25T10:18:29Z.
tests/startup_gfx2hlsl_frexp_cvt_check.pyfails at head3bf27cbbon Python 3.12.0, 3.12.10 and 3.11.17. It passes on Python 3.14.8. The cause is in the evaluator of the check (see "Measured").Failure (Windows x64, Python 3.12.0, 3.12.10 and 3.11.17)
Command, from the repository root:
python -B tests/startup_gfx2hlsl_frexp_cvt_check.py(ctest namestartup_gfx2hlsl_frexp_cvt).Measured
startup_gfx2hlsl_frexp_cvt_controlsandstartup_gfx2hlsl_frexp_cvt_warppass on the same head.Cause:
value()converts the word withstruct.unpack('<f', ...). On these 3.11 and 3.12 builds the float32 to double step insideunpacksets the quiet bit of a signaling NaN (double0x7ff8000020000000).bits()then returns0x7fc00001.ref_frexp_mantreturns the word unchanged for exponent 255, sowantkeeps the signaling NaN, whilegotpasses throughvalue()andbits().Round trip with no repo code:
import struct; print(hex(struct.unpack('<I', struct.pack('<f', struct.unpack('<f', struct.pack('<I', 0x7f800001))[0]))[0]))0x7fc000010x7fc000010x7fc000010x7f800001AGENTS.mdasks for Python 3.11 or newer, so 3.11 and 3.12 are in the supported range.Line 14 of the check says: "Not covered: denormal inputs and results of v_ldexp_f32 (the denormal mode decides them) and signaling-NaN payloads." The check still feeds
0x7f800001and expects it to pass through.Gates, from
.github/workflows/windows.ymlat this head:pull_requestthe job runsctest --preset pr --no-tests=error ...(line 334). Theprpreset inCMakePresets.jsondoes not selectstartup_gfx2hlsl_frexp_cvt*, so the pull request job does not run this check.main, the job runsctest --preset dev --no-tests=error --parallel 4 -E '_hardware$' ...(line 339). That selection includesstartup_gfx2hlsl_frexp_cvt. The job is "Build and test on Windows" withpython-version: '3.12'(line 286).Environment: Windows 11 build 26300; Python 3.12.0 (venv), 3.12.10, 3.11.17 and 3.14.8 (uv).
Suggestion (your call)
Option A: keep the word with the value. A sketch, tried in a scratch copy of the check:
Result with this change: 4 mismatches become 0 on 3.12.0 and 3.11.17. The scratch copy still passes on 3.14.8. The check still catches translator mutations:
0x3f000000uchanged to0x3f800000uinop_v_frexp_mant_f32:FAILED: 68.FAILED: 16.Option B: state a minimum Python version for this check. This needs a docs change and leaves 3.11 and 3.12 users with a failing test.
I ran no hardware (
_hardware) test for this comment.Imported from R0Y00/Xbox2Windows. Originally posted by Makto94 on 2026-11-25T10:27:27Z.
startup_gfx2hlsl_frexp_cvt_hardwarefails on an RTX 3070 Ti at head3bf27cbb. On the same head,startup_gfx2hlsl_frexp_cvt_warppasses on WARP. The failure is inv_ldexp_f32, pixel 4, lane 2: the NaN input reads back as7fffffffwhere the check expects7fc00000. This is a separate result from my earlier comment on the CPU check.Command (Windows 11 build 26300.9974, Debug build, serial run on an idle machine)
Environment: NVIDIA GeForce RTX 3070 Ti (
10de:2482), driver 32.0.16.2101; fxc 10.0.26100.9457; dxc 1.9.2602.17; D3D12 debug layer enabled. 0 capability skips (77).Observed
Every
v_frexp_mant_f32,v_frexp_exp_i32_f32,v_cvt_flr_i32_f32andv_cvt_rpi_i32_f32pixel matches, and so dov_ldexp_f32pixels 0 to 3. Then:Pixel 4 takes
(+inf, 3),(-inf, -3),(NaN 0x7fc00000, 7)and(3.0, 2)as(value, exponent)(LDEXP_INPUTS[16:20]). Lanes 0, 1 and 3 match. Lane 2, the NaN lane, reads7fffffff. The reference (ref_ldexp) returns the input word unchanged for a NaN.FXC and DXC read the same words. I ran the draw check again without the
fxcargument (the ctest command line minus its last argument):DXC stops at the same place with the same actual words:
7fffffffis also a NaN, with a different payload than7fc00000. So the NaN class is kept and the word is not.Lowering involved (
op_v_ldexp_f32,tools/startup/gfx2hlsl.py): the NaN is multiplied by threeexp2factors:where
a,bandcsplit the clamped exponent in three parts. I did not read the compiled shader, so I do not know which operation produces7fffffff.Limits
startup_gfx2hlsl_frexp_cvt_warp,fxcanddxc). This result is for this adapter only. I did not measure AMD on this head; the earlier hardware run in this thread was on7f436813.v_ldexp_f32pixel (20 inputs, 5 pixels), andv_ldexp_f32is the last op inOPS, so the stop skipped no pixel.debug_errors=0 debug_warnings=0in every run.I do not propose a fix here.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T10:53:57Z.
Thanks @Makto94, the analysis was exact.
Head
5e3ca3e3applies Option A for the CPU checktests/startup_gfx2hlsl_frexp_cvt_check.py. The check now keeps the original NaN word next to the decoded value. The expected and actual sides no longer go through a float32-to-double round trip, so the signaling NaN words (0x7f800001,0xff800001) are compared as the original bit patterns. This no longer depends on the Python build.Verified on Windows Server 2025 (D3D12 WARP) at
5e3ca3e3:ctest --preset dev -R 'frexp_cvt' --parallel 2 --no-tests=error --output-on-failuregave 4/4 passed (startup_gfx2hlsl_frexp_cvt,_controls,_warp,_hardware).ctest --preset release -R 'frexp_cvt' --parallel 2 --no-tests=error --output-on-failuregave 4/4 passed.This reply covers only your first report (the CPU check). Your RTX 3070 Ti report on
v_ldexp_f32(NaN lane reading7fffffff) is a separate item. I did not reproduce it on this WARP node, so it is not claimed as fixed here.AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by Makto94 on 2026-11-25T10:55:52Z.
Re-tested the new head
5e3ca3e3against my two earlier reports at3bf27cbb(CPU check, hardwarev_ldexp_f32). The new commit makes the CPU check keep each value's source word (F32) and makes thev_ldexp_f32lowering return a NaN source word unchanged.CPU:
python -B tests/startup_gfx2hlsl_frexp_cvt_check.pyprints "gfx2hlsl frexp/cvt/ldexp check passed" with exit 0 on Python 3.11.17, 3.12.0, 3.12.10 and 3.14.8 (Windows x64). 3.12.10 is the version in the Windows CI job, so my earlier prediction for the main push job no longer applies to this head.WARP and controls (
startup_gfx2hlsl_frexp_cvt,_controls,_warp):Hardware:
.\tools\dev.ps1; ctest --preset dev --no-tests=error -j1 -R '^startup_gfx2hlsl_frexp_cvt_hardware$' -Vpasses. The case that read7fffffffbefore no longer reproduces here:All 148
debug_errors=lines readdebug_errors=0 debug_warnings=0, and there were 0 capability skips (77). Environment: NVIDIA GeForce RTX 3070 Ti (10de:2482), driver 32.0.16.2101, Windows 11 build 26300.9974, Debug build (binaries built at3bf27cbb;5e3ca3e3changes two Python files only), fxc 10.0.26100.9457, dxc 1.9.2602.17, D3D12 debug layer enabled; serial run on an idle machine. I have not measured AMD or Intel on this head.Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T11:00:29Z.
Correction to my earlier comment: head
5e3ca3e3also includes the fix for your RTX 3070 Ti report.op_v_ldexp_f32intools/startup/gfx2hlsl.pynow returns a NaN source word unchanged instead of multiplying it by theexp2factors (the7fffffffreadback).I could not reproduce the hardware result here (WARP only), so please re-run
startup_gfx2hlsl_frexp_cvt_hardwareon your RTX 3070 Ti at5e3ca3e3. The Linuxtests/startup_gfx2hlsl_*_check.pychecks pass on that head.AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by Makto94 on 2026-11-25T11:24:23Z.
RTX 3070 Ti run on head
48073779. Your 11:00Z request named5e3ca3e3; that run was already posted at 10:55Z: https://github.com/R0Y00/Xbox2Windows/pull/2079#issuecomment-7160362970Hardware:
.\tools\dev.ps1; ctest --preset dev --no-tests=error -j1 -R '^startup_gfx2hlsl_frexp_cvt_hardware$' -Vpasses:No
debug_errors=line is non-zero, and there were 0 capability skips (77). CPU, control and WARP tests (startup_gfx2hlsl_frexp_cvt,_controls,_warp):100% tests passed, 0 tests failed out of 3.Environment: NVIDIA GeForce RTX 3070 Ti (
10de:2482), driver 32.0.16.2101, Windows 11 build 26300.9974, Debug build (binaries built at48073779), fxc 10.0.26100.9457, dxc 1.9.2602.17, D3D12 debug layer enabled; the hardware run was serial on an idle machine.Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T11:54:47Z.
Thank you @Makto94 for the RTX 3070 Ti run at
48073779: hardware passed with 0 non-zerodebug_errors, CPU/controls/WARP 3/3. Recorded as extra evidence for this PR.AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by thepatrickworld on 2026-11-25T13:58:10Z.
Head
48073779, backendhardware, both compilers, on the AMD adapter (adapter=AMD Radeon RX 9070 XT vendor=1002 device=7550).Five operations —
v_frexp_mant_f32,v_frexp_exp_i32_f32,v_cvt_flr_i32_f32,v_cvt_rpi_i32_f32andv_ldexp_f32— give 37 readback lines and 5 mutation runs per compiler; four of the five print 8 readbacks each,v_ldexp_f32prints 5. Every comparison held (exit 0 under both compilers), and every mutation line reports pixels reading other words: 8, 8, 5, 3 and 5, the smallest beingv_cvt_rpi_i32_f32.That line is the interesting one for
v_ldexp_f32:+inf,-infand a NaN are in the reference words and come out unchanged under both compilers, alongside a finite input that moves.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T14:05:02Z.
Thank you @thepatrickworld for the AMD Radeon RX 9070 XT run (
1002:7550).You ran head
48073779, and that is the current head. Both fxc and dxc passedstartup_gfx2hlsl_frexp_cvt_hardware: every comparison held and every mutation run read other words (8, 8, 5, 3, 5). Thev_ldexp_f32readback7f800000,ff800000,7fc00000,41400000matches the CPU reference, so+inf,-infand NaN pass through unchanged on AMD too.This is a PASS with no code change. With the earlier RTX 3070 Ti run at the same head, the hardware evidence now covers NVIDIA and AMD. No commit is pending.
AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T16:00:46Z.
Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit
5ea89c2af1598e96ea0a128f40303a42458816e4:--preset dev):cmake --build --preset dev --target api_trace_check archive_all_lifted archive_codec archive_codec_gpu archive_codec_lifted archive_directory_gpu archive_directory_lifted archive_reader_lifted archive ...(cut, ~1055 names in total)):573.22s(configure1.71s)ctest --preset dev -R '^(startup_gfx2hlsl_.*|pixel_aot_.*_warp|compute_store_aot_.*_warp|form_coverage)$' --parallel 2 --no-tests=error --output-on-failure): 298/298 passed (430.01s:startup_gfx2hlsl_f32_sdwa_hardware19.64s,compute_store_aot_descriptor_load_format_warp36.21s,startup_gfx2hlsl_f32_sdwa_warp23.46s,form_coverage15.04s,startup_gfx2hlsl_f32_nan_hardware12.93s,pixel_aot_compare_warp13.83s,startup_gfx2hlsl_f32_nan_warp22.53s,pixel_aot_bits_warp16.03s,pixel_aot_cmpx_regions_warp8.16s,pixel_aot_comparisons_warp9.66s,pixel_aot_blend_scalar_warp9.82s,startup_gfx2hlsl_cvt_alu_hardware5.99s,pixel_aot_buffer_color_warp13.24s,pixel_aot_cvt_f64_f32_warp18.56s,startup_gfx2hlsl_bit_alu_hardware6.84s,pixel_aot_three_way_warp13.91s,pixel_aot_cvt_int_f64_warp15.56s,pixel_aot_e64_warp6.99s,startup_gfx2hlsl_frexp_cvt_warp12.97s,startup_gfx2hlsl_frexp_cvt_hardware13.09s,compute_store_aot_heap_view_load_warp19.27s,pixel_aot_predicate_rounding_warp18.76s,compute_store_aot_guard_read_warp8.56s,compute_store_aot_lds_private_warp5.91s,compute_store_aot_lds_qword_warp8.07s,pixel_aot_core_vector_warp8.00s,startup_gfx2hlsl_bit_alu_warp7.52s,compute_store_aot_lds_arithmetic_warp10.11s,pixel_aot_gather_warp10.06s,startup_gfx2hlsl_f32_lg_warp16.90s,startup_gfx2hlsl_cvt_alu_warp20.54s,pixel_aot_f16_arith_warp22.44s,compute_store_aot_mimg_packed_warp7.83s,startup_gfx2hlsl_f32_lg_hardware4.75s,compute_store_aot_mimg_load_warp4.98s,compute_store_aot_mimg_mip_warp5.01s,pixel_aot_cmpx_e64_warp6.47s,pixel_aot_cvt_flr_rpi_warp7.06s,pixel_aot_compare_gather_warp4.11s,compute_store_aot_mubuf_store_format_warp2.54s,compute_store_aot_lds_f32_warp4.62s,pixel_aot_u32_from_f32_warp1.43s,pixel_aot_sample_lod_warp1.77s,startup_gfx2hlsl_shift64_hardware3.30s,compute_store_aot_lds_packed_warp3.12s,pixel_aot_exec_regions_warp6.49s,startup_gfx2hlsl_f32_nan7.01s,startup_gfx2hlsl_mad_dispatch_hardware1.70s,pixel_aot_cmp_f64_warp5.02s,compute_store_aot_mimg_resinfo_warp2.45s,compute_store_aot_mubuf_counter_warp1.44s,pixel_aot_cvt_f64_int_warp3.65s,pixel_aot_cmp64_warp3.55s,startup_gfx2hlsl_shift64_warp3.54s,pixel_aot_compare_sample_warp3.41s,pixel_aot_f16_round_warp4.95s,compute_store_aot_lds_replacement_warp3.47s,compute_store_aot_lds_strided_warp1.98s,compute_store_aot_heap_view_store_warp8.92s,compute_store_aot_alu_mad_i24_warp1.58s,compute_store_aot_mubuf_reduction_warp3.07s,compute_store_aot_mimg_store_packed_warp2.96s,compute_store_aot_mimg_store_warp2.89s,compute_store_aot_alu_xor3_warp2.05s,compute_store_aot_mtbuf_store_warp2.97s,compute_store_aot_mtbuf_load_warp3.14s,pixel_aot_sample_coarse_gradient_warp3.19s,pixel_aot_f16_fmac_ldexp_warp4.24s,compute_store_aot_lane_mask_warp2.34s,startup_gfx2hlsl_s_lshl_add5.25s,compute_store_aot_mimg_atomic_counter_warp2.65s,compute_store_aot_f32_warp2.35s,compute_store_aot_mubuf_store_subword_warp2.09s,compute_store_aot_salu_absdiff_warp1.16s,compute_store_aot_scratch_base_warp1.55s,startup_gfx2hlsl_cmp_class_f165.18s,compute_store_aot_mubuf_reduction_x2_warp2.84s,compute_store_aot_mimg_atomic_float_warp2.15s,startup_gfx2hlsl_vopc_sdwa5.96s,compute_store_aot_mubuf_exchange_warp1.44s,compute_store_aot_mubuf_d16_warp2.20s,compute_store_aot_gfx1013_image_atomics_warp1.75s,compute_store_aot_mubuf_load_format_d16_warp1.62s,pixel_aot_shift64_warp4.20s,startup_gfx2hlsl_sdwa_cvt_hardware1.75s,compute_store_aot_gfx1013_image_store_d16_warp0.84s,compute_store_aot_mubuf_counter-x2_warp1.35s,startup_gfx2hlsl_sop2_complement4.61s,startup_gfx2hlsl_cmp_class5.09s,compute_store_aot_alu_med3_warp1.29s,compute_store_aot_writelane_warp1.38s,compute_store_aot_vadd_nc_i32_warp1.35s,compute_store_aot_alu_bcnt_warp1.71s,compute_store_aot_lds_wide_replacement_warp1.95s,compute_store_aot_alu_minmax3_warp1.61s,compute_store_aot_alu_cvt_pk_u8_warp1.58s,pixel_aot_dmask_warp1.40s,compute_store_aot_ds_route_warp1.25s,pixel_aot_sample_gradient_warp2.31s,startup_gfx2hlsl_dpp_pair_hardware1.74s,compute_store_aot_ff1_scalar_warp1.36s,startup_gfx2hlsl_scalar_m0_hardware1.04s,pixel_aot_sample_offset_warp1.82s,compute_store_aot_mubuf_format_warp1.62s,pixel_aot_rndne_warp1.36s,compute_store_aot_mubuf_store_format_xyz_warp1.14s,compute_store_aot_mubuf_vector_warp1.59s,compute_store_aot_mimg_atomic_minmax_warp1.78s,compute_store_aot_gfx1013_image_store_warp0.89s,compute_store_aot_add_co_warp1.22s,startup_gfx2hlsl_mad_preserve_hardware0.95s,pixel_aot_dpp_f16_warp4.05s,pixel_aot_dpp_extra_warp3.16s,startup_gfx2hlsl_mad_dispatch_warp1.43s,compute_store_aot_ff1_exec_warp1.17s,compute_store_aot_bcnt_exec_warp1.16s,pixel_aot_attribute_warp0.80s,compute_store_aot_mubuf_subword_warp1.67s,compute_store_aot_dpp_warp0.97s,compute_store_aot_mubuf_exchange-x2_warp1.25s,pixel_aot_get_lod_warp1.54s,compute_store_aot_readlane_warp1.13s,compute_store_aot_mimg_atomic_integer_warp1.61s,compute_store_aot_descriptor_store_format_warp1.78s,compute_store_aot_mimg_atomic_exchange_warp1.22s,compute_store_aot_mbcnt_warp1.43s,compute_store_aot_mubuf_csub_warp1.15s,startup_gfx2hlsl_dpp_quad_swap_hardware1.74s,compute_store_aot_bfe_warp1.32s,compute_store_aot_cvt_u32_f32_warp1.35s,compute_store_aot_mimg_msaa_warp1.06s,compute_store_aot_desc_numeric_warp1.17s,compute_store_aot_salu_i32_warp1.40s,compute_store_aot_mac_f32_warp1.30s,startup_gfx2hlsl_vopc_sdwa_warp1.19s,pixel_aot_int16_ternary_warp2.94s,startup_gfx2hlsl_dpp_pair_warp1.72s,compute_store_aot_dot_u_warp1.26s,startup_gfx2hlsl_vopc_sdwa_hardware1.15s,compute_store_aot_alu_lane_gaps_warp1.59s,startup_gfx2hlsl_scalar_m0_warp1.09s,startup_gfx2hlsl_sgpr_spill_hardware0.85s,compute_store_aot_sub_co_warp1.33s,startup_gfx2hlsl_dpp_quad_swap_warp1.80s,startup_gfx2hlsl_sdwa_cvt_warp1.74s,pixel_aot_f16_cvt_int16_warp2.57s,pixel_aot_region_body_warp2.32s,pixel_aot_scc_skip_warp2.00s,compute_store_aot_vcmp_select_warp2.37s,pixel_aot_cvt_f32_f64_warp2.08s,startup_gfx2hlsl_watch2.50s,pixel_aot_cvt_float_int_e64_warp2.21s,pixel_aot_dpp_cvt_warp2.54s,startup_gfx2hlsl_cvt_pk_u8_hardware0.69s,pixel_aot_s_call_warp1.42s,pixel_aot_region_scalar_load_warp1.78s,startup_gfx2hlsl_f32_sdwa2.45s,startup_gfx2hlsl_compute_hardware1.33s,pixel_aot_int16_vop3_warp1.94s,pixel_aot_div_fmas_warp1.67s,pixel_aot_pk_fmac_warp2.17s,pixel_aot_f16_to_int16_warp2.06s,pixel_aot_plain_movrel_warp1.98s,pixel_aot_bitset64_warp2.09s,pixel_aot_plain_bitscan_warp1.86s,startup_gfx2hlsl_dpp_quad_broadcast_hardware0.93s,startup_gfx2hlsl_interp_f16_hardware0.80s,pixel_aot_vop3_ternary_int_warp1.92s,pixel_aot_align_warp1.86s,pixel_aot_flat_scratch_warp1.67s,pixel_aot_bfm_warp1.27s,pixel_aot_first_bit_warp1.63s,pixel_aot_e64_integer_warp1.33s,startup_gfx2hlsl_mad_preserve_warp0.92s,pixel_aot_mad64_warp1.51s,pixel_aot_dpp_movrel_warp1.52s,startup_gfx2hlsl_compute_warp1.33s,startup_gfx2hlsl_dpp_quad_broadcast_warp0.82s,pixel_aot_sdwa_integer_warp1.53s,pixel_aot_sdwa_movrel_warp1.48s,pixel_aot_sdwa_unary_warp1.38s,pixel_aot_swap_warp1.41s,pixel_aot_carry_in_warp1.44s,pixel_aot_uncompressed_export_warp1.41s,pixel_aot_smovrel_warp1.40s,pixel_aot_uncompressed_integer_export_warp1.33s,pixel_aot_swaprel_warp1.32s,pixel_aot_region_waits_warp1.49s,pixel_aot_brev_warp1.39s,pixel_aot_integer_nc_warp1.31s,pixel_aot_mac_legacy_warp1.59s,pixel_aot_region_scalar_alu_warp1.49s,startup_gfx2hlsl_cmp16_warp1.77s,pixel_aot_sad_warp1.49s,pixel_aot_e64_spellings_warp1.41s,pixel_aot_carry_out_warp1.31s,compute_store_aot_gfx1013_gather4_l_warp1.57s,pixel_aot_sdwa_cmp_warp1.46s,pixel_aot_frexp_exp_warp1.25s,startup_gfx2hlsl_f32_lg1.31s,pixel_aot_pack_int16_warp1.14s,pixel_aot_e64_approx_warp1.13s,pixel_aot_ds_swizzle_warp1.16s,pixel_aot_title_loads_warp1.32s,startup_gfx2hlsl_cvt_pk_u8_warp0.68s,pixel_aot_compressed_export_warp1.20s,pixel_aot_pack_b32_warp1.13s,pixel_aot_sopk_hwreg_warp1.05s,pixel_aot_smem_pointers_warp1.21s,startup_gfx2hlsl_interp_f16_warp0.78s,startup_gfx2hlsl_compute_b-offset_hardware0.24s,startup_gfx2hlsl_capture0.99s,startup_gfx2hlsl_compute_dropped-store_hardware0.25s,startup_gfx2hlsl_compute_c-unpredicated_hardware0.28s,startup_gfx2hlsl_compute_swapped-axes_hardware0.26s,pixel_aot_vop1_nops_warp1.06s,startup_gfx2hlsl_sgpr_spill_warp0.85s,startup_gfx2hlsl_compute_dropped-store_warp0.26s,pixel_aot_sopp_round_mode_warp1.09s,startup_gfx2hlsl_compute_c-unpredicated_warp0.26s,startup_gfx2hlsl_compute_swapped-axes_warp0.24s,startup_gfx2hlsl_compute_b-offset_warp0.26s,pixel_aot_attribute_sampled_warp0.66s,startup_gfx2hlsl_compute_mbcnt_warp0.64s,startup_gfx2hlsl_compute_controls0.46s,startup_gfx2hlsl_root0.73s,startup_gfx2hlsl_sopk_accum0.89s,compute_store_aot_gfx1013_image_uav_load_warp0.77s,startup_gfx2hlsl_sdwa0.17s,startup_gfx2hlsl_bit_alu_controls0.72s,startup_gfx2hlsl_frexp_cvt0.62s,startup_gfx2hlsl_sample_c_lz_mip0.17s,startup_gfx2hlsl_join_symbols_warp0.35s,startup_gfx2hlsl_refusals0.49s,startup_gfx2hlsl_compute_f-peer_warp0.25s,startup_gfx2hlsl_scalar_m0_controls0.11s,startup_gfx2hlsl_compute_f-broadcast_warp0.27s,startup_gfx2hlsl_swap0.27s,startup_gfx2hlsl_sdwa_cvt0.29s,startup_gfx2hlsl_mad_controls0.13s,startup_gfx2hlsl_join_symbols_controls0.21s,startup_gfx2hlsl_operand_count0.19s,startup_gfx2hlsl_interp_f16_controls0.20s,startup_gfx2hlsl_dpp_quad_swap_controls0.13s,startup_gfx2hlsl_sopk_signext0.15s,startup_gfx2hlsl_dpp_pair0.14s,startup_gfx2hlsl_dpp_quad_broadcast0.14s,startup_gfx2hlsl_export_mask0.14s,startup_gfx2hlsl_cvt_alu_controls0.16s,startup_gfx2hlsl_add_sub_co_controls0.14s,startup_gfx2hlsl_compute_g-overlap_warp0.27s,startup_gfx2hlsl_compute_h-inner-unpredicated_warp0.27s,startup_gfx2hlsl_compute_j-scalar-dropped_warp0.28s,startup_gfx2hlsl_compute_g-swapped-offsets_warp0.28s,startup_gfx2hlsl_sgpr_spill_controls0.11s,startup_gfx2hlsl_shift64_controls0.14s,startup_gfx2hlsl_s_sext_cmov0.10s,startup_gfx2hlsl_frexp_cvt_controls0.12s,startup_gfx2hlsl_export_mask_drop_control0.12s,startup_gfx2hlsl_compute_k-block-entered_warp0.24s,startup_gfx2hlsl_scalar_shift64_bfe_controls0.19s,startup_gfx2hlsl_cvt_pk_u8_controls0.11s,startup_gfx2hlsl_int_med3_controls0.12s,startup_gfx2hlsl_cmp16_controls0.25s,startup_gfx2hlsl_readfirstlane_uniform0.12s,startup_gfx2hlsl_s_bitcmp0.11s,startup_gfx2hlsl_cselect_mask_controls0.11s,startup_gfx2hlsl_readfirstlane_recompute0.11s,startup_gfx2hlsl_handler_arity0.11s,startup_gfx2hlsl_smem_offset0.10s,startup_gfx2hlsl_b64_shift0.10s,startup_gfx2hlsl_op_refusals0.09s,startup_gfx2hlsl_mask_overwrite_controls0.11s,startup_gfx2hlsl_neg_operand0.10s,startup_gfx2hlsl_tbuffer_16f0.10s,startup_gfx2hlsl_cndmask_neg0.10s,startup_gfx2hlsl_calculated_target0.11s,startup_gfx2hlsl_join_symbols_folded_warp0.20s,startup_gfx2hlsl_vcvt_omod0.10s,startup_gfx2hlsl_opsel0.10s,startup_gfx2hlsl_loop_constants0.11s,startup_gfx2hlsl_saveexec_same_reg_controls0.11s,startup_gfx2hlsl_scalar_brev_fold0.12s,startup_gfx2hlsl_image_get_lod_controls0.11s,startup_gfx2hlsl_compare_dst_controls0.10s,startup_gfx2hlsl_image_arity0.09s,startup_gfx2hlsl_draw_skip0.47s,startup_gfx2hlsl_compute_mbcnt_hardware0.69s,startup_gfx2hlsl_compute_f-peer_hardware0.29s,startup_gfx2hlsl_compute_f-broadcast_hardware0.27s,startup_gfx2hlsl_cmp16_hardware1.83s,startup_gfx2hlsl_compute_g-swapped-offsets_hardware0.26s,startup_gfx2hlsl_compute_g-overlap_hardware0.23s,startup_gfx2hlsl_compute_j-scalar-dropped_hardware0.23s,startup_gfx2hlsl_compute_h-inner-unpredicated_hardware0.24s,startup_gfx2hlsl_compute_k-block-entered_hardware0.24s,startup_gfx2hlsl_join_symbols_folded_hardware0.20s,startup_gfx2hlsl_join_symbols_hardware0.34s)/O2(--preset release):cmake --build --preset release --target api_trace_check archive_all_lifted archive_codec archive_codec_gpu archive_codec_lifted archive_directory_gpu archive_directory_lifted archive_reader_lifted arc ...(cut, ~1055 names in total)):394.41s(configure2.20s)ctest --preset release -R '^(startup_gfx2hlsl_.*|pixel_aot_.*_warp|compute_store_aot_.*_warp|form_coverage)$' --parallel 2 --no-tests=error --output-on-failure): 298/298 passed (295.03s:startup_gfx2hlsl_f32_sdwa_hardware14.56s,compute_store_aot_descriptor_load_format_warp20.20s,startup_gfx2hlsl_f32_nan_hardware12.96s,form_coverage11.43s,startup_gfx2hlsl_f32_sdwa_warp13.15s,startup_gfx2hlsl_f32_nan_warp9.45s,pixel_aot_cmpx_e64_warp4.11s,startup_gfx2hlsl_cvt_alu_hardware4.17s,pixel_aot_compare_warp16.74s,pixel_aot_three_way_warp11.29s,startup_gfx2hlsl_bit_alu_hardware5.82s,startup_gfx2hlsl_f32_lg_hardware3.37s,startup_gfx2hlsl_frexp_cvt_warp9.09s,pixel_aot_core_vector_warp13.15s,pixel_aot_buffer_color_warp11.00s,pixel_aot_bits_warp22.29s,startup_gfx2hlsl_mad_dispatch_hardware1.21s,pixel_aot_cmpx_regions_warp5.39s,startup_gfx2hlsl_sdwa_cvt_hardware1.44s,startup_gfx2hlsl_frexp_cvt_hardware9.25s,pixel_aot_blend_scalar_warp6.57s,startup_gfx2hlsl_shift64_hardware2.50s,pixel_aot_cvt_f64_f32_warp5.73s,pixel_aot_sample_lod_warp1.26s,startup_gfx2hlsl_f32_lg_warp3.27s,compute_store_aot_guard_read_warp5.23s,compute_store_aot_lds_arithmetic_warp4.54s,pixel_aot_comparisons_warp6.27s,startup_gfx2hlsl_bit_alu_warp4.67s,pixel_aot_region_body_warp1.90s,pixel_aot_compare_gather_warp2.66s,compute_store_aot_lds_qword_warp4.91s,pixel_aot_exec_regions_warp4.46s,startup_gfx2hlsl_mad_preserve_hardware0.75s,compute_store_aot_mimg_mip_warp3.61s,compute_store_aot_mimg_load_warp3.61s,pixel_aot_region_waits_warp1.09s,startup_gfx2hlsl_cvt_alu_warp4.17s,startup_gfx2hlsl_sdwa_cvt_warp1.41s,compute_store_aot_lds_f32_warp3.17s,compute_store_aot_lds_private_warp3.66s,compute_store_aot_heap_view_load_warp5.32s,pixel_aot_predicate_rounding_warp4.19s,pixel_aot_dpp_extra_warp2.55s,compute_store_aot_alu_cvt_pk_u8_warp1.30s,compute_store_aot_lds_packed_warp2.25s,startup_gfx2hlsl_sop2_complement3.81s,startup_gfx2hlsl_shift64_warp2.43s,pixel_aot_dpp_cvt_warp2.00s,compute_store_aot_mubuf_reduction_warp2.03s,compute_store_aot_mubuf_d16_warp1.74s,compute_store_aot_mimg_packed_warp2.98s,compute_store_aot_lds_replacement_warp2.26s,startup_gfx2hlsl_f32_nan4.53s,pixel_aot_f16_arith_warp4.75s,startup_gfx2hlsl_cmp_class3.95s,startup_gfx2hlsl_vopc_sdwa3.96s,pixel_aot_sample_coarse_gradient_warp1.92s,compute_store_aot_mtbuf_store_warp2.01s,pixel_aot_e64_warp4.67s,compute_store_aot_alu_mad_i24_warp1.05s,pixel_aot_f16_round_warp3.35s,startup_gfx2hlsl_cmp_class_f163.65s,compute_store_aot_lane_mask_warp1.61s,pixel_aot_cvt_flr_rpi_warp4.44s,compute_store_aot_mubuf_subword_warp1.45s,pixel_aot_compare_sample_warp2.31s,compute_store_aot_mimg_atomic_integer_warp1.34s,compute_store_aot_mubuf_store_subword_warp1.51s,compute_store_aot_mubuf_store_format_warp1.69s,compute_store_aot_mubuf_reduction_x2_warp1.99s,startup_gfx2hlsl_dpp_pair_hardware1.41s,compute_store_aot_mimg_store_packed_warp1.98s,pixel_aot_sample_gradient_warp1.89s,pixel_aot_cvt_int_f64_warp3.78s,compute_store_aot_mtbuf_load_warp1.96s,compute_store_aot_mimg_store_warp1.92s,pixel_aot_gather_warp2.82s,compute_store_aot_scratch_base_warp1.18s,compute_store_aot_mimg_atomic_counter_warp1.69s,compute_store_aot_mubuf_exchange-x2_warp1.14s,compute_store_aot_mimg_atomic_float_warp1.54s,compute_store_aot_mimg_resinfo_warp1.69s,compute_store_aot_heap_view_store_warp6.28s,startup_gfx2hlsl_scalar_m0_hardware0.88s,startup_gfx2hlsl_s_lshl_add3.18s,compute_store_aot_mbcnt_warp1.14s,compute_store_aot_alu_minmax3_warp1.28s,compute_store_aot_alu_bcnt_warp1.38s,compute_store_aot_desc_numeric_warp0.94s,compute_store_aot_f32_warp1.57s,compute_store_aot_lds_wide_replacement_warp1.54s,pixel_aot_cmp_f64_warp3.25s,compute_store_aot_cvt_u32_f32_warp1.11s,compute_store_aot_gfx1013_image_store_warp0.69s,compute_store_aot_alu_xor3_warp1.35s,compute_store_aot_mubuf_load_format_d16_warp1.32s,compute_store_aot_mubuf_format_warp1.31s,compute_store_aot_mimg_msaa_warp0.86s,compute_store_aot_salu_absdiff_warp0.94s,pixel_aot_sample_offset_warp1.48s,compute_store_aot_lds_strided_warp1.30s,compute_store_aot_mimg_atomic_minmax_warp1.30s,compute_store_aot_mubuf_exchange_warp1.07s,compute_store_aot_alu_med3_warp1.05s,pixel_aot_attribute_warp0.67s,pixel_aot_get_lod_warp1.26s,compute_store_aot_descriptor_store_format_warp1.45s,compute_store_aot_add_co_warp1.04s,compute_store_aot_gfx1013_image_store_d16_warp0.68s,compute_store_aot_bfe_warp1.03s,compute_store_aot_vadd_nc_i32_warp1.06s,compute_store_aot_gfx1013_image_atomics_warp1.41s,compute_store_aot_ff1_scalar_warp1.06s,startup_gfx2hlsl_mad_dispatch_warp1.17s,startup_gfx2hlsl_dpp_quad_swap_hardware1.47s,pixel_aot_dmask_warp1.10s,pixel_aot_dpp_f16_warp3.30s,compute_store_aot_mubuf_vector_warp1.19s,pixel_aot_u32_from_f32_warp0.89s,compute_store_aot_readlane_warp0.94s,compute_store_aot_mubuf_counter_warp1.01s,compute_store_aot_ds_route_warp0.99s,startup_gfx2hlsl_interp_f16_hardware0.64s,compute_store_aot_writelane_warp1.07s,compute_store_aot_mimg_atomic_exchange_warp0.97s,compute_store_aot_dpp_warp0.86s,compute_store_aot_sub_co_warp1.03s,compute_store_aot_mubuf_store_format_xyz_warp0.88s,compute_store_aot_bcnt_exec_warp0.98s,compute_store_aot_mubuf_counter-x2_warp1.04s,compute_store_aot_mubuf_csub_warp0.96s,compute_store_aot_ff1_exec_warp0.96s,compute_store_aot_salu_i32_warp1.14s,pixel_aot_shift64_warp2.92s,compute_store_aot_alu_lane_gaps_warp1.25s,pixel_aot_f16_fmac_ldexp_warp2.82s,startup_gfx2hlsl_dpp_quad_swap_warp1.43s,pixel_aot_uncompressed_integer_export_warp1.13s,startup_gfx2hlsl_dpp_pair_warp1.41s,pixel_aot_cmp64_warp2.32s,pixel_aot_cvt_f64_int_warp2.37s,pixel_aot_compressed_export_warp0.97s,startup_gfx2hlsl_vopc_sdwa_hardware0.93s,pixel_aot_dpp_movrel_warp1.26s,pixel_aot_vop3_ternary_int_warp1.43s,pixel_aot_plain_movrel_warp1.54s,pixel_aot_f16_cvt_int16_warp2.05s,pixel_aot_int16_ternary_warp2.18s,startup_gfx2hlsl_f32_sdwa1.91s,compute_store_aot_mac_f32_warp1.03s,startup_gfx2hlsl_scalar_m0_warp0.84s,compute_store_aot_dot_u_warp1.01s,pixel_aot_rndne_warp1.07s,pixel_aot_cvt_float_int_e64_warp1.73s,pixel_aot_pk_fmac_warp1.67s,pixel_aot_swaprel_warp1.04s,pixel_aot_scc_skip_warp1.59s,startup_gfx2hlsl_watch2.33s,pixel_aot_cvt_f32_f64_warp1.52s,pixel_aot_region_scalar_load_warp1.40s,compute_store_aot_vcmp_select_warp1.96s,pixel_aot_uncompressed_export_warp1.13s,pixel_aot_sdwa_integer_warp1.18s,startup_gfx2hlsl_mad_preserve_warp0.74s,pixel_aot_ds_swizzle_warp0.92s,pixel_aot_int16_vop3_warp1.49s,startup_gfx2hlsl_vopc_sdwa_warp0.96s,startup_gfx2hlsl_compute_hardware1.11s,pixel_aot_f16_to_int16_warp1.61s,pixel_aot_bitset64_warp1.56s,startup_gfx2hlsl_dpp_quad_broadcast_hardware0.68s,pixel_aot_div_fmas_warp1.33s,pixel_aot_region_scalar_alu_warp1.09s,pixel_aot_sad_warp1.14s,startup_gfx2hlsl_compute_warp1.10s,pixel_aot_carry_in_warp1.16s,startup_gfx2hlsl_cvt_pk_u8_hardware0.58s,pixel_aot_brev_warp1.16s,pixel_aot_mad64_warp1.23s,pixel_aot_align_warp1.41s,pixel_aot_flat_scratch_warp1.32s,pixel_aot_frexp_exp_warp1.07s,pixel_aot_plain_bitscan_warp1.34s,pixel_aot_first_bit_warp1.31s,pixel_aot_swap_warp1.10s,startup_gfx2hlsl_f32_lg1.11s,pixel_aot_sdwa_unary_warp1.10s,pixel_aot_smovrel_warp1.14s,startup_gfx2hlsl_dpp_quad_broadcast_warp0.71s,pixel_aot_sdwa_movrel_warp1.23s,pixel_aot_mac_legacy_warp1.23s,pixel_aot_sdwa_cmp_warp1.15s,pixel_aot_e64_spellings_warp1.25s,pixel_aot_s_call_warp1.22s,pixel_aot_e64_integer_warp1.23s,startup_gfx2hlsl_cmp16_warp1.84s,pixel_aot_carry_out_warp1.30s,pixel_aot_smem_pointers_warp1.05s,pixel_aot_title_loads_warp1.13s,compute_store_aot_gfx1013_gather4_l_warp1.31s,startup_gfx2hlsl_compute_dropped-store_hardware0.25s,pixel_aot_bfm_warp1.09s,startup_gfx2hlsl_capture0.93s,pixel_aot_pack_b32_warp1.17s,startup_gfx2hlsl_compute_swapped-axes_hardware0.24s,pixel_aot_integer_nc_warp1.16s,startup_gfx2hlsl_cvt_pk_u8_warp0.65s,pixel_aot_e64_approx_warp1.05s,startup_gfx2hlsl_compute_b-offset_hardware0.25s,pixel_aot_pack_int16_warp1.11s,pixel_aot_vop1_nops_warp1.02s,startup_gfx2hlsl_compute_c-unpredicated_hardware0.25s,pixel_aot_sopp_round_mode_warp1.01s,pixel_aot_sopk_hwreg_warp1.02s,startup_gfx2hlsl_interp_f16_warp0.76s,startup_gfx2hlsl_sgpr_spill_warp0.84s,startup_gfx2hlsl_root0.77s,startup_gfx2hlsl_compute_mbcnt_warp0.88s,startup_gfx2hlsl_compute_dropped-store_warp0.30s,startup_gfx2hlsl_compute_swapped-axes_warp0.28s,startup_gfx2hlsl_compute_c-unpredicated_warp1.10s,startup_gfx2hlsl_bit_alu_controls1.33s,startup_gfx2hlsl_compute_b-offset_warp1.32s,startup_gfx2hlsl_sopk_accum2.04s,startup_gfx2hlsl_compute_controls1.11s,pixel_aot_attribute_sampled_warp5.25s,startup_gfx2hlsl_frexp_cvt1.70s,compute_store_aot_gfx1013_image_uav_load_warp2.66s,startup_gfx2hlsl_sample_c_lz_mip0.40s,startup_gfx2hlsl_sdwa0.40s,startup_gfx2hlsl_sdwa_cvt0.95s,startup_gfx2hlsl_refusals1.19s,startup_gfx2hlsl_swap0.47s,startup_gfx2hlsl_join_symbols_warp0.48s,startup_gfx2hlsl_mad_controls0.17s,startup_gfx2hlsl_shift64_controls0.16s,startup_gfx2hlsl_interp_f16_controls0.27s,startup_gfx2hlsl_vcvt_omod0.12s,startup_gfx2hlsl_tbuffer_16f0.11s,startup_gfx2hlsl_cndmask_neg0.12s,startup_gfx2hlsl_operand_count0.24s,startup_gfx2hlsl_sopk_signext0.16s,startup_gfx2hlsl_compute_h-inner-unpredicated_warp0.37s,startup_gfx2hlsl_compute_f-broadcast_warp0.35s,startup_gfx2hlsl_dpp_quad_broadcast0.14s,startup_gfx2hlsl_compute_f-peer_warp0.29s,startup_gfx2hlsl_b64_shift0.11s,startup_gfx2hlsl_opsel0.11s,startup_gfx2hlsl_export_mask0.16s,startup_gfx2hlsl_compute_g-swapped-offsets_warp0.29s,startup_gfx2hlsl_frexp_cvt_controls0.16s,startup_gfx2hlsl_export_mask_drop_control0.16s,startup_gfx2hlsl_compute_j-scalar-dropped_warp0.29s,startup_gfx2hlsl_cvt_alu_controls0.17s,startup_gfx2hlsl_scalar_m0_controls0.12s,startup_gfx2hlsl_cmp16_controls0.29s,startup_gfx2hlsl_compute_g-overlap_warp0.29s,startup_gfx2hlsl_compute_k-block-entered_warp0.29s,startup_gfx2hlsl_add_sub_co_controls0.14s,startup_gfx2hlsl_dpp_quad_swap_controls0.16s,startup_gfx2hlsl_dpp_pair0.14s,startup_gfx2hlsl_readfirstlane_recompute0.14s,startup_gfx2hlsl_cvt_pk_u8_controls0.12s,startup_gfx2hlsl_join_symbols_controls0.25s,startup_gfx2hlsl_readfirstlane_uniform0.14s,startup_gfx2hlsl_s_sext_cmov0.13s,startup_gfx2hlsl_handler_arity0.12s,startup_gfx2hlsl_smem_offset0.12s,startup_gfx2hlsl_int_med3_controls0.15s,startup_gfx2hlsl_s_bitcmp0.14s,startup_gfx2hlsl_mask_overwrite_controls0.13s,startup_gfx2hlsl_cselect_mask_controls0.11s,startup_gfx2hlsl_scalar_shift64_bfe_controls0.23s,startup_gfx2hlsl_join_symbols_folded_warp0.22s,startup_gfx2hlsl_sgpr_spill_controls0.14s,startup_gfx2hlsl_op_refusals0.10s,startup_gfx2hlsl_neg_operand0.12s,startup_gfx2hlsl_calculated_target0.12s,startup_gfx2hlsl_loop_constants0.12s,startup_gfx2hlsl_saveexec_same_reg_controls0.12s,startup_gfx2hlsl_image_get_lod_controls0.12s,startup_gfx2hlsl_compare_dst_controls0.10s,startup_gfx2hlsl_scalar_brev_fold0.12s,startup_gfx2hlsl_image_arity0.10s,startup_gfx2hlsl_draw_skip0.43s,startup_gfx2hlsl_sgpr_spill_hardware0.76s,startup_gfx2hlsl_cmp16_hardware1.53s,startup_gfx2hlsl_compute_mbcnt_hardware0.57s,startup_gfx2hlsl_compute_f-peer_hardware0.24s,startup_gfx2hlsl_compute_f-broadcast_hardware0.24s,startup_gfx2hlsl_compute_g-swapped-offsets_hardware0.25s,startup_gfx2hlsl_compute_g-overlap_hardware0.24s,startup_gfx2hlsl_compute_j-scalar-dropped_hardware0.23s,startup_gfx2hlsl_compute_h-inner-unpredicated_hardware0.24s,startup_gfx2hlsl_compute_k-block-entered_hardware0.25s,startup_gfx2hlsl_join_symbols_folded_hardware0.18s,startup_gfx2hlsl_join_symbols_hardware0.32s)sccache: 379/1903 hits; wall1704.8sAI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T17:04:49Z.
Win2025 WARP receipt for head
d933b81eafter updating with main.Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit
d933b81e86618029fc3768929972ce5c8fa22557:--preset dev):cmake --build --preset dev --target d3d12_xs_device_obj d3d12_xs_shim -- -j 2):0.44s(configure0.00s)ctest --preset dev -R 'startup_gfx2hlsl_frexp_cvt' --parallel 2 --no-tests=error --output-on-failure): 4/4 passed (18.23s:startup_gfx2hlsl_frexp_cvt_warp17.07s,startup_gfx2hlsl_frexp_cvt_hardware17.09s,startup_gfx2hlsl_frexp_cvt_controls0.20s,startup_gfx2hlsl_frexp_cvt0.93s)/O2(--preset release):cmake --build --preset release --target d3d12_xs_device_obj d3d12_xs_shim -- -j 2):18.25s(configure0.00s)ctest --preset release -R 'startup_gfx2hlsl_frexp_cvt' --parallel 2 --no-tests=error --output-on-failure): 4/4 passed (11.82s:startup_gfx2hlsl_frexp_cvt_warp11.04s,startup_gfx2hlsl_frexp_cvt_hardware11.04s,startup_gfx2hlsl_frexp_cvt_controls0.14s,startup_gfx2hlsl_frexp_cvt0.57s)tests/mesh_heap_sampler_check.pyok (0.9s),tests/startup_buffer_address_check.pyok (0.8s),tests/startup_compute_request_offline_check.pyok (1.4s),tests/startup_compute_translate_check.pyok (1.4s),tests/startup_flat_param_check.pyok (0.3s),tests/startup_gfx2hlsl_add_sub_co_check.pyok (0.2s),tests/startup_gfx2hlsl_bit_alu_check.pyok (1.3s),tests/startup_gfx2hlsl_capture_check.pyok (1.6s),tests/startup_gfx2hlsl_cmp16_check.pyok (0.5s),tests/startup_gfx2hlsl_compare_dst_check.pyok (0.2s),tests/startup_gfx2hlsl_compute_check.pyok (0.6s),tests/startup_gfx2hlsl_cselect_mask_check.pyok (0.2s),tests/startup_gfx2hlsl_cvt_alu_check.pyok (0.3s),tests/startup_gfx2hlsl_f32_lg_check.pyok (2.5s),tests/startup_gfx2hlsl_f32_nan_check.pyok (9.7s),tests/startup_gfx2hlsl_handler_arity_check.pyok (0.2s),tests/startup_gfx2hlsl_image_arity_check.pyok (0.1s),tests/startup_gfx2hlsl_image_get_lod_check.pyok (0.2s),tests/startup_gfx2hlsl_int_med3_check.pyok (0.2s),tests/startup_gfx2hlsl_join_symbols_check.pyok (0.3s),tests/startup_gfx2hlsl_loop_constants_check.pyok (0.1s),tests/startup_gfx2hlsl_mask_overwrite_check.pyok (0.1s),tests/startup_gfx2hlsl_operand_count_check.pyok (0.3s),tests/startup_gfx2hlsl_readfirstlane_recompute_check.pyok (0.2s),tests/startup_gfx2hlsl_readfirstlane_uniform_check.pyok (0.2s),tests/startup_gfx2hlsl_refusals_check.pyok (0.7s),tests/startup_gfx2hlsl_root_check.pyok (0.9s),tests/startup_gfx2hlsl_saveexec_same_reg_check.pyok (0.2s),tests/startup_gfx2hlsl_scalar_brev_fold_check.pyok (0.2s),tests/startup_gfx2hlsl_scalar_m0_check.pyok (0.1s),tests/startup_gfx2hlsl_sdwa_cvt_check.pyok (0.5s),tests/startup_gfx2hlsl_sgpr_spill_check.pyok (0.2s),tests/startup_gfx2hlsl_shift64_check.pyok (0.2s),tests/startup_gfx2hlsl_smem_offset_check.pyok (0.1s),tests/startup_gfx2hlsl_sop2_complement_check.pyok (7.6s),tests/startup_gfx2hlsl_sopk_accum_check.pyok (1.5s),tests/startup_gfx2hlsl_sopk_signext_check.pyok (0.2s),tests/startup_gfx2hlsl_swap_check.pyok (0.4s),tests/startup_gfx2hlsl_vopc_sdwa_check.pyok (8.1s),tests/startup_gfx2hlsl_watch_check.pyok (2.9s),tests/startup_image_2d_array_check.pyok (1.0s),tests/startup_image_3d_check.pyok (0.7s),tests/startup_image_gather_lz_check.pyok (1.3s),tests/startup_image_load_d16_check.pyok (1.6s),tests/startup_image_sample_a16_check.pyok (0.3s),tests/startup_image_sample_b_check.pyok (0.3s),tests/startup_image_sample_c_check.pyok (0.4s),tests/startup_image_sample_l_check.pyok (0.3s),tests/startup_image_sample_lod_check.pyok (0.2s),tests/startup_inline_sampler_check.pyok (0.3s),tests/startup_run_ps1_check.pyok (15.6s),tests/startup_run_sh_check.pyFAIL (0.1s),tests/startup_sampler_heap_check.pyok (0.1s),tests/startup_smem_address_check.pyok (0.2s),tests/startup_stream_fetch_check.pyok (0.4s),tests/startup_stream_interface_check.pyok (0.4s),tests/startup_translator_check.pyok (0.7s)sccache: 0/-4 hits; wall124.4sAI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by thepatrickworld on 2026-11-25T17:46:35Z.
Full receipt on this head, on an AMD desktop adapter — the complement to the WARP run above.
Machine: Windows 11,
AMD Radeon RX 9070 XT(1002:7550), driver32.0.32029.2010, DXC andfxcfrom the 26100 SDK, commit5ea89c2a.Both presets, same filter as above (
^(startup_gfx2hlsl_.*|pixel_aot_.*_warp|compute_store_aot_.*_warp|form_coverage)$,--parallel 2 --no-tests=error):dev: 298 selected, 298 passed, 0 skipped,517.90srelease: 298 selected, 298 passed, 0 skipped,375.98sWhat that 298 is made of: 34 tests with a hardware stage, 200
_warptests (software rasterizer), and 64 translator/format tests with no GPU. Only the 34 touch an adapter, so "298 tests on AMD" would be the wrong sentence; "298 tests, 34 of them on the card" is the right one.Why the 34 ran, and were not skipped. A
ctestsummary cannot show this: CTest counts a skipped test as passed (cmCTestRunTest::EndTestResult::Passed = passed || skipped,cmCTestRunTest.cxx:385), so a machine with no GPU prints the same "100% tests passed" line. Three other checks, on the same tree:_hardwaretest in the tree with-V(488 selected: 13 skipped, 9 failed, the rest passed). Of the 34 hardware tests in this PR's filter, 31 printadapter=AMD Radeon RX 9070 XT vendor=1002 device=7550; the other three (dpp_quad_swap,sgpr_spill,scalar_m0) print no device line at all, so for those the evidence is the test result and the absence of a skip, not an adapter name.Microsoft Basic Render Driveras well, and 2 (#878,#1169) create their device only on the basic render driver.XBOX2WINDOWS_ADAPTER=aucune-carte-de-ce-nomthe test does not skip — it fails withNo D3D12 hardware adapter matches XBOX2WINDOWS_ADAPTER=.... With the correct name the same test passes and prints the adapter line.So on this machine the 34 hardware tests of the filter ran on the adapter, and the 200
_warptests ran on the software rasterizer.Out of scope, for a separate report: the sweep also reproduces the three failures already recorded in #1148 (
dxr_opacity_hardware,gpu_alias_lookup_writes_hardware,pixel_aot_comparisons_hardware), five tests that exit0xc0000409(startup_indirect_translated_indexed_hardwareplus itsupload,rectandaliasvariants, andstartup_indirect_rectlist_hardware), and one assertion failure incompute_store_aot_mac_f32_hardware. None of them are in this PR's filter.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by thepatrickworld on 2026-11-25T17:46:52Z.
One correction to the line above: the head moved while I was measuring. Everything in that receipt is for
5ea89c2a; the branch is now atd933b81e, a merge ofmain(24 commits, including #1747 and #2059). I am re-running both presets ond933b81eand will post the numbers there rather than let the two be confused.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T17:54:21Z.
@thepatrickworld thank you for the AMD run and for the clear split between the 34 adapter tests and the WARP and translator ones. That is the number we needed from real hardware.
The
5ea89c2aandd933b81eheads differ only by the merge ofmain, so your result carries over to this change. The dev and release WARP receipt ford933b81eis in the comment above. A rerun ond933b81eis welcome but not required.The PR is still waiting on the choice against #1918 (both touch
v_ldexp).AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by thepatrickworld on 2026-11-25T18:18:50Z.
Both numbers, so the two heads are not confused.
5ea89c2a, second run (same filter, same machine):298/298indev(509.71s) and298/298inrelease(378.09s), 0 skipped. That brackets the first run (517.90s/375.98s), so the result is stable between runs.d933b81e, the current head (a merge ofmain, 24 commits): the same filter now selects 302 tests — 35 with a hardware stage, 201_warp, 66 translator/format — and 302/302 pass in both presets, 0 skipped:dev522.86s,release379.35s.One limit on the new head: the adapter-level evidence I posted above (31 of the 34 hardware tests printing
adapter=AMD Radeon RX 9070 XT vendor=1002 device=7550, plus the negative control) was collected on the5ea89c2atree withctest -V. Ford933b81eI have the pass counts and the absence of skips, not a fresh per-test adapter trace — say the word and I will run the-Vsweep on it too.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T18:23:36Z.
@thepatrickworld thank you, that settles it. 302/302 in both presets on
d933b81e, with stable times against the two5ea89c2aruns, is what we needed. The-Vadapter sweep on the new head is not required: the change between the heads is only the merge ofmain, and the pass counts with zero skips cover it.The PR still waits on the choice against #1918 (both touch
v_ldexp).AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T21:33:31Z.
Closing this PR for now so we can focus on the test-speed work. The branch stays as it is, and review comments here remain valid.
We will reopen it later, bring it up to date with
main, re-run the Win2025 WARP checks at its head, and post the result here.AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-26T05:46:04Z.
Review: COMMENTED
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:
628685faccℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T05:25:41Z.
Reopened: brought up to date with current
mainby merge (no rebase, no force push). Three conflicts:CMakeLists.txtanddocs/experiments.mdkept both sides,tools/startup/gfx2hlsl.pykept both handler groups. The three earlier review threads were answered in the previous round (exactcvt_rpirounding, sign-dependent NaN saturation, startup docs); their fixes are all in this head.startup_gfx2hlsl_frexp_cvt_check.pypasses on the merged head. Win2025 WARP and the independent review are next; this stays a Draft until then.AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T05:38:48Z.
Independent review (not the author) at
628685facc84346ee2ab5c2cd97bc5e73bb6a424: no blocking finding.Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP):
--preset dev):cmake --build --preset dev --target offscreen_check, thenctest --preset dev -R '^startup_gfx2hlsl_frexp_cvt(_controls|_warp)?$' --no-tests=error --output-on-failure: 3/3 passed (startup_gfx2hlsl_frexp_cvt_controls0.19s,startup_gfx2hlsl_frexp_cvt0.54s,startup_gfx2hlsl_frexp_cvt_warp9.77s).--preset release): the same two commands: 3/3 passed (startup_gfx2hlsl_frexp_cvt_controls0.17s,startup_gfx2hlsl_frexp_cvt0.49s,startup_gfx2hlsl_frexp_cvt_warp8.16s).startup_gfx2hlsl_frexp_cvt_hardwarewas not run (WARP only).tests/startup_run_ps1_check.pyfailed once under parallel load on the first try and passed on the rerun, unrelated to this change).Linux:
tests/startup_*check.pyrun on this head and onorigin/main(merged): the only scripts whose result differs are the two new ones, and both pass.python3 -B tests/startup_gfx2hlsl_frexp_cvt_check.pywith 20000 extra random and boundary words for each of the four unary operations and 20000v_ldexp_f32pairs (denormals, infinities, NaNs, -0, k + 0.5 and its one-ulp neighbours, the +-300 clamp, 2^31 shifts), using the test's own evaluator and references: 0 mismatches.cvt_rpithreshold, frexp sign mask, NaN word, ldexp clamp, flr clamp) are each caught by the check.clamp,omod, SDWA and DPP; the float-result forms take neg, abs, clamp, mul and div, inline constants, literals and SGPR sources.v_ldexp_f32with a variable, a constant and a wave64 compare) read back on WARP equal to their CPU references.Note, not blocking: denormal inputs and results follow the flush-to-zero convention the translator already uses; the hardware denormal mode is not modelled (the PR states this).
AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by thepatrickworld on 2026-11-26T05:52:04Z.
Denormal inputs on
628685facc: the fixture's references are not uniformly flush-to-zero. Measurements only; not a code change.Environment
Windows 11 25H2, build 26200.9974.
adapter=AMD Radeon RX 9070 XT vendor=1002 device=7550,driver=32.0.32029.2010,backend=hardware,debug_layer=unavailable; the same inputs were also run onwarp. DXC from the kit inDXC_EXECUTABLE(noSTARTUP_FXC), head628685facc84346ee2ab5c2cd97bc5e73bb6a424in a clean worktree at--preset dev.What I ran
The docstring excludes denormal inputs and results, so I ran the five operations with them, through the fixture's own pipeline and its references (
tests/startup_gfx2hlsl_frexp_cvt_check.py:170forref_frexp_mant,:192forref_cvt_flr,:201forref_ldexp). The probe is local, not part of this branch: 14 chunks of four lanes, twelve denormal words for the unary operations and eight denormal-result pairs forv_ldexp_f32. Three chunks mismatch, identically on this adapter and on WARP:First line:
v_cvt_flr_i32_f32on four negative denormals. The other two:v_ldexp_f32on denormal results, where the normal control (0x00800000) survives and only the denormal words flush, sign kept.Why it is worth a line
The two conventions are mixed inside the references, not only between the hardware and the model.
ref_frexp_mantalready answers a denormal with a signed zero, butref_cvt_flr(0x80000001)is0xffffffffandref_ldexp(0x00800000, -2)is0x00200000— exact, not flushed. So the flush-to-zero convention the note above describes holds for the emitted code, not for the references: a denormal row added to the fixture as it stands would fail on both backends. Is the intended model flush-to-zero everywhere (thenref_cvt_flrandref_ldexpshould model the flush), or exact (then the lowering needs the denormal handling)?v_frexp_mant_f32andv_frexp_exp_i32_f32read the reference value on both backends.v_cvt_rpi_i32_f32also matches, but its reference is zero for these inputs either way, so that row does not separate the two models.Limits
The comparison is the emitted HLSL on a desktop pipeline against the Python references, not the console ISA. One adapter, one driver, no debug layer, one compiler. The probe is not part of this branch and is not proposed as one.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-26T05:46:04Z.
Code review location:
tests/startup_gfx2hlsl_frexp_cvt_warp_check.py; line 160If a mutated shader fails during PSO creation or encounters a D3D12/debug-layer error, this condition counts the failure as successful mutation detection even though no differing pixel was observed. The renderer’s
run_operation_spec()intests/offscreen_check.cpp:1927–1941returns1for debug-layer errors and exceptions as well as comparison failures; genuine readback mismatches emitstartup_flat_param mismatchat line 1531. Consequently, the WARP/hardware check can pass and report “pixels read other words” without validating its negative control. Require the readback-mismatch diagnostic, ideally with independently expected mutant words, and propagate other renderer errors.AGENTS.md reference: AGENTS.md:L306-L306
Useful? React with 👍 / 👎.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T06:10:37Z.
I resolved the CMake clash in
eda3d9d9and tightened the mutation check to require a pixel readback mismatch. FXC and DXC pass the selected draw cases and catch each mutation on WARP and RTX 4060 Laptop with zero debug errors or warnings.The RX 9070 XT report shows what the desktop path did for the extra denormal rows. Please keep those results separate from a guest guarantee. For the FLR and LDEXP cases that distinguish flushing from preservation, a focused source-built native reference needs to identify the selected floating-point mode and record the input and output words. Keep the current normal-domain oracle intact and describe any supported guest profile at the point where it is selected.
Imported from R0Y00/Xbox2Windows. Originally posted by thepatrickworld on 2026-11-26T06:32:52Z.
MODE[5:4], the binary32 denormal mode, is a program selection the startup translator accepts and does not model oneda3d9d9; the pixel path refuses the same write. Measurements and code facts; not a code change.What I ran
Head
eda3d9d9, clean worktree, pure Python, no GPU or compiler. The encodeds_setreg_imm32_b32words through the real path (decode(),check_encoding(),Stage(..., refusals=[])) and through the unit entrylowered()uses; andpixel_aot.translateon the witness body oftests/pixel_aot_check.py. Neither probe is part of this branch.Observed
The lowered
v_ldexp_f32line is byte-identical with and without an acceptedFP_DENORM = 3write in front of it, and the handler is the same on main (da2a8f6f,gfx2hlsl.py:3988), so the branch does not introduce the acceptance.Why it bears on this fixture
MODE[5:4] is the binary32 denormal field, 0 flush both and 3 allow both; this repository already names it that way in the
v_cvt_f64_f32entry ofdocs/experiments.md.ref_cvt_flrandref_ldexpcompute the exact value (the docstring says ldexp denormal results are not covered, butref_ldexpcomputes them exactly), while the emitted HLSL produced flushed words on WARP and on the RX 9070 XT;op_v_ldexp_f32andop_v_cvt_flr_i32_f32are unchanged between628685faandeda3d9d9, so those words carry over.With the selection untracked, two programs that select different modes translate to the same HLSL, so one reference cannot be right for both. The pixel path has both mechanisms on the adjacent field: it declares the MODE[7:6] entry state (
pixel_aot.py:692, refused by:3609when undeclared) and refuses every MODE write outside the rounding field; the binary32 field is not declared there, that write is refused.Also worth pinning: this draw compiles the pair at ps_6_0 (
tests/startup_gfx2hlsl_frexp_cvt_warp_check.py:140), where-denormis unavailable (SM 6.2 minimum), while the pixel draws request a mode at ps_6_2 (tests/pixel_aot_check.py:361) — the desktop run could not select one.This is not the source-built native reference you asked for; it only locates where the mode selection lands in this branch, and the normal-domain oracle is not in question. Whether the startup path declares the binary32 entry state or refuses the write that selects an unmodelled mode is a call for the branch; either way the profile this fixture assumes needs a place to be stated, as you asked.
Limits
No console hardware and no GPU in this run; the desktop words are the earlier ones, one adapter, one driver. The probes are not ctest entries and are not proposed as one.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T07:50:18Z.
Thank you, all three comments are answered below.
eda3d9d9(a mutation now counts only when the pixel readback differs, not when PSO creation or the debug layer fails). Resolving the thread.MODE[5:4]note: agreed, and kept separate from a guest guarantee. The normal-domain oracle is unchanged. The docstring oftests/startup_gfx2hlsl_frexp_cvt_check.pynow states the profile at the point it matters: normal inputs and results, zero, inf and NaN only; the binary32 denormal selection is not modelled (the translator accepts that write and emits no line for it, as on main); the denormal rows ofref_cvt_flr,ref_ldexpandref_frexp_mantare not a guest guarantee, and a desktop result on them says nothing about the console.Verification:
python3 -B tests/startup_gfx2hlsl_frexp_cvt_check.pypasses on the new head. The change is a docstring only.AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T10:12:21Z.
Withdrawn: shader translation is moving to the native C++ frontend (see #870), so we are not continuing this change to the Python translator. The branch stays available if any part is useful later. Thank you to everyone who reviewed and tested it.
Pull request closed