shader: lower finite-normal raw buffer floating-point min and max atomics #2503
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2511"
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 chadhyatt on 2026-11-25T19:05:36Z.
AI-assisted backport patch from x2w-microlift.
Refs #1545. Admit fixed-address gfx1030 32-bit raw MUBUF float min/max only under the explicit finite-normal domain. Reuse the image float ordering with the raw buffer CAS method; preserve the existing integer atomics and refusals. Four source-built cases exercise single-value and contended reductions, seeded output, parser controls and arithmetic mutations.
Exact tested head:
b688fabb3e, base394f24f833. macOS ARM64, LLVM 23: all four new assembly/disassembly/lowering/CLI cases and domain/refusal controls passed (usingmubuf_float_controls()andgfx1030_binaryformubuf_float_casesfrom tests/compute_store_check.py).python3 -B tests/docs_links_check.pyandpython3 -B tests/bidi_controls_check.pypassed. Full binary suite and DXC/WARP/hardware execution were not run on this host.Windows verification:
cmake --build --preset dev --target offscreen_check, thenctest --preset dev --no-tests=error -R "^compute_store_aot_mubuf_float_" -V.Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T19:24:20Z.
Review: COMMENTED
Review of head
b688fabb(comment only, no approval).What I checked
compute_store_aot_mubuf_float_<adapter>CTest is wired next to the siblingmubuf_csubtest. The test compares D3D12 readback with a CPU reference for single and contended reductions and has seeded output.Commands run (Linux, worktree at the exact head, 11 behind main)
python3 -B tests/docs_links_check.py: passedpython3 -B tests/bidi_controls_check.py: passedgit diff --check origin/main...HEAD: cleanmubuf_float_controls()plusaot.loweron all four cases: passedNot covered here: the WARP readback run. It will be run on Windows next.
No finding. Does not claim any startup progress, so no game verification is needed.
AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T19:34:32Z.
Win2025 WARP receipt for head
9cf0e840after updating with main.Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit
9cf0e84099d661ec2d601ffc77f4017c8341720a:--preset dev):cmake --build --preset dev --target offscreen_check -- -j 2):84.88s(configure5.89s)ctest --preset dev -R 'compute_store_aot_mubuf_' --parallel 2 --no-tests=error --output-on-failure): 32/32 passed (112.29s:compute_store_aot_mubuf_store_subword_warp4.64s,compute_store_aot_mubuf_reduction_warp5.83s,compute_store_aot_mubuf_reduction_x2_warp3.68s,compute_store_aot_mubuf_store_format_warp3.46s,compute_store_aot_mubuf_counter-x2_warp2.28s,compute_store_aot_mubuf_d16_warp4.69s,compute_store_aot_mubuf_exchange-x2_warp4.19s,compute_store_aot_mubuf_subword_warp5.84s,compute_store_aot_mubuf_exchange_warp2.75s,compute_store_aot_mubuf_format_warp3.43s,compute_store_aot_mubuf_store_format_xyz_warp1.66s,compute_store_aot_mubuf_load_format_d16_warp3.07s,compute_store_aot_mubuf_counter_warp2.08s,compute_store_aot_mubuf_vector_warp1.98s,compute_store_aot_mubuf_csub_warp1.77s,compute_store_aot_mubuf_reduction_x2_hardware10.64s,compute_store_aot_mubuf_reduction_hardware15.96s,compute_store_aot_mubuf_store_format_hardware32.41s,compute_store_aot_mubuf_d16_hardware34.67s,compute_store_aot_mubuf_store_subword_hardware12.12s,compute_store_aot_mubuf_subword_hardware6.53s,compute_store_aot_mubuf_format_hardware5.82s,compute_store_aot_mubuf_load_format_d16_hardware9.34s,compute_store_aot_mubuf_vector_hardware7.70s,compute_store_aot_mubuf_exchange_hardware7.60s,compute_store_aot_mubuf_exchange-x2_hardware6.74s,compute_store_aot_mubuf_counter_hardware3.37s,compute_store_aot_mubuf_counter-x2_hardware3.54s,compute_store_aot_mubuf_csub_hardware2.27s,compute_store_aot_mubuf_store_format_xyz_hardware2.46s,compute_store_aot_mubuf_float_warp5.35s,compute_store_aot_mubuf_float_hardware5.67s)/O2(--preset release):cmake --build --preset release --target offscreen_check -- -j 2):214.43s(configure3.33s)ctest --preset release -R 'compute_store_aot_mubuf_' --parallel 2 --no-tests=error --output-on-failure): 32/32 passed (36.00s:compute_store_aot_mubuf_reduction_warp3.08s,compute_store_aot_mubuf_reduction_x2_warp3.10s,compute_store_aot_mubuf_d16_warp2.46s,compute_store_aot_mubuf_store_format_warp2.58s,compute_store_aot_mubuf_load_format_d16_warp1.95s,compute_store_aot_mubuf_subword_warp2.17s,compute_store_aot_mubuf_format_warp2.19s,compute_store_aot_mubuf_counter_warp1.86s,compute_store_aot_mubuf_exchange-x2_warp1.58s,compute_store_aot_mubuf_store_subword_warp2.41s,compute_store_aot_mubuf_exchange_warp1.66s,compute_store_aot_mubuf_counter-x2_warp1.49s,compute_store_aot_mubuf_vector_warp1.67s,compute_store_aot_mubuf_csub_warp1.33s,compute_store_aot_mubuf_store_format_xyz_warp1.33s,compute_store_aot_mubuf_subword_hardware2.11s,compute_store_aot_mubuf_reduction_hardware3.11s,compute_store_aot_mubuf_reduction_x2_hardware3.26s,compute_store_aot_mubuf_exchange_hardware1.79s,compute_store_aot_mubuf_exchange-x2_hardware1.73s,compute_store_aot_mubuf_counter_hardware1.58s,compute_store_aot_mubuf_counter-x2_hardware1.91s,compute_store_aot_mubuf_csub_hardware1.60s,compute_store_aot_mubuf_vector_hardware1.90s,compute_store_aot_mubuf_float_hardware2.59s,compute_store_aot_mubuf_load_format_d16_hardware2.43s,compute_store_aot_mubuf_d16_hardware3.56s,compute_store_aot_mubuf_format_hardware2.18s,compute_store_aot_mubuf_store_format_xyz_hardware1.67s,compute_store_aot_mubuf_store_format_hardware3.54s,compute_store_aot_mubuf_store_subword_hardware2.62s,compute_store_aot_mubuf_float_warp2.77s)tests/compute_alu_bcnt64_check.pyok (0.7s),tests/compute_alu_cmp_ne_check.pyok (0.7s),tests/compute_alu_lane_gaps_check.pyok (0.7s),tests/compute_desc_numeric_check.pyok (0.6s),tests/compute_entry_layout_check.pyok (0.2s),tests/compute_heap_store_check.pyok (0.6s),tests/compute_heap_view_check.pyok (1.0s),tests/compute_load_format_check.pyok (1.3s),tests/pso_readiness_check.pyok (2.4s)sccache: 6/426 hits; wall365.4sAI-assisted; commands listed were executed locally.