shader: prove uniform compute image_load results uniform for v_readfirstlane_b32 #2834

Merged
stan495 merged 2 commits from upstream-pr/2842 into main 2026-11-26 13:34:45 +00:00
stan495 commented 2026-11-26 13:18:04 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by stan495 on 2026-11-26T13:18:04Z.


Refs #2644

Implements T5 from #2644: prove compute image_load at uniform coordinates through a uniform read-only descriptor uniform for v_readfirstlane_b32 in tools/startup/gfx2hlsl.py.

Summary of changes

  • tools/startup/gfx2hlsl.py: Add UNIFORM_IMAGE_LOADS (('image_load',)) and Stage.uniform_image_load_regs() so Stage.one() and Stage.translate() treat image_load destination VGPRs as wave-uniform in compute (kind == 'cs', exec_known, and outside loads_after_exec_write) when:
    • the dispatch contains no image_store or image_atomic* writes (has_image_writes is False, fail-closed if translate() did not run),
    • the 8-register descriptor operand is an intact, unmodified fixed-table image descriptor not present in pipe.modified, other_modified, stored_images(), masks, or varying_s,
    • the dimension (SQ_RSRC_IMG_2D, SQ_RSRC_IMG_3D, SQ_RSRC_IMG_2D_ARRAY), dmask (non-empty bits [3:0]), modifiers (no d16; a16 allowed on SQ_RSRC_IMG_2D), and destination VGPR range match image_load semantics, and
    • every coordinate VGPR satisfies uniform_source.
      Post-entry image_load recomputes via uniform_load_temps identically to UNIFORM_LOADS.
  • tests/startup_gfx2hlsl_readfirstlane_uniform_check.py: Add accepted entry-block cases (2D single/multi-channel, packed a16, 2D-array, self-overwriting coordinates) and negative controls (varying coordinates, modified/overwritten descriptor words, image_store in the dispatch, image_load_mip, non-compute/unknown EXEC/branch target, untouched VGPR, and disabling UNIFORM_IMAGE_LOADS).
  • tests/startup_gfx2hlsl_readfirstlane_load_recompute_check.py: Add post-entry single/two-channel image_load recomputation cases and negative controls (image_store in the dispatch, EXEC-modifying loop back edge, skipped execz block, post-load join, and disabling UNIFORM_IMAGE_LOADS).
  • tests/startup_compute_readfirstlane_check.py: Add a compute fixture (IMG_LOAD_WORDS) with a post-entry branch join, two-channel image_load, and v_readfirstlane_b32 over two workgroups (--compute-texture-case binding t0 as R32G32B32A32_FLOAT and u0), plus varying-coordinate, image_store-presence, UNIFORM_IMAGE_LOADS toggle, and GPU dispatch controls (dropped-img-x-read, dropped-img-y-read).

Verification

  • Commit under test: 682d0b9a (based on upstream/main 4992a46e)
  • OS: Microsoft Windows NT 10.0.26200.0
  • Compiler / runner: Windows SDK DXC (10.0.26100.0, x64) + out/build/release/offscreen_check.exe

Pure-Python checks

.\out\pe-env\Scripts\python.exe -B tests/startup_gfx2hlsl_readfirstlane_uniform_check.py
.\out\pe-env\Scripts\python.exe -B tests/startup_gfx2hlsl_readfirstlane_recompute_check.py
.\out\pe-env\Scripts\python.exe -B tests/startup_gfx2hlsl_readfirstlane_load_recompute_check.py
.\out\pe-env\Scripts\python.exe -B tests/startup_compute_readfirstlane_check.py
.\out\pe-env\Scripts\python.exe -B tests/bidi_controls_check.py
.\out\pe-env\Scripts\python.exe -B tests/docs_links_check.py

Observed results (all exit code 0):

  • Readfirstlane uniformity checks: 0 failed
  • Readfirstlane recompute checks: 0 failed
  • Readfirstlane load recompute checks: 0 failed
  • Compute readfirstlane one-path, loop-counter, log2/ceil, image_load, waterfall and refusal checks passed
  • Checked 2036 tracked source, script and build/CI files: no bidirectional controls.
  • Checked 27 Markdown files and 542 links.

WARP dispatch check

.\out\pe-env\Scripts\python.exe -B tests/startup_compute_readfirstlane_check.py --dispatch `
  "C:/Program Files (x86)/Windows Kits/10/bin/10.0.26100.0/x64/dxc.exe" `
  out/build/release/offscreen_check.exe warp

Observed (adapter=Microsoft Basic Render Driver vendor=1414 device=008c, driver=10.0.26100.9818, debug_layer=enabled):

  • img_load baseline (warp): all 320 words match
  • control dropped-img-x-read (warp): rejected at word=0 expected=00000100 actual=3f840100
  • control dropped-img-y-read (warp): rejected at word=0 expected=00000100 actual=3f840000
  • All existing baseline, log2/ceil, negative-control, and waterfall checks matched; debug_errors=0 debug_warnings=0 across all runs.

Physical GPU dispatch check

$env:XBOX2WINDOWS_ADAPTER = "7900"
.\out\pe-env\Scripts\python.exe -B tests/startup_compute_readfirstlane_check.py --dispatch `
  "C:/Program Files (x86)/Windows Kits/10/bin/10.0.26100.0/x64/dxc.exe" `
  out/build/release/offscreen_check.exe hardware

Observed (adapter=AMD Radeon RX 7900 XTX vendor=1002 device=744c, driver=32.0.32029.2010, debug_layer=enabled):

  • img_load baseline (hardware): all 320 words match
  • control dropped-img-x-read (hardware): rejected at word=0 expected=00000100 actual=3f840100
  • control dropped-img-y-read (hardware): rejected at word=0 expected=00000100 actual=3f840000
  • All existing baseline, log2/ceil, negative-control, and waterfall checks matched; debug_errors=0 debug_warnings=0 across all runs.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6627500861 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2842). Originally posted by [stan495](https://github.com/stan495) on 2026-11-26T13:18:04Z. --- Refs #2644 Implements **T5** from #2644: prove compute `image_load` at uniform coordinates through a uniform read-only descriptor uniform for `v_readfirstlane_b32` in `tools/startup/gfx2hlsl.py`. ### Summary of changes - `tools/startup/gfx2hlsl.py`: Add `UNIFORM_IMAGE_LOADS` (`('image_load',)`) and `Stage.uniform_image_load_regs()` so `Stage.one()` and `Stage.translate()` treat `image_load` destination VGPRs as wave-uniform in compute (`kind == 'cs'`, `exec_known`, and outside `loads_after_exec_write`) when: - the dispatch contains no `image_store` or `image_atomic*` writes (`has_image_writes` is `False`, fail-closed if `translate()` did not run), - the 8-register descriptor operand is an intact, unmodified fixed-table image descriptor not present in `pipe.modified`, `other_modified`, `stored_images()`, `masks`, or `varying_s`, - the dimension (`SQ_RSRC_IMG_2D`, `SQ_RSRC_IMG_3D`, `SQ_RSRC_IMG_2D_ARRAY`), `dmask` (non-empty bits `[3:0]`), modifiers (no `d16`; `a16` allowed on `SQ_RSRC_IMG_2D`), and destination VGPR range match `image_load` semantics, and - every coordinate VGPR satisfies `uniform_source`. Post-entry `image_load` recomputes via `uniform_load_temps` identically to `UNIFORM_LOADS`. - `tests/startup_gfx2hlsl_readfirstlane_uniform_check.py`: Add accepted entry-block cases (2D single/multi-channel, packed `a16`, 2D-array, self-overwriting coordinates) and negative controls (varying coordinates, modified/overwritten descriptor words, `image_store` in the dispatch, `image_load_mip`, non-compute/unknown `EXEC`/branch target, untouched VGPR, and disabling `UNIFORM_IMAGE_LOADS`). - `tests/startup_gfx2hlsl_readfirstlane_load_recompute_check.py`: Add post-entry single/two-channel `image_load` recomputation cases and negative controls (`image_store` in the dispatch, `EXEC`-modifying loop back edge, skipped `execz` block, post-load join, and disabling `UNIFORM_IMAGE_LOADS`). - `tests/startup_compute_readfirstlane_check.py`: Add a compute fixture (`IMG_LOAD_WORDS`) with a post-entry branch join, two-channel `image_load`, and `v_readfirstlane_b32` over two workgroups (`--compute-texture-case` binding `t0` as `R32G32B32A32_FLOAT` and `u0`), plus varying-coordinate, `image_store`-presence, `UNIFORM_IMAGE_LOADS` toggle, and GPU dispatch controls (`dropped-img-x-read`, `dropped-img-y-read`). ### Verification - Commit under test: `682d0b9a` (based on `upstream/main` `4992a46e`) - OS: `Microsoft Windows NT 10.0.26200.0` - Compiler / runner: Windows SDK DXC (`10.0.26100.0`, x64) + `out/build/release/offscreen_check.exe` #### Pure-Python checks ```powershell .\out\pe-env\Scripts\python.exe -B tests/startup_gfx2hlsl_readfirstlane_uniform_check.py .\out\pe-env\Scripts\python.exe -B tests/startup_gfx2hlsl_readfirstlane_recompute_check.py .\out\pe-env\Scripts\python.exe -B tests/startup_gfx2hlsl_readfirstlane_load_recompute_check.py .\out\pe-env\Scripts\python.exe -B tests/startup_compute_readfirstlane_check.py .\out\pe-env\Scripts\python.exe -B tests/bidi_controls_check.py .\out\pe-env\Scripts\python.exe -B tests/docs_links_check.py ``` Observed results (all exit code `0`): - `Readfirstlane uniformity checks: 0 failed` - `Readfirstlane recompute checks: 0 failed` - `Readfirstlane load recompute checks: 0 failed` - `Compute readfirstlane one-path, loop-counter, log2/ceil, image_load, waterfall and refusal checks passed` - `Checked 2036 tracked source, script and build/CI files: no bidirectional controls.` - `Checked 27 Markdown files and 542 links.` #### WARP dispatch check ```powershell .\out\pe-env\Scripts\python.exe -B tests/startup_compute_readfirstlane_check.py --dispatch ` "C:/Program Files (x86)/Windows Kits/10/bin/10.0.26100.0/x64/dxc.exe" ` out/build/release/offscreen_check.exe warp ``` Observed (`adapter=Microsoft Basic Render Driver vendor=1414 device=008c`, `driver=10.0.26100.9818`, `debug_layer=enabled`): - `img_load baseline (warp): all 320 words match` - `control dropped-img-x-read (warp): rejected at word=0 expected=00000100 actual=3f840100` - `control dropped-img-y-read (warp): rejected at word=0 expected=00000100 actual=3f840000` - All existing baseline, log2/ceil, negative-control, and waterfall checks matched; `debug_errors=0 debug_warnings=0` across all runs. #### Physical GPU dispatch check ```powershell $env:XBOX2WINDOWS_ADAPTER = "7900" .\out\pe-env\Scripts\python.exe -B tests/startup_compute_readfirstlane_check.py --dispatch ` "C:/Program Files (x86)/Windows Kits/10/bin/10.0.26100.0/x64/dxc.exe" ` out/build/release/offscreen_check.exe hardware ``` Observed (`adapter=AMD Radeon RX 7900 XTX vendor=1002 device=744c`, `driver=32.0.32029.2010`, `debug_layer=enabled`): - `img_load baseline (hardware): all 320 words match` - `control dropped-img-x-read (hardware): rejected at word=0 expected=00000100 actual=3f840100` - `control dropped-img-y-read (hardware): rejected at word=0 expected=00000100 actual=3f840000` - All existing baseline, log2/ceil, negative-control, and waterfall checks matched; `debug_errors=0 debug_warnings=0` across all runs.
upstream-sync closed this pull request 2026-11-26 14:00:30 +00:00
tedin7 commented 2026-11-26 14:00:31 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T13:24:09Z.

Review: COMMENTED


Review of head 682d0b9a (comment only, no merge).

Blocking: CI job "Assemble and translate gfx1013 fixtures" is red because of this PR's own test.
tests/startup_compute_readfirstlane_check.py, in img_load_controls (the if llvm_mc: block near line 403): the LLVM round-trip assertion built == IMG_LOAD_WORDS fails.

  • Cause: the decoder prints the branch as s_cbranch_scc0 label_0x28. llvm-mc gets no definition for that label, so it encodes a fixup placeholder instead of the offset. Word 8 comes out as 0xbf840a0a. The fixture has 0xbf840001, which is sopp('s_cbranch_scc0', 1).
  • Reproduced locally with python3 tests/startup_compute_readfirstlane_check.py --llvm-mc /usr/bin/llvm-mc-19. The only differing word of the 25 is word 8. The CI run with LLVM 15 fails the same way.
  • Likely fix: feed llvm-mc the numeric form for that branch (s_cbranch_scc0 1), or emit the label_0x28: line before the instruction it targets. check_binary earlier in the same file already passes this check for its own branch fixtures, so mirror what it does.

What I checked and found fine

  • Without --llvm-mc, the three touched Python checks pass: startup_compute_readfirstlane_check, startup_gfx2hlsl_readfirstlane_load_recompute_check, startup_gfx2hlsl_readfirstlane_uniform_check.
  • docs_links_check, bidi_controls_check and git diff --check origin/main...HEAD are clean.
  • Two mutations of uniform_image_load_regs each make the new controls fail as they should: (1) ignoring has_image_writes, and (2) skipping the per-coordinate uniform_source check. Both give "accepted, expected a refusal naming 'v_readfirstlane_b32 requires a proven uniform source'".
  • The lowering design looks sound: it requires a compute stage, a known EXEC, no image stores or atomics in the dispatch, an unmodified descriptor, a 2D/3D/2D-array dim, a single dmask and uniform coordinates.
  • A targeted fuzz of readfirstlane and wave-width-dependent shapes through D3D12 WARP against a CPU model showed 0 mismatches (18 match, 36 refused by the translator, which is fine).

I did not run the new WARP --dispatch readback yet because CI is red. I will run it on the next head once the test is fixed.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6074892430 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2842#pullrequestreview-6074892430). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-26T13:24:09Z. **Review:** COMMENTED --- Review of head 682d0b9a (comment only, no merge). **Blocking: CI job "Assemble and translate gfx1013 fixtures" is red because of this PR's own test.** `tests/startup_compute_readfirstlane_check.py`, in `img_load_controls` (the `if llvm_mc:` block near line 403): the LLVM round-trip assertion `built == IMG_LOAD_WORDS` fails. - Cause: the decoder prints the branch as `s_cbranch_scc0 label_0x28`. `llvm-mc` gets no definition for that label, so it encodes a fixup placeholder instead of the offset. Word 8 comes out as `0xbf840a0a`. The fixture has `0xbf840001`, which is `sopp('s_cbranch_scc0', 1)`. - Reproduced locally with `python3 tests/startup_compute_readfirstlane_check.py --llvm-mc /usr/bin/llvm-mc-19`. The only differing word of the 25 is word 8. The CI run with LLVM 15 fails the same way. - Likely fix: feed `llvm-mc` the numeric form for that branch (`s_cbranch_scc0 1`), or emit the `label_0x28:` line before the instruction it targets. `check_binary` earlier in the same file already passes this check for its own branch fixtures, so mirror what it does. **What I checked and found fine** - Without `--llvm-mc`, the three touched Python checks pass: `startup_compute_readfirstlane_check`, `startup_gfx2hlsl_readfirstlane_load_recompute_check`, `startup_gfx2hlsl_readfirstlane_uniform_check`. - `docs_links_check`, `bidi_controls_check` and `git diff --check origin/main...HEAD` are clean. - Two mutations of `uniform_image_load_regs` each make the new controls fail as they should: (1) ignoring `has_image_writes`, and (2) skipping the per-coordinate `uniform_source` check. Both give "accepted, expected a refusal naming 'v_readfirstlane_b32 requires a proven uniform source'". - The lowering design looks sound: it requires a compute stage, a known EXEC, no image stores or atomics in the dispatch, an unmodified descriptor, a 2D/3D/2D-array dim, a single dmask and uniform coordinates. - A targeted fuzz of readfirstlane and wave-width-dependent shapes through D3D12 WARP against a CPU model showed 0 mismatches (18 match, 36 refused by the translator, which is fine). I did not run the new WARP `--dispatch` readback yet because CI is red. I will run it on the next head once the test is fixed. AI-assisted; commands listed were executed locally.
tedin7 commented 2026-11-26 14:00:31 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T13:34:39Z.

Review: COMMENTED


Reviewed head 267f56a1: the llvm-mc branch-label fix resolves the earlier CI failure. Checks run locally: touched Python checks, llvm-mc round trip, git diff --check, two mutations of the new lowering (both fail the new controls). Windows WARP dev and release: 6/6 including startup_compute_readfirstlane_warp, receipt above.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6075038320 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2842#pullrequestreview-6075038320). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-26T13:34:39Z. **Review:** COMMENTED --- Reviewed head 267f56a1: the llvm-mc branch-label fix resolves the earlier CI failure. Checks run locally: touched Python checks, llvm-mc round trip, git diff --check, two mutations of the new lowering (both fail the new controls). Windows WARP dev and release: 6/6 including startup_compute_readfirstlane_warp, receipt above. AI-assisted; commands listed were executed locally.
stan495 commented 2026-11-26 14:00:37 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by stan495 on 2026-11-26T13:28:14Z.


Thanks for catching that, @tedin7.

Fixed in 267f56a1: tests/startup_compute_readfirstlane_check.py now extracts llvm_decoded_lines(decoded) (shared with llvm_lines()) so img_load_controls() resolves s_cbranch_scc0 label_0x28 to s_cbranch_scc0 1 before feeding llvm-mc.

Re-verified at 267f56a1 (Windows 10.0.26200.0):

  • startup_compute_readfirstlane_check.py, startup_gfx2hlsl_readfirstlane_uniform_check.py, startup_gfx2hlsl_readfirstlane_load_recompute_check.py, bidi_controls_check.py, docs_links_check.py, and git diff --check: all passed.
  • startup_compute_readfirstlane_check.py --dispatch (DXC 10.0.26100.0 + offscreen_check.exe): all cases and negative controls passed with debug_errors=0 debug_warnings=0 on both WARP (10.0.26100.9818) and AMD Radeon RX 7900 XTX (32.0.32029.2010).
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7193395255 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2842#issuecomment-7193395255). Originally posted by [stan495](https://github.com/stan495) on 2026-11-26T13:28:14Z. --- Thanks for catching that, @tedin7. Fixed in `267f56a1`: `tests/startup_compute_readfirstlane_check.py` now extracts `llvm_decoded_lines(decoded)` (shared with `llvm_lines()`) so `img_load_controls()` resolves `s_cbranch_scc0 label_0x28` to `s_cbranch_scc0 1` before feeding `llvm-mc`. Re-verified at `267f56a1` (Windows `10.0.26200.0`): - `startup_compute_readfirstlane_check.py`, `startup_gfx2hlsl_readfirstlane_uniform_check.py`, `startup_gfx2hlsl_readfirstlane_load_recompute_check.py`, `bidi_controls_check.py`, `docs_links_check.py`, and `git diff --check`: all passed. - `startup_compute_readfirstlane_check.py --dispatch` (DXC `10.0.26100.0` + `offscreen_check.exe`): all cases and negative controls passed with `debug_errors=0 debug_warnings=0` on both WARP (`10.0.26100.9818`) and `AMD Radeon RX 7900 XTX` (`32.0.32029.2010`).
tedin7 commented 2026-11-26 14:00:37 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T13:34:33Z.


Win2025 WARP receipt for head 267f56a1. Real-GPU run not available (RunPod stopped).

Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit 267f56a199ea0e2ec1c67b6fb0e4adb6945f75d9:

  • Debug (--preset dev):
    • Build (cmake --build --preset dev --target d3d12_xs_device_obj d3d12_xs_shim startup_buffer_format_word3_check -- -j 2): 26.41s (configure 0.00s)
    • Test (ctest --preset dev -R 'readfirstlane' --parallel 6 --no-tests=error --output-on-failure): 6/6 passed (2.25s: startup_gfx2hlsl_readfirstlane_recompute 0.17s, startup_gfx2hlsl_readfirstlane_load_recompute 0.18s, startup_gfx2hlsl_readfirstlane_uniform 0.20s, startup_compute_readfirstlane 0.84s, startup_compute_readfirstlane_warp 2.07s, startup_compute_readfirstlane_hardware 2.10s)
  • Release /O2 (--preset release):
    • Build (cmake --build --preset release --target d3d12_xs_device_obj d3d12_xs_shim startup_buffer_format_word3_check -- -j 2): 51.88s (configure 0.00s)
    • Test (ctest --preset release -R 'readfirstlane' --parallel 6 --no-tests=error --output-on-failure): 6/6 passed (1.96s: startup_gfx2hlsl_readfirstlane_recompute 0.13s, startup_gfx2hlsl_readfirstlane_load_recompute 0.15s, startup_gfx2hlsl_readfirstlane_uniform 0.18s, startup_compute_readfirstlane 0.68s, startup_compute_readfirstlane_warp 1.80s, startup_compute_readfirstlane_hardware 1.82s)
  • Windows Python checks: tests/mesh_heap_sampler_check.py ok (0.6s), tests/startup_buffer_address_check.py ok (0.4s), tests/startup_buffer_format_word3_table_check.py ok (0.1s), tests/startup_compute_global_load_check.py ok (0.2s), tests/startup_compute_request_offline_check.py ok (0.5s), tests/startup_compute_store_format_xyzw_check.py ok (0.2s), tests/startup_compute_translate_check.py ok (0.2s), tests/startup_flat_param_check.py ok (0.1s), tests/startup_gfx2hlsl_add_sub_co_check.py ok (0.1s), tests/startup_gfx2hlsl_add_sub_co_ci_check.py ok (0.1s), tests/startup_gfx2hlsl_bfm_b64_check.py ok (1.1s), tests/startup_gfx2hlsl_bit_alu_check.py ok (0.6s), tests/startup_gfx2hlsl_capture_check.py ok (1.1s), tests/startup_gfx2hlsl_cmp16_check.py ok (0.3s), tests/startup_gfx2hlsl_cmp_class_f16_sdwa_check.py ok (26.6s), tests/startup_gfx2hlsl_compare_dst_check.py ok (0.1s), tests/startup_gfx2hlsl_compute_check.py ok (0.7s), tests/startup_gfx2hlsl_compute_mask_spill_check.py ok (2.2s), tests/startup_gfx2hlsl_compute_spill_check.py ok (1.7s), tests/startup_gfx2hlsl_const_copy_join_check.py ok (0.1s), tests/startup_gfx2hlsl_cselect_mask_check.py ok (0.1s), tests/startup_gfx2hlsl_cvt_alu_check.py ok (0.2s), tests/startup_gfx2hlsl_cvt_off_f32_i4_check.py ok (0.2s), tests/startup_gfx2hlsl_cvt_pk_int16_check.py ok (0.3s), tests/startup_gfx2hlsl_f32_lg_check.py ok (1.1s), tests/startup_gfx2hlsl_f32_nan_check.py ok (4.1s), tests/startup_gfx2hlsl_fma_mix_check.py ok (0.1s), tests/startup_gfx2hlsl_getpc_refusal_check.py ok (0.1s), tests/startup_gfx2hlsl_handler_arity_check.py ok (0.1s), tests/startup_gfx2hlsl_heap_record_check.py ok (0.2s), tests/startup_gfx2hlsl_heap_word_check.py ok (0.2s), tests/startup_gfx2hlsl_image_arity_check.py ok (0.1s), tests/startup_gfx2hlsl_image_get_lod_check.py ok (0.2s), tests/startup_gfx2hlsl_int_med3_check.py ok (0.1s), tests/startup_gfx2hlsl_interp_p2_hi_check.py ok (0.2s), tests/startup_gfx2hlsl_join_symbols_check.py ok (0.2s), tests/startup_gfx2hlsl_loop_constants_check.py ok (0.1s), tests/startup_gfx2hlsl_mask_data_check.py ok (0.1s), tests/startup_gfx2hlsl_mask_overwrite_check.py ok (0.1s), tests/startup_gfx2hlsl_operand_count_check.py ok (0.3s), tests/startup_gfx2hlsl_pack_absdiff_check.py ok (2.1s), tests/startup_gfx2hlsl_pack_b32_f16_check.py ok (0.1s), tests/startup_gfx2hlsl_readfirstlane_load_recompute_check.py ok (0.1s), tests/startup_gfx2hlsl_readfirstlane_recompute_check.py ok (0.1s), tests/startup_gfx2hlsl_readfirstlane_uniform_check.py ok (0.2s), tests/startup_gfx2hlsl_refusals_check.py ok (0.6s), tests/startup_gfx2hlsl_root_check.py ok (0.8s), tests/startup_gfx2hlsl_s_abs_check.py ok (0.1s), tests/startup_gfx2hlsl_s_bitset_check.py ok (0.1s), tests/startup_gfx2hlsl_s_ff0_check.py ok (0.1s), tests/startup_gfx2hlsl_s_ff1_check.py ok (0.1s), tests/startup_gfx2hlsl_s_flbit_check.py ok (0.1s), tests/startup_gfx2hlsl_s_quadmask_b64_check.py ok (0.1s), tests/startup_gfx2hlsl_s_quadmask_check.py ok (0.1s), tests/startup_gfx2hlsl_sad_check.py ok (0.3s), tests/startup_gfx2hlsl_sad_hi_msad_check.py ok (0.3s), tests/startup_gfx2hlsl_saveexec_same_reg_check.py ok (0.1s), tests/startup_gfx2hlsl_scalar_arity_check.py ok (0.2s), tests/startup_gfx2hlsl_scalar_brev_fold_check.py ok (0.2s), tests/startup_gfx2hlsl_scalar_m0_check.py ok (0.1s), tests/startup_gfx2hlsl_scalar_null_check.py ok (0.2s), tests/startup_gfx2hlsl_scalar_table_arity_check.py ok (0.3s), tests/startup_gfx2hlsl_sdwa_cndmask_check.py ok (0.2s), tests/startup_gfx2hlsl_sdwa_cvt_check.py ok (0.2s), tests/startup_gfx2hlsl_sgpr_spill_check.py ok (0.1s), tests/startup_gfx2hlsl_shift64_check.py ok (0.2s), tests/startup_gfx2hlsl_sload_const_offset_check.py ok (0.1s), tests/startup_gfx2hlsl_smem_offset_check.py ok (0.1s), tests/startup_gfx2hlsl_sop2_complement_check.py ok (4.8s), tests/startup_gfx2hlsl_sopk_accum_check.py ok (1.1s), tests/startup_gfx2hlsl_sopk_signext_check.py ok (0.1s), tests/startup_gfx2hlsl_spill_branches_check.py ok (0.9s), tests/startup_gfx2hlsl_swap_check.py ok (0.3s), tests/startup_gfx2hlsl_vopc_sdwa_check.py ok (3.8s), tests/startup_gfx2hlsl_waitcnt_depctr_check.py ok (0.1s), tests/startup_gfx2hlsl_watch_check.py ok (2.5s), tests/startup_image_2d_array_check.py ok (0.2s), tests/startup_image_3d_check.py ok (0.1s), tests/startup_image_gather_lz_check.py ok (0.5s), tests/startup_image_load_d16_check.py ok (0.8s), tests/startup_image_sample_a16_check.py ok (0.2s), tests/startup_image_sample_b_check.py ok (0.2s), tests/startup_image_sample_c_check.py ok (0.2s), tests/startup_image_sample_l_check.py ok (0.2s), tests/startup_image_sample_lod_check.py ok (0.5s), tests/startup_inline_sampler_check.py ok (0.1s), tests/startup_mesh57_depth_only_check.py ok (0.2s), tests/startup_mesh57_lane_spill_check.py ok (0.2s), tests/startup_mesh57_loop_check.py ok (0.2s), tests/startup_mesh57_loop_refusal_check.py ok (0.1s), tests/startup_mesh57_skeleton_check.py ok (1.1s), tests/startup_run_ps1_check.py ok (11.7s), tests/startup_run_sh_check.py skipped (0.1s), tests/startup_sampler_heap_check.py ok (0.1s), tests/startup_shader_cache_rekey_check.py ok (2.2s), tests/startup_smem_address_check.py ok (0.1s), tests/startup_stream_fetch_check.py ok (0.2s), tests/startup_stream_interface_check.py ok (0.2s), tests/startup_translator_check.py ok (0.4s)
  • sccache: 0/6 hits; wall 171.7s
    tested: 267f56a1 via fetch (pull/2842/head, no patch)

Review of 267f56a1: the earlier CI failure (llvm-mc branch label in the image_load fixture) is fixed; the three touched Python checks and the llvm-mc round trip pass, two code mutations make the new controls fail, and a targeted WARP-vs-CPU check of readfirstlane shapes showed 0 mismatches.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7193540725 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2842#issuecomment-7193540725). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-26T13:34:33Z. --- Win2025 WARP receipt for head 267f56a1. Real-GPU run not available (RunPod stopped). Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit `267f56a199ea0e2ec1c67b6fb0e4adb6945f75d9`: - **Debug (`--preset dev`)**: - Build (`cmake --build --preset dev --target d3d12_xs_device_obj d3d12_xs_shim startup_buffer_format_word3_check -- -j 2`): `26.41s` (configure `0.00s`) - Test (`ctest --preset dev -R 'readfirstlane' --parallel 6 --no-tests=error --output-on-failure`): **6/6 passed** (`2.25s`: `startup_gfx2hlsl_readfirstlane_recompute` `0.17s`, `startup_gfx2hlsl_readfirstlane_load_recompute` `0.18s`, `startup_gfx2hlsl_readfirstlane_uniform` `0.20s`, `startup_compute_readfirstlane` `0.84s`, `startup_compute_readfirstlane_warp` `2.07s`, `startup_compute_readfirstlane_hardware` `2.10s`) - **Release `/O2` (`--preset release`)**: - Build (`cmake --build --preset release --target d3d12_xs_device_obj d3d12_xs_shim startup_buffer_format_word3_check -- -j 2`): `51.88s` (configure `0.00s`) - Test (`ctest --preset release -R 'readfirstlane' --parallel 6 --no-tests=error --output-on-failure`): **6/6 passed** (`1.96s`: `startup_gfx2hlsl_readfirstlane_recompute` `0.13s`, `startup_gfx2hlsl_readfirstlane_load_recompute` `0.15s`, `startup_gfx2hlsl_readfirstlane_uniform` `0.18s`, `startup_compute_readfirstlane` `0.68s`, `startup_compute_readfirstlane_warp` `1.80s`, `startup_compute_readfirstlane_hardware` `1.82s`) - **Windows Python checks**: `tests/mesh_heap_sampler_check.py` ok (`0.6s`), `tests/startup_buffer_address_check.py` ok (`0.4s`), `tests/startup_buffer_format_word3_table_check.py` ok (`0.1s`), `tests/startup_compute_global_load_check.py` ok (`0.2s`), `tests/startup_compute_request_offline_check.py` ok (`0.5s`), `tests/startup_compute_store_format_xyzw_check.py` ok (`0.2s`), `tests/startup_compute_translate_check.py` ok (`0.2s`), `tests/startup_flat_param_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_add_sub_co_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_add_sub_co_ci_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_bfm_b64_check.py` ok (`1.1s`), `tests/startup_gfx2hlsl_bit_alu_check.py` ok (`0.6s`), `tests/startup_gfx2hlsl_capture_check.py` ok (`1.1s`), `tests/startup_gfx2hlsl_cmp16_check.py` ok (`0.3s`), `tests/startup_gfx2hlsl_cmp_class_f16_sdwa_check.py` ok (`26.6s`), `tests/startup_gfx2hlsl_compare_dst_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_compute_check.py` ok (`0.7s`), `tests/startup_gfx2hlsl_compute_mask_spill_check.py` ok (`2.2s`), `tests/startup_gfx2hlsl_compute_spill_check.py` ok (`1.7s`), `tests/startup_gfx2hlsl_const_copy_join_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_cselect_mask_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_cvt_alu_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_cvt_off_f32_i4_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_cvt_pk_int16_check.py` ok (`0.3s`), `tests/startup_gfx2hlsl_f32_lg_check.py` ok (`1.1s`), `tests/startup_gfx2hlsl_f32_nan_check.py` ok (`4.1s`), `tests/startup_gfx2hlsl_fma_mix_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_getpc_refusal_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_handler_arity_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_heap_record_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_heap_word_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_image_arity_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_image_get_lod_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_int_med3_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_interp_p2_hi_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_join_symbols_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_loop_constants_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_mask_data_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_mask_overwrite_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_operand_count_check.py` ok (`0.3s`), `tests/startup_gfx2hlsl_pack_absdiff_check.py` ok (`2.1s`), `tests/startup_gfx2hlsl_pack_b32_f16_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_readfirstlane_load_recompute_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_readfirstlane_recompute_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_readfirstlane_uniform_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_refusals_check.py` ok (`0.6s`), `tests/startup_gfx2hlsl_root_check.py` ok (`0.8s`), `tests/startup_gfx2hlsl_s_abs_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_s_bitset_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_s_ff0_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_s_ff1_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_s_flbit_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_s_quadmask_b64_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_s_quadmask_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_sad_check.py` ok (`0.3s`), `tests/startup_gfx2hlsl_sad_hi_msad_check.py` ok (`0.3s`), `tests/startup_gfx2hlsl_saveexec_same_reg_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_scalar_arity_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_scalar_brev_fold_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_scalar_m0_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_scalar_null_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_scalar_table_arity_check.py` ok (`0.3s`), `tests/startup_gfx2hlsl_sdwa_cndmask_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_sdwa_cvt_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_sgpr_spill_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_shift64_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_sload_const_offset_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_smem_offset_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_sop2_complement_check.py` ok (`4.8s`), `tests/startup_gfx2hlsl_sopk_accum_check.py` ok (`1.1s`), `tests/startup_gfx2hlsl_sopk_signext_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_spill_branches_check.py` ok (`0.9s`), `tests/startup_gfx2hlsl_swap_check.py` ok (`0.3s`), `tests/startup_gfx2hlsl_vopc_sdwa_check.py` ok (`3.8s`), `tests/startup_gfx2hlsl_waitcnt_depctr_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_watch_check.py` ok (`2.5s`), `tests/startup_image_2d_array_check.py` ok (`0.2s`), `tests/startup_image_3d_check.py` ok (`0.1s`), `tests/startup_image_gather_lz_check.py` ok (`0.5s`), `tests/startup_image_load_d16_check.py` ok (`0.8s`), `tests/startup_image_sample_a16_check.py` ok (`0.2s`), `tests/startup_image_sample_b_check.py` ok (`0.2s`), `tests/startup_image_sample_c_check.py` ok (`0.2s`), `tests/startup_image_sample_l_check.py` ok (`0.2s`), `tests/startup_image_sample_lod_check.py` ok (`0.5s`), `tests/startup_inline_sampler_check.py` ok (`0.1s`), `tests/startup_mesh57_depth_only_check.py` ok (`0.2s`), `tests/startup_mesh57_lane_spill_check.py` ok (`0.2s`), `tests/startup_mesh57_loop_check.py` ok (`0.2s`), `tests/startup_mesh57_loop_refusal_check.py` ok (`0.1s`), `tests/startup_mesh57_skeleton_check.py` ok (`1.1s`), `tests/startup_run_ps1_check.py` ok (`11.7s`), `tests/startup_run_sh_check.py` skipped (`0.1s`), `tests/startup_sampler_heap_check.py` ok (`0.1s`), `tests/startup_shader_cache_rekey_check.py` ok (`2.2s`), `tests/startup_smem_address_check.py` ok (`0.1s`), `tests/startup_stream_fetch_check.py` ok (`0.2s`), `tests/startup_stream_interface_check.py` ok (`0.2s`), `tests/startup_translator_check.py` ok (`0.4s`) - `sccache`: 0/6 hits; wall `171.7s` tested: 267f56a1 via fetch (pull/2842/head, no patch) Review of 267f56a1: the earlier CI failure (llvm-mc branch label in the image_load fixture) is fixed; the three touched Python checks and the llvm-mc round trip pass, two code mutations make the new controls fail, and a targeted WARP-vs-CPU check of readfirstlane shapes showed 0 mismatches. AI-assisted; commands listed were executed locally.
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!2834
No description provided.