startup: lower scalar null operand and guard non-SGPR SALU destinations in gfx2hlsl #2698

Manually merged
github merged 1 commit from gh-pr/2698/head into gh-pr/2698/base 2026-11-27 01:15:58 +00:00
Owner

@⁠consolelogkyo on GitHub · 2026-11-26 02:32 UTC · original
consolelogkyo:feat/startup-scalar-null → main · +733 −9 · 6 files · 1 commits · merged 2026-11-26 02:39 UTC

Summary

Lowers the RDNA 2 null scalar operand (code 125) and replaces reg_range(...)[1] TypeError crashes on non-SGPR scalar destinations in tools/startup/gfx2hlsl.py with explicit Unsupported refusals:

  • 32-bit null source (code 125): Stage.u, Stage.const_u32, Stage.uniform_source, Stage.scalar_const, SCALAR_CONST_FOLD, scalar_bitset, op_s_bfm_b32, and VOP3_ONLY_VEC_U in Stage.lower read null as wave-uniform 0x00000000u (per AMD RDNA 2 ISA §3.2 / Table 26: reads of null return 0).
  • 32-bit null destination in Stage.scalar and op_s_bfm_b32: plain 32-bit numeric/constant SALU writes to null discard the destination register write while still emitting modeled SCC updates (s_and_b32, s_or_b32, s_xor_b32, s_andn2_b32, s_orn2_b32, s_not_b32, s_nand_b32, s_nor_b32, s_xnor_b32, s_lshl_b32, s_lshr_b32, s_ashr_i32, s_bfe_u32, s_absdiff_i32) and leaving SCC untouched on non-SCC operations (s_mov_b32, s_movk_i32, s_brev_b32, s_mul_i32, s_bfm_b32). s_lshl1..4_add_u32, PACK_B16 / s_sext_* / s_mul_hi_*, and s_cselect_b32 retain their pinned null destination refusals.
  • Explicit Unsupported refusals replacing TypeError (#2618 E rows):
    • _b64 operations (s_and_b64 null, exec, s[0:1], s_and_b64 null, s[0:1], s[2:3], etc.) and 32-bit lane-mask sources (exec_lo, vcc_lo, compare-mask SGPRs) into null raise <op> into null on a lane mask or <op> into null instead of TypeError (preserving soundness where wave-wide or 64-bit SCC differs from a single lane's low-word bit).
    • SCC_UNMODELLED operations (s_add_u32, s_add_i32, s_sub_u32, s_sub_i32, s_min_*, s_max_*) into null raise <op> into null: SCC is not modelled rather than silently dropping their carry/overflow/select flag.
    • Descriptor/pointer sources into null and unmodelled non-SGPR destinations (vcc_hi, exec_hi, ttmp*, plus vcc_lo/exec_lo in op_s_bfm_b32) raise specific Unsupported reasons instead of TypeError.

Refs #2618, #1723, #2463.

Verification

Added tests/startup_gfx2hlsl_scalar_null_check.py (source-built synthetic encodings only; wired into CMakeLists.txt, .github/workflows/windows.yml for Linux llvm-mc-15 + libLLVM-15.so.1 and Linux Python checks, AGENTS.md, and docs/experiments.md):

  • startup_gfx2hlsl_scalar_null_controls: PASSED (14 32-bit SCC-writing SALU ops into null across boundary pairs reaching both SCC=0 and SCC=1, non-SCC null discards, null-source constant folding + UNIFORM_VALU v_readfirstlane_b32 + ComputePipeline, refusal sweep across all 48 SCA ops + s_bfm_b32 on vcc_hi/exec_hi/ttmp0/null, and unlowered negative control).
  • startup_gfx2hlsl_scalar_null_warp (Microsoft Basic Render Driver 1414:008c, driver 10.0.26100.9818, debug_layer=enabled, debug_errors=0 debug_warnings=0): PASSED (4 pixel draws across FXC ps_5_1 + DXC ps_6_0 + 6 pixel mutations caught; 4 runtime root-constant SALU null-destination + s_cbranch_scc0 buffer readback runs + 4 HLSL mutations caught).
  • startup_gfx2hlsl_scalar_null_hardware (AMD Radeon RX 9070 XT 1002:7550, driver 32.0.32029.2010, debug_layer=enabled, debug_errors=0 debug_warnings=0): PASSED (same 4 pixel draws + 6 pixel mutations + 4 root-constant runs + 4 HLSL mutations).
  • Full startup_gfx2hlsl_* pure-Python suite, startup_translator, docs_links, and bidi_controls: PASSED.

AI-assisted.

**@⁠consolelogkyo** on GitHub · 2026-11-26 02:32 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2698) `consolelogkyo:feat/startup-scalar-null` → `main` · +733 −9 · 6 files · 1 commits · merged 2026-11-26 02:39 UTC ## Summary Lowers the RDNA 2 `null` scalar operand (`code 125`) and replaces `reg_range(...)[1]` `TypeError` crashes on non-SGPR scalar destinations in `tools/startup/gfx2hlsl.py` with explicit `Unsupported` refusals: - **32-bit `null` source (`code 125`)**: `Stage.u`, `Stage.const_u32`, `Stage.uniform_source`, `Stage.scalar_const`, `SCALAR_CONST_FOLD`, `scalar_bitset`, `op_s_bfm_b32`, and `VOP3_ONLY_VEC_U` in `Stage.lower` read `null` as wave-uniform `0x00000000u` (per AMD RDNA 2 ISA §3.2 / Table 26: reads of `null` return `0`). - **32-bit `null` destination in `Stage.scalar` and `op_s_bfm_b32`**: plain 32-bit numeric/constant SALU writes to `null` discard the destination register write while still emitting modeled `SCC` updates (`s_and_b32`, `s_or_b32`, `s_xor_b32`, `s_andn2_b32`, `s_orn2_b32`, `s_not_b32`, `s_nand_b32`, `s_nor_b32`, `s_xnor_b32`, `s_lshl_b32`, `s_lshr_b32`, `s_ashr_i32`, `s_bfe_u32`, `s_absdiff_i32`) and leaving `SCC` untouched on non-SCC operations (`s_mov_b32`, `s_movk_i32`, `s_brev_b32`, `s_mul_i32`, `s_bfm_b32`). `s_lshl1..4_add_u32`, `PACK_B16` / `s_sext_*` / `s_mul_hi_*`, and `s_cselect_b32` retain their pinned `null` destination refusals. - **Explicit `Unsupported` refusals replacing `TypeError` (#2618 `E` rows)**: - `_b64` operations (`s_and_b64 null, exec, s[0:1]`, `s_and_b64 null, s[0:1], s[2:3]`, etc.) and 32-bit lane-mask sources (`exec_lo`, `vcc_lo`, compare-mask SGPRs) into `null` raise `<op> into null on a lane mask` or `<op> into null` instead of `TypeError` (preserving soundness where wave-wide or 64-bit `SCC` differs from a single lane's low-word bit). - `SCC_UNMODELLED` operations (`s_add_u32`, `s_add_i32`, `s_sub_u32`, `s_sub_i32`, `s_min_*`, `s_max_*`) into `null` raise `<op> into null: SCC is not modelled` rather than silently dropping their carry/overflow/select flag. - Descriptor/pointer sources into `null` and unmodelled non-SGPR destinations (`vcc_hi`, `exec_hi`, `ttmp*`, plus `vcc_lo`/`exec_lo` in `op_s_bfm_b32`) raise specific `Unsupported` reasons instead of `TypeError`. Refs #2618, #1723, #2463. ## Verification Added [`tests/startup_gfx2hlsl_scalar_null_check.py`](tests/startup_gfx2hlsl_scalar_null_check.py) (source-built synthetic encodings only; wired into `CMakeLists.txt`, `.github/workflows/windows.yml` for Linux `llvm-mc-15` + `libLLVM-15.so.1` and Linux Python checks, `AGENTS.md`, and `docs/experiments.md`): - `startup_gfx2hlsl_scalar_null_controls`: **PASSED** (14 32-bit SCC-writing SALU ops into `null` across boundary pairs reaching both `SCC=0` and `SCC=1`, non-SCC `null` discards, `null`-source constant folding + `UNIFORM_VALU` `v_readfirstlane_b32` + `ComputePipeline`, refusal sweep across all 48 `SCA` ops + `s_bfm_b32` on `vcc_hi`/`exec_hi`/`ttmp0`/`null`, and unlowered negative control). - `startup_gfx2hlsl_scalar_null_warp` (`Microsoft Basic Render Driver` `1414:008c`, driver `10.0.26100.9818`, `debug_layer=enabled`, `debug_errors=0 debug_warnings=0`): **PASSED** (4 pixel draws across `FXC ps_5_1` + `DXC ps_6_0` + 6 pixel mutations caught; 4 runtime root-constant SALU `null`-destination + `s_cbranch_scc0` buffer readback runs + 4 HLSL mutations caught). - `startup_gfx2hlsl_scalar_null_hardware` (`AMD Radeon RX 9070 XT` `1002:7550`, driver `32.0.32029.2010`, `debug_layer=enabled`, `debug_errors=0 debug_warnings=0`): **PASSED** (same 4 pixel draws + 6 pixel mutations + 4 root-constant runs + 4 HLSL mutations). - Full `startup_gfx2hlsl_*` pure-Python suite, `startup_translator`, `docs_links`, and `bidi_controls`: **PASSED**. AI-assisted.
Lower the RDNA 2 `null` scalar operand (`code 125`) and replace
`reg_range(...)[1]` `TypeError` crashes on non-SGPR scalar destinations
with explicit `Unsupported` refusals in `tools/startup/gfx2hlsl.py`:

- Read `null` (`125`) as wave-uniform `0x00000000u` in `Stage.u`,
  `Stage.const_u32`, `Stage.uniform_source`, `Stage.scalar_const`,
  `SCALAR_CONST_FOLD`, `scalar_bitset`, `op_s_bfm_b32`, and
  `VOP3_ONLY_VEC_U` in `Stage.lower`.
- Lower 32-bit plain numeric/constant SALU writes to `null` in
  `Stage.scalar` and `op_s_bfm_b32`, discarding the register write while
  still emitting modeled `SCC` updates (`s_and_b32`, `s_or_b32`,
  `s_xor_b32`, `s_andn2_b32`, `s_orn2_b32`, `s_not_b32`, `s_nand_b32`,
  `s_nor_b32`, `s_xnor_b32`, `s_lshl_b32`, `s_lshr_b32`, `s_ashr_i32`,
  `s_bfe_u32`, `s_absdiff_i32`) and preserving `SCC` on non-SCC writes
  (`s_mov_b32`, `s_movk_i32`, `s_brev_b32`, `s_mul_i32`, `s_bfm_b32`).
- Refuse `_b64`, lane-mask (`exec`/`vcc`/mask SGPR), `SCC_UNMODELLED`,
  and descriptor/pointer writes to `null`, as well as unmodelled scalar
  destinations (`vcc_hi`, `exec_hi`, `ttmp*`), with explicit
  `gfx2hlsl.Unsupported` reasons instead of `TypeError`.

Add `tests/startup_gfx2hlsl_scalar_null_check.py` covering LLVM 15
`llvm-mc` / `libLLVM` round-trips, boundary `SCC` evaluation across all
14 32-bit SCC-writing SALU ops, destination refusal sweeps across all 48
`SCA` ops plus `s_bfm_b32`, and WARP / hardware D3D12 pixel draws (`FXC
ps_5_1` + `DXC ps_6_0`) and root-constant SALU+branch buffer readbacks
with negative controls.

Refs #2618, #1723, #2463.

AI-assisted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 01:15:51 +00:00
github manually merged commit 909082fbd4 into gh-pr/2698/base 2026-11-27 01:15:58 +00:00
Author
Owner

@⁠tedin7 on GitHub · 2026-11-26 02:35 UTC · original · reviewed

Review of head 909082fb: no blocking findings.

What I checked:

  • null as a source reads as 0u in Stage.u, const_u32, the uniform test and the constant folder. As a destination, a 32-bit SALU op only updates SCC. 64-bit pairs, lane-mask sources and ops whose SCC is not modelled are refused.
  • Non-SGPR destinations now raise Unsupported before reg_range(...)[1] is read. This covers the address-carry s_add_u32 path and the descriptor-data path, so a TypeError crash becomes a clean refusal.
  • The test draws on WARP/hardware and reads back a root-constant buffer against a CPU reference, with negative controls. It is registered in CMakeLists.txt, AGENTS.md and windows.yml.
  • No other open or merged PR covers the scalar null operand in gfx2hlsl. #264 and #777 cover the disassembler and pixel_aot.

Commands (Linux, on 909082fb):

  • python3 tests/startup_gfx2hlsl_scalar_null_check.py: ok
  • python3 tests/startup_gfx2hlsl_scalar_table_arity_check.py: 0 failed
  • python3 tests/startup_gfx2hlsl_compute_check.py: ok
  • python3 tests/docs_links_check.py, python3 tests/bidi_controls_check.py, git diff --check origin/main...HEAD: clean
  • Mutation 1: drop the SCC update on a null destination. The check fails.
  • Mutation 2: read a null source as 1u instead of 0u. The check fails. Both were reverted.

The Win2025 dev + release run on this head is in progress. A receipt will follow.

AI-assisted; commands listed were executed locally.

**@⁠tedin7** on GitHub · 2026-11-26 02:35 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2698#pullrequestreview-6067805941) · **reviewed** Review of head `909082fb`: no blocking findings. What I checked: - `null` as a source reads as `0u` in `Stage.u`, `const_u32`, the uniform test and the constant folder. As a destination, a 32-bit SALU op only updates SCC. 64-bit pairs, lane-mask sources and ops whose SCC is not modelled are refused. - Non-SGPR destinations now raise `Unsupported` before `reg_range(...)[1]` is read. This covers the address-carry `s_add_u32` path and the descriptor-data path, so a `TypeError` crash becomes a clean refusal. - The test draws on WARP/hardware and reads back a root-constant buffer against a CPU reference, with negative controls. It is registered in `CMakeLists.txt`, `AGENTS.md` and `windows.yml`. - No other open or merged PR covers the scalar `null` operand in gfx2hlsl. #264 and #777 cover the disassembler and pixel_aot. Commands (Linux, on `909082fb`): - `python3 tests/startup_gfx2hlsl_scalar_null_check.py`: ok - `python3 tests/startup_gfx2hlsl_scalar_table_arity_check.py`: 0 failed - `python3 tests/startup_gfx2hlsl_compute_check.py`: ok - `python3 tests/docs_links_check.py`, `python3 tests/bidi_controls_check.py`, `git diff --check origin/main...HEAD`: clean - Mutation 1: drop the SCC update on a `null` destination. The check fails. - Mutation 2: read a `null` source as `1u` instead of `0u`. The check fails. Both were reverted. The Win2025 dev + release run on this head is in progress. A receipt will follow. AI-assisted; commands listed were executed locally.
Author
Owner

@⁠tedin7 on GitHub · 2026-11-26 02:37 UTC · original

Thanks for opening this, it answers the overlap I raised on #1723. We will not open a competing PR for the null operand or the non-SGPR destination guards; this one covers them.

We have one small extra piece we would like to add on top once this is merged: in wave32, vcc_hi is not part of the lane mask, so a scalar write to it can be lowered as an ordinary scalar register instead of being refused. It stays refused when the program could run as wave64 and reads VCC as a mask. It will come as a separate Draft PR on top of main, with a WARP readback test, so this PR does not need to change.

If you would rather fold that case into this PR yourself, just say so here and we will share the test words.

AI-assisted; commands listed were executed locally.

**@⁠tedin7** on GitHub · 2026-11-26 02:37 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2698#issuecomment-7180968072) Thanks for opening this, it answers the overlap I raised on #1723. We will not open a competing PR for the null operand or the non-SGPR destination guards; this one covers them. We have one small extra piece we would like to add on top once this is merged: in wave32, `vcc_hi` is not part of the lane mask, so a scalar write to it can be lowered as an ordinary scalar register instead of being refused. It stays refused when the program could run as wave64 and reads VCC as a mask. It will come as a separate Draft PR on top of `main`, with a WARP readback test, so this PR does not need to change. If you would rather fold that case into this PR yourself, just say so here and we will share the test words. AI-assisted; commands listed were executed locally.
Author
Owner

@⁠tedin7 on GitHub · 2026-11-26 02:39 UTC · original

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

  • Debug (--preset dev):
    • Build (cmake --build --preset dev --target offscreen_check -- -j 2): 4.15s (configure 4.36s)
    • Test (ctest --preset dev -R '^startup_gfx2hlsl_(scalar_null|scalar_table_arity|compute)' --parallel 2 --no-tests=error --output-on-failure): 35/35 passed (14.20s: startup_gfx2hlsl_compute_warp 3.78s, startup_gfx2hlsl_compute_hardware 3.84s, startup_gfx2hlsl_compute_b-offset_hardware 0.43s, startup_gfx2hlsl_compute_dropped-store_hardware 0.45s, startup_gfx2hlsl_compute_dropped-store_warp 0.42s, startup_gfx2hlsl_compute_c-unpredicated_warp 0.46s, startup_gfx2hlsl_compute_c-unpredicated_hardware 0.46s, startup_gfx2hlsl_compute_swapped-axes_warp 0.45s, startup_gfx2hlsl_compute_swapped-axes_hardware 0.43s, startup_gfx2hlsl_compute_b-offset_warp 0.43s, startup_gfx2hlsl_compute_mbcnt_warp 0.96s, startup_gfx2hlsl_compute_controls 0.81s, startup_gfx2hlsl_compute_mbcnt_hardware 1.02s, startup_gfx2hlsl_compute_f-peer_warp 0.46s, startup_gfx2hlsl_compute_f-broadcast_warp 0.39s, startup_gfx2hlsl_compute_f-broadcast_hardware 0.41s, startup_gfx2hlsl_compute_k-block-entered_warp 0.40s, startup_gfx2hlsl_compute_k-block-entered_hardware 0.40s, startup_gfx2hlsl_compute_g-swapped-offsets_hardware 0.40s, startup_gfx2hlsl_compute_h-inner-unpredicated_hardware 0.41s, startup_gfx2hlsl_compute_h-inner-unpredicated_warp 0.37s, startup_gfx2hlsl_compute_f-peer_hardware 0.43s, startup_gfx2hlsl_compute_g-overlap_warp 0.42s, startup_gfx2hlsl_compute_j-scalar-dropped_warp 0.34s, startup_gfx2hlsl_compute_g-overlap_hardware 0.40s, startup_gfx2hlsl_compute_g-swapped-offsets_warp 0.39s, startup_gfx2hlsl_compute_j-scalar-dropped_hardware 0.41s, startup_gfx2hlsl_scalar_table_arity 0.53s, startup_gfx2hlsl_scalar_null_controls 0.35s, startup_gfx2hlsl_scalar_null_warp 2.87s, startup_gfx2hlsl_scalar_null_hardware 2.81s, startup_gfx2hlsl_compute_m-else-unswitched_warp 0.41s, startup_gfx2hlsl_compute_n-dropped-broadcast_warp 0.38s, startup_gfx2hlsl_compute_m-else-unswitched_hardware 0.34s, startup_gfx2hlsl_compute_n-dropped-broadcast_hardware 0.40s)
  • Release /O2 (--preset release):
    • Build (cmake --build --preset release --target offscreen_check -- -j 2): 14.22s (configure 4.50s)
    • Test (ctest --preset release -R '^startup_gfx2hlsl_(scalar_null|scalar_table_arity|compute)' --parallel 2 --no-tests=error --output-on-failure): 35/35 passed (13.90s: startup_gfx2hlsl_compute_warp 3.24s, startup_gfx2hlsl_compute_hardware 3.37s, startup_gfx2hlsl_compute_dropped-store_hardware 0.42s, startup_gfx2hlsl_compute_mbcnt_warp 0.93s, startup_gfx2hlsl_compute_b-offset_warp 0.42s, startup_gfx2hlsl_compute_swapped-axes_hardware 0.42s, startup_gfx2hlsl_compute_c-unpredicated_warp 0.42s, startup_gfx2hlsl_compute_b-offset_hardware 0.43s, startup_gfx2hlsl_compute_dropped-store_warp 0.43s, startup_gfx2hlsl_compute_c-unpredicated_hardware 0.46s, startup_gfx2hlsl_compute_swapped-axes_warp 0.40s, startup_gfx2hlsl_compute_controls 0.81s, startup_gfx2hlsl_compute_h-inner-unpredicated_warp 0.40s, startup_gfx2hlsl_compute_f-peer_warp 0.41s, startup_gfx2hlsl_compute_mbcnt_hardware 0.94s, startup_gfx2hlsl_compute_f-broadcast_warp 0.43s, startup_gfx2hlsl_compute_g-swapped-offsets_hardware 0.44s, startup_gfx2hlsl_compute_j-scalar-dropped_warp 0.44s, startup_gfx2hlsl_compute_k-block-entered_warp 0.42s, startup_gfx2hlsl_compute_g-overlap_warp 0.43s, startup_gfx2hlsl_compute_g-swapped-offsets_warp 0.40s, startup_gfx2hlsl_compute_k-block-entered_hardware 0.43s, startup_gfx2hlsl_compute_f-broadcast_hardware 0.39s, startup_gfx2hlsl_compute_g-overlap_hardware 0.38s, startup_gfx2hlsl_compute_f-peer_hardware 0.42s, startup_gfx2hlsl_compute_j-scalar-dropped_hardware 0.44s, startup_gfx2hlsl_compute_h-inner-unpredicated_hardware 0.43s, startup_gfx2hlsl_scalar_null_controls 0.33s, startup_gfx2hlsl_scalar_table_arity 0.57s, startup_gfx2hlsl_scalar_null_hardware 2.90s, startup_gfx2hlsl_scalar_null_warp 3.13s, startup_gfx2hlsl_compute_m-else-unswitched_warp 0.44s, startup_gfx2hlsl_compute_n-dropped-broadcast_warp 0.44s, startup_gfx2hlsl_compute_m-else-unswitched_hardware 0.44s, startup_gfx2hlsl_compute_n-dropped-broadcast_hardware 0.43s)
  • Windows Python checks: tests/mesh_heap_sampler_check.py ok (1.4s), tests/startup_buffer_address_check.py ok (0.9s), tests/startup_buffer_format_word3_table_check.py ok (0.2s), tests/startup_compute_request_offline_check.py ok (0.9s), tests/startup_compute_store_format_xyzw_check.py ok (0.5s), tests/startup_compute_translate_check.py ok (0.4s), tests/startup_flat_param_check.py ok (0.4s), tests/startup_gfx2hlsl_add_sub_co_check.py ok (0.4s), tests/startup_gfx2hlsl_add_sub_co_ci_check.py ok (0.2s), tests/startup_gfx2hlsl_bit_alu_check.py ok (1.2s), tests/startup_gfx2hlsl_capture_check.py ok (1.8s), tests/startup_gfx2hlsl_cmp16_check.py ok (0.5s), tests/startup_gfx2hlsl_compare_dst_check.py ok (0.1s), tests/startup_gfx2hlsl_compute_check.py ok (0.7s), tests/startup_gfx2hlsl_cselect_mask_check.py ok (0.2s), tests/startup_gfx2hlsl_cvt_alu_check.py ok (0.3s), tests/startup_gfx2hlsl_cvt_off_f32_i4_check.py ok (0.3s), tests/startup_gfx2hlsl_cvt_pk_int16_check.py ok (0.4s), tests/startup_gfx2hlsl_f32_lg_check.py ok (2.1s), tests/startup_gfx2hlsl_f32_nan_check.py ok (8.5s), tests/startup_gfx2hlsl_fma_mix_check.py ok (0.2s), tests/startup_gfx2hlsl_getpc_refusal_check.py ok (0.2s), tests/startup_gfx2hlsl_handler_arity_check.py ok (0.1s), tests/startup_gfx2hlsl_heap_record_check.py ok (0.3s), tests/startup_gfx2hlsl_image_arity_check.py ok (0.2s), tests/startup_gfx2hlsl_image_get_lod_check.py ok (0.3s), tests/startup_gfx2hlsl_int_med3_check.py ok (0.2s), tests/startup_gfx2hlsl_interp_p2_hi_check.py ok (0.4s), tests/startup_gfx2hlsl_join_symbols_check.py ok (0.4s), tests/startup_gfx2hlsl_loop_constants_check.py ok (0.2s), tests/startup_gfx2hlsl_mask_data_check.py ok (0.3s), tests/startup_gfx2hlsl_mask_overwrite_check.py ok (0.2s), tests/startup_gfx2hlsl_operand_count_check.py ok (0.6s), tests/startup_gfx2hlsl_pack_absdiff_check.py ok (4.0s), tests/startup_gfx2hlsl_pack_b32_f16_check.py ok (0.2s), 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 (1.0s), tests/startup_gfx2hlsl_root_check.py ok (1.1s), tests/startup_gfx2hlsl_s_abs_check.py ok (0.2s), tests/startup_gfx2hlsl_s_bitset_check.py ok (0.2s), tests/startup_gfx2hlsl_s_ff1_check.py ok (0.2s), tests/startup_gfx2hlsl_s_flbit_check.py ok (0.2s), tests/startup_gfx2hlsl_sad_check.py ok (0.5s), tests/startup_gfx2hlsl_saveexec_same_reg_check.py ok (0.2s), tests/startup_gfx2hlsl_scalar_arity_check.py ok (0.3s), tests/startup_gfx2hlsl_scalar_brev_fold_check.py ok (0.2s), tests/startup_gfx2hlsl_scalar_m0_check.py ok (0.2s), tests/startup_gfx2hlsl_scalar_null_check.py ok (0.3s), tests/startup_gfx2hlsl_scalar_table_arity_check.py ok (0.5s), tests/startup_gfx2hlsl_sdwa_cndmask_check.py ok (0.3s), tests/startup_gfx2hlsl_sdwa_cvt_check.py ok (0.4s), tests/startup_gfx2hlsl_sgpr_spill_check.py ok (0.2s), tests/startup_gfx2hlsl_shift64_check.py ok (0.3s), 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 (8.7s), tests/startup_gfx2hlsl_sopk_accum_check.py ok (1.5s), tests/startup_gfx2hlsl_sopk_signext_check.py ok (0.2s), tests/startup_gfx2hlsl_swap_check.py ok (0.5s), tests/startup_gfx2hlsl_vopc_sdwa_check.py ok (6.7s), tests/startup_gfx2hlsl_waitcnt_depctr_check.py ok (0.1s), tests/startup_gfx2hlsl_watch_check.py ok (3.0s), tests/startup_image_2d_array_check.py ok (0.3s), tests/startup_image_3d_check.py ok (0.3s), tests/startup_image_gather_lz_check.py ok (0.9s), tests/startup_image_load_d16_check.py ok (1.6s), tests/startup_image_sample_a16_check.py ok (0.3s), tests/startup_image_sample_b_check.py ok (0.4s), tests/startup_image_sample_c_check.py ok (0.4s), tests/startup_image_sample_l_check.py ok (0.3s), tests/startup_image_sample_lod_check.py ok (1.0s), tests/startup_inline_sampler_check.py ok (0.2s), tests/startup_mesh57_depth_only_check.py ok (0.3s), tests/startup_mesh57_loop_refusal_check.py ok (0.2s), tests/startup_mesh57_skeleton_check.py ok (1.7s), tests/startup_run_ps1_check.py ok (15.9s), tests/startup_run_sh_check.py skipped (0.1s), tests/startup_sampler_heap_check.py ok (0.3s), tests/startup_shader_cache_rekey_check.py ok (4.5s), tests/startup_smem_address_check.py ok (0.3s), tests/startup_stream_fetch_check.py ok (0.3s), tests/startup_stream_interface_check.py ok (0.4s), tests/startup_translator_check.py ok (0.8s)
  • sccache: 13/20 hits; wall 138.6s

AI-assisted; commands listed were executed locally.

**@⁠tedin7** on GitHub · 2026-11-26 02:39 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2698#issuecomment-7180996229) Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit `909082fbd40af2af861520e1bd6a07fd8c3d88fd`: - **Debug (`--preset dev`)**: - Build (`cmake --build --preset dev --target offscreen_check -- -j 2`): `4.15s` (configure `4.36s`) - Test (`ctest --preset dev -R '^startup_gfx2hlsl_(scalar_null|scalar_table_arity|compute)' --parallel 2 --no-tests=error --output-on-failure`): **35/35 passed** (`14.20s`: `startup_gfx2hlsl_compute_warp` `3.78s`, `startup_gfx2hlsl_compute_hardware` `3.84s`, `startup_gfx2hlsl_compute_b-offset_hardware` `0.43s`, `startup_gfx2hlsl_compute_dropped-store_hardware` `0.45s`, `startup_gfx2hlsl_compute_dropped-store_warp` `0.42s`, `startup_gfx2hlsl_compute_c-unpredicated_warp` `0.46s`, `startup_gfx2hlsl_compute_c-unpredicated_hardware` `0.46s`, `startup_gfx2hlsl_compute_swapped-axes_warp` `0.45s`, `startup_gfx2hlsl_compute_swapped-axes_hardware` `0.43s`, `startup_gfx2hlsl_compute_b-offset_warp` `0.43s`, `startup_gfx2hlsl_compute_mbcnt_warp` `0.96s`, `startup_gfx2hlsl_compute_controls` `0.81s`, `startup_gfx2hlsl_compute_mbcnt_hardware` `1.02s`, `startup_gfx2hlsl_compute_f-peer_warp` `0.46s`, `startup_gfx2hlsl_compute_f-broadcast_warp` `0.39s`, `startup_gfx2hlsl_compute_f-broadcast_hardware` `0.41s`, `startup_gfx2hlsl_compute_k-block-entered_warp` `0.40s`, `startup_gfx2hlsl_compute_k-block-entered_hardware` `0.40s`, `startup_gfx2hlsl_compute_g-swapped-offsets_hardware` `0.40s`, `startup_gfx2hlsl_compute_h-inner-unpredicated_hardware` `0.41s`, `startup_gfx2hlsl_compute_h-inner-unpredicated_warp` `0.37s`, `startup_gfx2hlsl_compute_f-peer_hardware` `0.43s`, `startup_gfx2hlsl_compute_g-overlap_warp` `0.42s`, `startup_gfx2hlsl_compute_j-scalar-dropped_warp` `0.34s`, `startup_gfx2hlsl_compute_g-overlap_hardware` `0.40s`, `startup_gfx2hlsl_compute_g-swapped-offsets_warp` `0.39s`, `startup_gfx2hlsl_compute_j-scalar-dropped_hardware` `0.41s`, `startup_gfx2hlsl_scalar_table_arity` `0.53s`, `startup_gfx2hlsl_scalar_null_controls` `0.35s`, `startup_gfx2hlsl_scalar_null_warp` `2.87s`, `startup_gfx2hlsl_scalar_null_hardware` `2.81s`, `startup_gfx2hlsl_compute_m-else-unswitched_warp` `0.41s`, `startup_gfx2hlsl_compute_n-dropped-broadcast_warp` `0.38s`, `startup_gfx2hlsl_compute_m-else-unswitched_hardware` `0.34s`, `startup_gfx2hlsl_compute_n-dropped-broadcast_hardware` `0.40s`) - **Release `/O2` (`--preset release`)**: - Build (`cmake --build --preset release --target offscreen_check -- -j 2`): `14.22s` (configure `4.50s`) - Test (`ctest --preset release -R '^startup_gfx2hlsl_(scalar_null|scalar_table_arity|compute)' --parallel 2 --no-tests=error --output-on-failure`): **35/35 passed** (`13.90s`: `startup_gfx2hlsl_compute_warp` `3.24s`, `startup_gfx2hlsl_compute_hardware` `3.37s`, `startup_gfx2hlsl_compute_dropped-store_hardware` `0.42s`, `startup_gfx2hlsl_compute_mbcnt_warp` `0.93s`, `startup_gfx2hlsl_compute_b-offset_warp` `0.42s`, `startup_gfx2hlsl_compute_swapped-axes_hardware` `0.42s`, `startup_gfx2hlsl_compute_c-unpredicated_warp` `0.42s`, `startup_gfx2hlsl_compute_b-offset_hardware` `0.43s`, `startup_gfx2hlsl_compute_dropped-store_warp` `0.43s`, `startup_gfx2hlsl_compute_c-unpredicated_hardware` `0.46s`, `startup_gfx2hlsl_compute_swapped-axes_warp` `0.40s`, `startup_gfx2hlsl_compute_controls` `0.81s`, `startup_gfx2hlsl_compute_h-inner-unpredicated_warp` `0.40s`, `startup_gfx2hlsl_compute_f-peer_warp` `0.41s`, `startup_gfx2hlsl_compute_mbcnt_hardware` `0.94s`, `startup_gfx2hlsl_compute_f-broadcast_warp` `0.43s`, `startup_gfx2hlsl_compute_g-swapped-offsets_hardware` `0.44s`, `startup_gfx2hlsl_compute_j-scalar-dropped_warp` `0.44s`, `startup_gfx2hlsl_compute_k-block-entered_warp` `0.42s`, `startup_gfx2hlsl_compute_g-overlap_warp` `0.43s`, `startup_gfx2hlsl_compute_g-swapped-offsets_warp` `0.40s`, `startup_gfx2hlsl_compute_k-block-entered_hardware` `0.43s`, `startup_gfx2hlsl_compute_f-broadcast_hardware` `0.39s`, `startup_gfx2hlsl_compute_g-overlap_hardware` `0.38s`, `startup_gfx2hlsl_compute_f-peer_hardware` `0.42s`, `startup_gfx2hlsl_compute_j-scalar-dropped_hardware` `0.44s`, `startup_gfx2hlsl_compute_h-inner-unpredicated_hardware` `0.43s`, `startup_gfx2hlsl_scalar_null_controls` `0.33s`, `startup_gfx2hlsl_scalar_table_arity` `0.57s`, `startup_gfx2hlsl_scalar_null_hardware` `2.90s`, `startup_gfx2hlsl_scalar_null_warp` `3.13s`, `startup_gfx2hlsl_compute_m-else-unswitched_warp` `0.44s`, `startup_gfx2hlsl_compute_n-dropped-broadcast_warp` `0.44s`, `startup_gfx2hlsl_compute_m-else-unswitched_hardware` `0.44s`, `startup_gfx2hlsl_compute_n-dropped-broadcast_hardware` `0.43s`) - **Windows Python checks**: `tests/mesh_heap_sampler_check.py` ok (`1.4s`), `tests/startup_buffer_address_check.py` ok (`0.9s`), `tests/startup_buffer_format_word3_table_check.py` ok (`0.2s`), `tests/startup_compute_request_offline_check.py` ok (`0.9s`), `tests/startup_compute_store_format_xyzw_check.py` ok (`0.5s`), `tests/startup_compute_translate_check.py` ok (`0.4s`), `tests/startup_flat_param_check.py` ok (`0.4s`), `tests/startup_gfx2hlsl_add_sub_co_check.py` ok (`0.4s`), `tests/startup_gfx2hlsl_add_sub_co_ci_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_bit_alu_check.py` ok (`1.2s`), `tests/startup_gfx2hlsl_capture_check.py` ok (`1.8s`), `tests/startup_gfx2hlsl_cmp16_check.py` ok (`0.5s`), `tests/startup_gfx2hlsl_compare_dst_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_compute_check.py` ok (`0.7s`), `tests/startup_gfx2hlsl_cselect_mask_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_cvt_alu_check.py` ok (`0.3s`), `tests/startup_gfx2hlsl_cvt_off_f32_i4_check.py` ok (`0.3s`), `tests/startup_gfx2hlsl_cvt_pk_int16_check.py` ok (`0.4s`), `tests/startup_gfx2hlsl_f32_lg_check.py` ok (`2.1s`), `tests/startup_gfx2hlsl_f32_nan_check.py` ok (`8.5s`), `tests/startup_gfx2hlsl_fma_mix_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_getpc_refusal_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_handler_arity_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_heap_record_check.py` ok (`0.3s`), `tests/startup_gfx2hlsl_image_arity_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_image_get_lod_check.py` ok (`0.3s`), `tests/startup_gfx2hlsl_int_med3_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_interp_p2_hi_check.py` ok (`0.4s`), `tests/startup_gfx2hlsl_join_symbols_check.py` ok (`0.4s`), `tests/startup_gfx2hlsl_loop_constants_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_mask_data_check.py` ok (`0.3s`), `tests/startup_gfx2hlsl_mask_overwrite_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_operand_count_check.py` ok (`0.6s`), `tests/startup_gfx2hlsl_pack_absdiff_check.py` ok (`4.0s`), `tests/startup_gfx2hlsl_pack_b32_f16_check.py` ok (`0.2s`), `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 (`1.0s`), `tests/startup_gfx2hlsl_root_check.py` ok (`1.1s`), `tests/startup_gfx2hlsl_s_abs_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_s_bitset_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_s_ff1_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_s_flbit_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_sad_check.py` ok (`0.5s`), `tests/startup_gfx2hlsl_saveexec_same_reg_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_scalar_arity_check.py` ok (`0.3s`), `tests/startup_gfx2hlsl_scalar_brev_fold_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_scalar_m0_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_scalar_null_check.py` ok (`0.3s`), `tests/startup_gfx2hlsl_scalar_table_arity_check.py` ok (`0.5s`), `tests/startup_gfx2hlsl_sdwa_cndmask_check.py` ok (`0.3s`), `tests/startup_gfx2hlsl_sdwa_cvt_check.py` ok (`0.4s`), `tests/startup_gfx2hlsl_sgpr_spill_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_shift64_check.py` ok (`0.3s`), `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 (`8.7s`), `tests/startup_gfx2hlsl_sopk_accum_check.py` ok (`1.5s`), `tests/startup_gfx2hlsl_sopk_signext_check.py` ok (`0.2s`), `tests/startup_gfx2hlsl_swap_check.py` ok (`0.5s`), `tests/startup_gfx2hlsl_vopc_sdwa_check.py` ok (`6.7s`), `tests/startup_gfx2hlsl_waitcnt_depctr_check.py` ok (`0.1s`), `tests/startup_gfx2hlsl_watch_check.py` ok (`3.0s`), `tests/startup_image_2d_array_check.py` ok (`0.3s`), `tests/startup_image_3d_check.py` ok (`0.3s`), `tests/startup_image_gather_lz_check.py` ok (`0.9s`), `tests/startup_image_load_d16_check.py` ok (`1.6s`), `tests/startup_image_sample_a16_check.py` ok (`0.3s`), `tests/startup_image_sample_b_check.py` ok (`0.4s`), `tests/startup_image_sample_c_check.py` ok (`0.4s`), `tests/startup_image_sample_l_check.py` ok (`0.3s`), `tests/startup_image_sample_lod_check.py` ok (`1.0s`), `tests/startup_inline_sampler_check.py` ok (`0.2s`), `tests/startup_mesh57_depth_only_check.py` ok (`0.3s`), `tests/startup_mesh57_loop_refusal_check.py` ok (`0.2s`), `tests/startup_mesh57_skeleton_check.py` ok (`1.7s`), `tests/startup_run_ps1_check.py` ok (`15.9s`), `tests/startup_run_sh_check.py` skipped (`0.1s`), `tests/startup_sampler_heap_check.py` ok (`0.3s`), `tests/startup_shader_cache_rekey_check.py` ok (`4.5s`), `tests/startup_smem_address_check.py` ok (`0.3s`), `tests/startup_stream_fetch_check.py` ok (`0.3s`), `tests/startup_stream_interface_check.py` ok (`0.4s`), `tests/startup_translator_check.py` ok (`0.8s`) - `sccache`: 13/20 hits; wall `138.6s` AI-assisted; commands listed were executed locally.
This discussion has been locked. Commenting is limited to contributors.
No description provided.