shader: lower the 16-bit three-operand float VOP3 ops in pixel_aot #1459
Closed
agilesh08 wants to merge 1 commit from
upstream-pr/1466 into main
pull from: upstream-pr/1466
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!1459
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1466"
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 agilesh08 on 2026-11-24T12:01:53Z.
Summary
Lowers the three remaining unlowered 16-bit float ternary
VOP3math instructions (v_min3_f16,v_max3_f16, andv_med3_f16) intools/pixel_aot.pyacross their unsuffixed and_e64spellings, completing RDNA2VOP3ternary floating-point coverage.Implementation Details
Lowering (
tools/pixel_aot.py):widen16(hf...).precisemode using HLSL intrinsics:min(min(a, b), c)forv_min3_f16,max(max(a, b), c)forv_max3_f16, andmax(min(a, b), min(max(a, b), c))forv_med3_f16.narrow16(hs...)and tags the destination as("half16", alu).half16_arith_source(accepting proven inline constants, numeric literals, scalar constant registers, and priorhalf16arithmetic results).f16_min3_max3_med3_resultwith signed-zero tie breaking (-0.0 < +0.0).Scanner & Tooling (
tools/scan_unsupported_shaders.py,tests/rdna2_tools_check.py,tests/pso_readiness_check.py):PIXEL_VOP3_F16_TERNARYin opcode tables and adds syntax parsing regex forv_min3_f16,v_max3_f16,v_med3_f16.tests/rdna2_tools_check.pyand tracking assertions intests/pso_readiness_check.py.Form Coverage (
tests/form_coverage_check.py):("VOP3", "v_min3_f16"),("VOP3", "v_max3_f16"), and("VOP3", "v_med3_f16")are counted as covered in bothgfx1013.tsvandrdna2.tsvwhen translated withtranslate_f16, and remain uncovered without the accepted fixtures.Draw Fixture & CMake (
tests/pixel_aot_check.py,CMakeLists.txt):draw-f16-ternarytest harness covering 18 programs (all 6 strict permutations of values, negative values, mixed signs, subnormals, all 4 tie shapes, and chained arithmetic results) through bit-exactR32G32B32A32_UINTreadback.med3_as_min3,med3_as_max3,max3_as_min3,min3_as_max3, andsource_high).pixel_aot_f16_ternary_${adapter}with timeout and form coverage logging inCMakeLists.txt.Documentation (
docs/experiments.md):half16result tagging, draw harness, and mutation testing.Evidence
All local verification checks pass on Windows:
All checks exit with code
0.Checklist
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T12:20:59Z.
Review: COMMENTED
Reviewed PR #1466 (
da9be0ef):Findings
tests/pixel_aot_check.py(main()):"draw-f16-ternary"was added to thedraw = {...}dispatch dictionary (line 21521), but it was omitted from theif mode in (...)guard tuple (lines 21483–21494). As a result, invokingtests/pixel_aot_check.py draw-f16-ternary ...falls through toelse:and raises: Bothpixel_aot_f16_ternary_warpandpixel_aot_f16_ternary_hardwarefail immediately because of this.Verification
da9be0ef:tests/form_coverage_check.py: PASS (45.39s)cmake --build --preset dev --target offscreen_check: PASSctest --preset dev -R '^pixel_aot_f16_ternary_': 0/2 passed, 2 failed (pixel_aot_f16_ternary_warpandpixel_aot_f16_ternary_hardwareboth failed with theValueErrorabove).da9be0ef:tests/docs_links_check.py,tests/bidi_controls_check.py,git diff --check origin/main..HEAD: PASStests/rdna2_tools_check.py: PASS (141tests,18skipped)tests/pso_readiness_check.py: PASStests/pixel_aot_check.py(check_controls): PASSllvm-mc-19,llvm-objcopy-19,libLLVM-19.so) assembly/disassembly/translation roundtrip of all 23f16_ternary_opsandF16_TERNARY_PROGRAMS: PASSCode Audit Notes
tools/pixel_aot.py:VOP3_F16_TERNARY,f16_min3_max3_med3_result, and the lowering path look clean and consistent with the existinghalf16finite-proof and-0.0 < +0.0tie-breaking contracts.tools/scan_unsupported_shaders.py,tests/rdna2_tools_check.py,tests/pso_readiness_check.py,tests/form_coverage_check.py: clean and well-scoped.Once
"draw-f16-ternary"is added to themode in (...)tuple intests/pixel_aot_check.pyand thepixel_aot_f16_ternary_*CTest targets pass on Windows, this looks ready.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T13:53:03Z.
Review: CHANGES_REQUESTED
I locally added draw-f16-ternary to the main draw-mode branch so both registered cases execute. They both fail main-13 on RTX and WARP: median channel 2 expects +0 (0x0000) and returns -0 (0x8000). Please include the CLI dispatcher fix and establish which signed-zero tie result the native instruction yields under this profile. Then preserve that bit result in the generated path and keep this case strict.
Imported from R0Y00/Xbox2Windows. Originally posted by ChazY11 on 2026-11-24T13:21:56Z.
The two tests this PR registers cannot run:
draw-f16-ternaryis not an accepted modeIndependent reviewer, not the author. I built
da9be0efclean and ran the tests the PR adds.Environment: Windows 11 build 26300.9974, MSVC 14.44.35207, SDK 10.0.26100, DXC 1.8.2502.11, LLVM gfx1013 tooling
available (
pixel_aot_region_scalar_load_warppasses on this machine, so the binary path works here).The registration passes
draw-f16-ternary:and the mode dispatch in the same commit knows only
binary,draw,draw-core,draw-e64,three-wayandbuffer-color, so the run stops before any lowering is exercised. The fixture data itself is present in that file(
F16_TERNARY_WORDS,F16_TERNARY_GROUPS,F16_TERNARY_CHAIN,F16_TERNARY_MED_CHAIN,f16_ternary_ops), which iswhy this reads like a missing
elif mode == "draw-f16-ternary":hunk rather than a wrong test name.Two consequences worth checking on your side:
tools/pixel_aot.pyis unverified by these tests — they never reach it. Sov_min3_f16,v_max3_f16andv_med3_f16have no executed coverage in this commit, whatever the diff says._warpcase should run in the Windows job, but a missing DXC/LLVM on a runnerturns these into capability skips, which is exactly the failure mode
AGENTS.mdasks to report separately.I have not pushed anything. Once the dispatch exists I am happy to re-run the pair plus a mutation of the
v_med3_f16formula to confirm the tests actually reject a wrong lowering — that is the check I was going to do before I hit this.
Verdict
Not mergeable as it stands: the two registered cases fail on a clean local build with a
ValueErrorfrom the harness,before reaching the code under test. Everything else I could check is in order (
tools/pixel_aot.py, the docs line andthe other Python checks load fine).
Imported from R0Y00/Xbox2Windows. Originally posted by ChazY11 on 2026-11-24T13:31:13Z.
Addendum — the mapping exists, but the dispatch chain never consults it
Correction to the cause in my review above, found while re-checking at the same head
da9be0ef. The behaviour is thesame (both tests still fail), but my "missing
elif" reading was one step short of the actual defect.No build or
ctestneeded to see it:The mode is declared in this commit, at line 21521:
but
main()does not read that mapping. Its hand-written chain runsdraw-e64-spellings,draw-e64,draw-e64-approx,draw-sdwa-unary, thenbinary,bits,draw/draw-core,three-way,buffer-color, and falls through to theValueErrorabove.draw-f16-ternarymatches none of the branches, so the declared handler is unreachable.So the fix is one branch in that chain (or routing the chain through the mapping table), not a new handler. The rest of
the review stands: the two registered cases fail before reaching the lowering, and the fixture data plus the handler
already exist in the file.
I have not pushed anything.
Imported from R0Y00/Xbox2Windows. Originally posted by agilesh08 on 2026-11-24T14:18:41Z.
@R0Y00 @tedin7 @ChazY11 Thank you for the detailed diagnostics and hardware/WARP runs! Updated PR #1466 with both fixes:
@tedin7,@ChazY11,@R0Y00): Added"draw-f16-ternary"to theif mode in (...)dispatch guard intests/pixel_aot_check.py(main()) sopixel_aot_f16_ternary_warpandpixel_aot_f16_ternary_hardwareexecutecheck_f16_ternary_drawinstead of falling through toValueError. Added unit verification asserting"draw-f16-ternary"is in the dispatch guard tuple.@R0Y00): Under IEEE total ordering, native RDNA2v_min3_f16/v_max3_f16/v_med3_f16order-0.0(0x8000) strictly below+0.0(0x0000). Updatedmin16_numandmax16_numintools/pixel_aot.pyto enforce-0.0 < +0.0bit-level ordering whena == 0.0f && b == 0.0f(asfloat(asuint(a) | asuint(b))for min,asfloat(asuint(a) & asuint(b))for max), and loweredv_min3_f16,v_max3_f16, andv_med3_f16usingmin16_num/max16_numinstead of bare HLSLmin/max. Added unit test assertions across all permutations of the four signed-zero tie cases ((-0.0, -0.0, +0.0),(-0.0, +0.0, +0.0),(-1.0, -0.0, +0.0),(-0.0, +0.0, +1.0)) verifying exact bit agreement with the reference oracle.Verified all platform-independent checks (
form_coverage_check.py,rdna2_tools_check.py,pso_readiness_check.py,pixel_aot_check.py,docs_links_check.py,bidi_controls_check.py) with exit code 0. Assisted by AI.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T14:27:23Z.
Retested
46704adain Release. The CLI now reaches both draws. WARP passes, but RTX 4060 Laptop driver 32.0.16.1656 still fails main-13 at (0,0), median channel 2: expected 0x0000, got 0x8000. Debug layer enabled, zero messages. Please verify the exact native median result for the zero permutations with the instruction specification or an independent raw-word native run. Then preserve the selected half as integer bits through the final write and rerun both draw backends. The Python oracle and the WARP pass alone leave the RTX discrepancy open.Imported from R0Y00/Xbox2Windows. Originally posted by ChazY11 on 2026-11-24T14:55:32Z.
Dispatch is fixed —
_warpnow passes with all four mutations caught;_hardwarefails on my adapterRe-checked at the new head
46704ada. The blocking finding in my earlier review is resolved, and one narrower issue replacesit.
Environment: Windows 11 build 26300.9974, MSVC 14.44.35207, SDK 10.0.26100, DXC 1.8.2502.11, RTX 5080 Laptop
(32.0.15.8142) for the
hardwarecase, in-box WARP forwarp.What now works
draw-f16-ternaryis in the dispatch table, and the warp case runs the whole fixture: the reference draw passes and allfour in-tree mutations are detected.
That is the check I said I would do once the dispatch existed: the
v_med3_f16formula and the min/max distinctions areeach noticed. Good.
What fails
The hardware case dies on the reference draw, before any mutation:
run_pixel_batchcompares the GPU readback againstf16_ternary_expected(...)computed in Python, so this is thelowered output disagreeing with the fixture's own model on this adapter, not a disagreement with WARP's pixels. WARP
agrees with the model; this GPU does not.
Two possibilities and I cannot separate them from here:
min3/max3/med3differently from the HLSL the translator emits, which would bea real finding for half-precision ternary coverage;
Either way it is worth knowing before merge, because CI excludes
_hardware, so this case would land green.If it helps: tell me which of the
F16_TERNARY_PROGRAMSkeys is the first to mismatch and I will narrow it to a singlecomponent (I did not modify the harness to print it, since that is your file).
Verdict
Reviewed
46704ada. The dispatch fix is correct and the warp case is now a real check with four mutation detections. Thehardware case fails on my adapter at the reference comparison; I would not merge with that unexplained, even though the
CI job cannot see it.
Imported from R0Y00/Xbox2Windows. Originally posted by Makto94 on 2026-11-24T16:03:11Z.
Independent run of
46704adaon another NVIDIA adapter (RTX 3070 Ti, desktop), Debug build. The hardware case fails with the same signature as R0Y00's Release retest:main-13, pixel (0,0), channel 2 expected0x0000, got0x8000.Environment: commit
46704adaaa031ca53c7dd6752d0935b5431fcb84, presetdev(Debug); NVIDIA GeForce RTX 3070 Ti (10de:2482), driver 32.0.16.2101 (621.01); Windows 11 Pro 10.0.26300.9974; DXC 1.9.2602.17 (Windows SDK 10.0.26100);debug_layer=enabled,debug_errors=0 debug_warnings=0.pixel_aot_f16_ternary_warp: passed. The reference draw passes and all 5 mutations are detected.pixel_aot_f16_ternary_hardware: failed on the reference drawmain-13, before any mutation ran.Not measured here: the native result for the zero permutations, and any non-NVIDIA adapter.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T16:55:32Z.
Review: COMMENTED
Re-review of head
46704ada.Previous blocker
"draw-f16-ternary"was missing from themode in (...)guard inmain(). It is now in that tuple and in thedrawdispatch (tests/pixel_aot_check.py), andCMakeLists.txtregisters thedraw-f16-ternaryruns. I could not run those on Windows, so the fix is confirmed by reading and by the Linux run below, not by the WARP run.Observations, none blocking
min16_numandmax16_numare shared helpers. The diff changes them for every user, not only the new ops: a+0/-0pair now returns-0for min (sign bits ORed) and+0for max (ANDed). That is the documented tie order and matches the new proof function, but it also changes the output of the existingv_min_f16/v_max_f16lowerings in the tie case. Worth one sentence in the PR body.check_f16_ternary_loweringreads the source ofmain()withinspect.getsourceand searches for the mode string. The draw tests already fail if the mode is missing, so this text search duplicates them and breaks on a harmless reformat.llvm-mc-19 -mcpu=gfx1030gives opcodes 0x351, 0x354 and 0x357 forv_min3_f16,v_max3_f16andv_med3_f16, the same onestools/disasm_rdna2.pylists. Withclampset the encoding differs (bit 15 of the second byte), which the lowering refuses.Checks run (Linux only; the draw runs need Windows and were not run)
git diff --check origin/main...HEAD: clean.python3 tests/docs_links_check.py: self-test passed, 16 files, 344 links.python3 tests/bidi_controls_check.py: self-test passed, 1247 files, no bidirectional controls.python3 tests/pso_readiness_check.py: passed.python3 tests/pixel_aot_check.py: exit 0.python3 tests/rdna2_tools_check.py: 141 tests, OK, 18 skipped.med3lowered asmin3intools/pixel_aot.py: KILLED (a lowering assertion fails). It is caught by a text assertion on the emitted HLSL, not by evaluating the shader.min16_num: SURVIVED the Linux run. Only the Windows draw cases can see it, so the WARP result on Windows is what actually covers that behaviour.Verification is Linux-only.
AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T12:44:23Z.
@agilesh08 could you rebase this branch onto current
mainand force-push?GitHub reports head
46704adaas conflicting withmain, so it cannot be merged as is.Files that conflict with current
main(b1a644ae):docs/experiments.mdtests/pixel_aot_check.pyCommands run locally:
Once it is rebased and CI is green it will be re-checked right away.
AI-assisted; commands listed were executed locally.
Pull request closed