shader: lower gfx1030 image atomic integer min and max #1497

Merged
stan495 merged 1 commit from upstream-pr/1504 into main 2026-11-24 13:28:12 +00:00
stan495 commented 2026-11-24 13:15:58 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by stan495 on 2026-11-24T13:15:58Z.


Summary

Builds on the merged arithmetic and bitwise support from #1485. Only the signed and unsigned min/max behavior is included. Replaces stan495/Xbox2Windows#13.

Lower non-returning gfx1030 image_atomic_smin, image_atomic_smax, image_atomic_umin, and image_atomic_umax on a scalar mip-zero 2D UAV. Signed forms require R32_SINT; unsigned forms require R32_UINT. The fixture uses min/max-specific D3D12 format capability checks and does not require those capabilities for the existing arithmetic and bitwise suite. Exchange, compare-exchange, counters, float atomics, and returned values are outside this PR.

Verification

Tested clean head 1b7b2c06be0586be5fb8c53bfdf4fc8500fc3c05 on upstream base 1a1d58e2bda671826e84abbfee0342007f5163e2.

. .\tools\dev.ps1
$root = (Get-Location).Path
cmake --preset dev -DINTAKE_PYTHON=<python.exe>
cmake --build --preset dev --target offscreen_check
$env:TEMP = "$root/out"
$env:TMP = $env:TEMP
ctest --preset dev --no-tests=error -j 1 -R '^(compute_store_aot_mimg_|compute_root_|compute_tables_|offscreen_capability_table_self_test$)' -V --output-junit "$root/out/atomic-minmax-1b7b2c06.xml"
python -B tools/form_coverage.py out/atomic-minmax-1b7b2c06.xml --records out/build/dev/form_coverage --json out/atomic-minmax-1b7b2c06.coverage.json
python -B tests/form_coverage_check.py
python -B tests/docs_links_check.py
python -B tests/bidi_controls_check.py

CTest: 23 passed, 0 failed, 0 skipped. Each adapter ran all four operations at one and two group counts, comparing all 336 words of the three mip levels against a CPU reference. Each signedness mutation with its matching UAV type first differs at mip 0, word 33: smin and umax expected 80000011 but got 7ffffff0; smax and umin expected 7ffffff0 but got 80000011. The rejections include incorrect view format, mip, data mask/shape, descriptor provenance and readiness, and flags or operations outside the tested profile. Both passing min/max records contain exactly the four new forms. This compute run covers 21/111 gfx1030 MIMG mnemonics.

Windows 11 build 26300.9974; Intel Arc B390 32.0.101.8509; Microsoft WARP 10.0.26100.9818. Debug layer unavailable on both backends.

python3 -B tests/compute_store_check.py binary llvm-mc-15 llvm-objcopy-15 libLLVM-15.so.1

LLVM 15 assembly, disassembly and synthetic-container CLI round trips passed. git diff --check origin/main...HEAD passed. git merge-tree --write-tree refs/remotes/origin/main HEAD passed against ccd6fb040956d016f58420ef588e3122ee2bf63f. A separate simulation applied explicit-gradient sampling first and also merged cleanly. Neither simulation is an integrated execution run.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6582636901 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1504). Originally posted by [stan495](https://github.com/stan495) on 2026-11-24T13:15:58Z. --- ## Summary Builds on the merged arithmetic and bitwise support from #1485. Only the signed and unsigned min/max behavior is included. Replaces stan495/Xbox2Windows#13. Lower non-returning gfx1030 `image_atomic_smin`, `image_atomic_smax`, `image_atomic_umin`, and `image_atomic_umax` on a scalar mip-zero 2D UAV. Signed forms require `R32_SINT`; unsigned forms require `R32_UINT`. The fixture uses min/max-specific D3D12 format capability checks and does not require those capabilities for the existing arithmetic and bitwise suite. Exchange, compare-exchange, counters, float atomics, and returned values are outside this PR. ## Verification Tested clean head `1b7b2c06be0586be5fb8c53bfdf4fc8500fc3c05` on upstream base `1a1d58e2bda671826e84abbfee0342007f5163e2`. ```powershell . .\tools\dev.ps1 $root = (Get-Location).Path cmake --preset dev -DINTAKE_PYTHON=<python.exe> cmake --build --preset dev --target offscreen_check $env:TEMP = "$root/out" $env:TMP = $env:TEMP ctest --preset dev --no-tests=error -j 1 -R '^(compute_store_aot_mimg_|compute_root_|compute_tables_|offscreen_capability_table_self_test$)' -V --output-junit "$root/out/atomic-minmax-1b7b2c06.xml" python -B tools/form_coverage.py out/atomic-minmax-1b7b2c06.xml --records out/build/dev/form_coverage --json out/atomic-minmax-1b7b2c06.coverage.json python -B tests/form_coverage_check.py python -B tests/docs_links_check.py python -B tests/bidi_controls_check.py ``` CTest: 23 passed, 0 failed, 0 skipped. Each adapter ran all four operations at one and two group counts, comparing all 336 words of the three mip levels against a CPU reference. Each signedness mutation with its matching UAV type first differs at mip 0, word 33: `smin` and `umax` expected `80000011` but got `7ffffff0`; `smax` and `umin` expected `7ffffff0` but got `80000011`. The rejections include incorrect view format, mip, data mask/shape, descriptor provenance and readiness, and flags or operations outside the tested profile. Both passing min/max records contain exactly the four new forms. This compute run covers 21/111 gfx1030 MIMG mnemonics. Windows 11 build `26300.9974`; Intel Arc B390 `32.0.101.8509`; Microsoft WARP `10.0.26100.9818`. Debug layer unavailable on both backends. ```sh python3 -B tests/compute_store_check.py binary llvm-mc-15 llvm-objcopy-15 libLLVM-15.so.1 ``` LLVM 15 assembly, disassembly and synthetic-container CLI round trips passed. `git diff --check origin/main...HEAD` passed. `git merge-tree --write-tree refs/remotes/origin/main HEAD` passed against `ccd6fb040956d016f58420ef588e3122ee2bf63f`. A separate simulation applied explicit-gradient sampling first and also merged cleanly. Neither simulation is an integrated execution run.
upstream-sync closed this pull request 2026-11-24 14:03:00 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
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!1497
No description provided.