shader: clear the lane-mask mark on scalar writes of descriptor data in gfx2hlsl (Part of #1723) #2787

Merged
Miffedrandir merged 5 commits from upstream-pr/2795 into main 2026-11-26 12:10:54 +00:00
Miffedrandir commented 2026-11-26 09:59:59 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Miffedrandir on 2026-11-26T09:59:59Z.


Change

Part of #1723.

Scalar ALU on descriptor data in tools/startup/gfx2hlsl.py records only a symbol for its destination and never calls set_s. That covers an s_mov of a descriptor word, a field extract or mask of one (the structured-to-raw conversion of #2546), and an s_add_u32 to a descriptor pointer through pointer_add. Since #2122, set_s is what clears a register's lane-mask mark, so these writes kept a mark left by an earlier v_cmp/saveexec into the same SGPR.

Since #2702, a scalar instruction that reads a lane mask as a number is refused. So the stride clamp of a structured-to-raw conversion in a register that once held a mask was refused, even though the register holds a descriptor field:

s_bfe_u32 s23, s45, 0xe0010      ; DW1[29:16] stride of a buffer descriptor
s_max_u32 s23, s23, 1            ; refused: s_max_u32 reads lane mask s23 as numeric data

The descriptor-data path now clears the mark (and the wave64 high-word mark) on its destination SGPRs before writing them. lower() classifies the sources before _lower() runs, so an instruction that itself reads a mask as a number is still refused. Every later branch of the path either writes the destination or refuses the program. The change is 8 lines in one place. It closes the gap the existing docs section listed as not covered ("the other symbol-only scalar writes ... still keep a mark they find").

Verification

Base: 700522ef (upstream main). Windows 11 10.0.26200, Python 3.11 venv from requirements-dev.txt. All checks below are pure Python; no GPU involved.

  • python -B tests/startup_gfx2hlsl_mask_overwrite_check.py: all checks ok. New cases, each after v_cmp_eq_u32_e64 s6, v0, v1, in a pixel and a vertex stage:
    • s_mov_b32 s6, s17, s_bfe_u32 s6, s17, 0xe0010, s_and_b32 s6, s19, 0xcfffffff and s_add_u32 s6, s2, 16 on descriptor or pointer symbols clear the mark on s6.
    • s_bfe_u32 s6, s17, 0xe0010 then s_max_u32 s6, s6, 1 is not refused.
  • Control: s_bfe_u32 s8, s17, 0xe0010 keeps the mark on s6 (only the destination is cleared).
  • Negative control: the same test run against the unpatched tools/startup/gfx2hlsl.py at 700522ef fails 6 checks: the s_bfe_u32 and s_add_u32 clearing checks and the stride clamp (s_max_u32 reads lane mask s6 as numeric data), each in both stages. The s_mov_b32 and s_and_b32 cases already pass there.
  • ctest --preset dev --no-tests=error -R '^startup_gfx2hlsl_mask_overwrite_controls$': 1/1 passed.
  • The Linux CI Python list from windows.yml (203 checks) via tools/run_checks_parallel.py -j 12:
    • 200 ok.
    • 2 capability skips (startup_run_sh_check, startup_build_rev_check).
    • 1 failure, dxc_cache_check (OSError: [WinError 193]). It fails the same way on unpatched main on this machine (a local DXC setup issue), unrelated to this change.
  • docs_links_check and bidi_controls_check: ok.

How it was found: local integration of open PRs

I found this while checking how much a combination of the open translator PRs would help locally captured shader requests (local data, not included; about 3,800 requests, 585 graphics pipelines). The integration branch was b457f7ff plus a --no-ff merge of each of these PR heads, re-keyed with tools/startup/shader_cache_rekey.py and translated with gfx2hlsl.py --pending:

PR Result in the local integration
#2736 sample_b / get_lod past a divergent EXEC (now merged) merged cleanly
#2741 binary16 VOPC compares merged cleanly
#2760 image_gather4_lz with wrap addressing merged cleanly
#2763 bind the resource-heap image record of a pixel draw merged cleanly (contains #2761)
#2761 pixel-stage resource-heap image record already contained in #2763
#2754 loop around v_interp_p1ll_f16 / p2_f16 (now merged) merged cleanly
#2747 s_wqm exec, exec on a narrowed EXEC as a quad vote conflicts only in tests (startup_image_get_lod_flow_check.py, startup_image_sample_b_flow_check.py); PR side taken
#2758 per-lane sample_b bias past a divergent EXEC same two test files; PR side taken
#2702 refuse a lane mask read as numeric data (now merged) not merged: conflicts in gfx2hlsl.py and runtime sources
#2745 v_readfirstlane_b32 of a per-lane VGPR dropped: merged with its test side, but 3 checks on main then failed (startup_gfx2hlsl_readfirstlane_uniform_check, startup_compute_readfirstlane_check, startup_gfx2hlsl_compute_check), because main's newer tests expect refusals the PR accepts

In that integration, 116 graphics pipelines stopped first at s_max_u32 reads lane mask sN as numeric data. With this patch none do. They then stop at their next refusal, mostly DPP forms (v_min_u32_dpp, v_subrev_f32_dpp) in pixel programs with branches, so the count of translated graphics pipelines does not change (89 of 585). This PR is based on and verified against main only. It does not depend on any of the PRs above.

Evidence and follow-up

  • No new fixture files. The cases are synthetic instruction text and register states in the existing check.
  • Not covered: a draw through a translated pipeline.
  • Follow-up another contributor could pick up: DPP quad reads (v_min_u32_dpp and similar) in pixel programs with non-uniform branches are the most common first refusal for the remaining graphics pipelines in the local capture (about 180 of 311 missing).

Checklist

  • This pull request covers one reviewable behavior.
  • I included the exact command and result for every check I ran.
  • I considered a negative control or failure case for a new fixture.
  • I updated README/docs when a capability or build requirement changed (docs/experiments.md, "Startup translator: lane-mask marks after a scalar overwrite").
  • I did not include game files, dumps, distribution links or secrets.

This change was AI-assisted (Claude Code).

🤖 Generated with Claude Code

https://claude.ai/code/session_01Sir6MraM8AjP6AcLDr3paU

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6624138065 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2795). Originally posted by [Miffedrandir](https://github.com/Miffedrandir) on 2026-11-26T09:59:59Z. --- ## Change Part of #1723. Scalar ALU on descriptor data in `tools/startup/gfx2hlsl.py` records only a symbol for its destination and never calls `set_s`. That covers an `s_mov` of a descriptor word, a field extract or mask of one (the structured-to-raw conversion of #2546), and an `s_add_u32` to a descriptor pointer through `pointer_add`. Since #2122, `set_s` is what clears a register's lane-mask mark, so these writes kept a mark left by an earlier `v_cmp`/saveexec into the same SGPR. Since #2702, a scalar instruction that reads a lane mask as a number is refused. So the stride clamp of a structured-to-raw conversion in a register that once held a mask was refused, even though the register holds a descriptor field: ``` s_bfe_u32 s23, s45, 0xe0010 ; DW1[29:16] stride of a buffer descriptor s_max_u32 s23, s23, 1 ; refused: s_max_u32 reads lane mask s23 as numeric data ``` The descriptor-data path now clears the mark (and the wave64 high-word mark) on its destination SGPRs before writing them. `lower()` classifies the sources before `_lower()` runs, so an instruction that itself reads a mask as a number is still refused. Every later branch of the path either writes the destination or refuses the program. The change is 8 lines in one place. It closes the gap the existing docs section listed as not covered ("the other symbol-only scalar writes ... still keep a mark they find"). ## Verification Base: `700522ef` (upstream `main`). Windows 11 10.0.26200, Python 3.11 venv from `requirements-dev.txt`. All checks below are pure Python; no GPU involved. - `python -B tests/startup_gfx2hlsl_mask_overwrite_check.py`: all checks ok. New cases, each after `v_cmp_eq_u32_e64 s6, v0, v1`, in a pixel and a vertex stage: - `s_mov_b32 s6, s17`, `s_bfe_u32 s6, s17, 0xe0010`, `s_and_b32 s6, s19, 0xcfffffff` and `s_add_u32 s6, s2, 16` on descriptor or pointer symbols clear the mark on s6. - `s_bfe_u32 s6, s17, 0xe0010` then `s_max_u32 s6, s6, 1` is not refused. - Control: `s_bfe_u32 s8, s17, 0xe0010` keeps the mark on s6 (only the destination is cleared). - Negative control: the same test run against the unpatched `tools/startup/gfx2hlsl.py` at `700522ef` fails 6 checks: the `s_bfe_u32` and `s_add_u32` clearing checks and the stride clamp (`s_max_u32 reads lane mask s6 as numeric data`), each in both stages. The `s_mov_b32` and `s_and_b32` cases already pass there. - `ctest --preset dev --no-tests=error -R '^startup_gfx2hlsl_mask_overwrite_controls$'`: 1/1 passed. - The Linux CI Python list from `windows.yml` (203 checks) via `tools/run_checks_parallel.py -j 12`: - 200 ok. - 2 capability skips (`startup_run_sh_check`, `startup_build_rev_check`). - 1 failure, `dxc_cache_check` (`OSError: [WinError 193]`). It fails the same way on unpatched `main` on this machine (a local DXC setup issue), unrelated to this change. - `docs_links_check` and `bidi_controls_check`: ok. ## How it was found: local integration of open PRs I found this while checking how much a combination of the open translator PRs would help locally captured shader requests (local data, not included; about 3,800 requests, 585 graphics pipelines). The integration branch was `b457f7ff` plus a `--no-ff` merge of each of these PR heads, re-keyed with `tools/startup/shader_cache_rekey.py` and translated with `gfx2hlsl.py --pending`: | PR | Result in the local integration | |---|---| | #2736 sample_b / get_lod past a divergent EXEC (now merged) | merged cleanly | | #2741 binary16 VOPC compares | merged cleanly | | #2760 image_gather4_lz with wrap addressing | merged cleanly | | #2763 bind the resource-heap image record of a pixel draw | merged cleanly (contains #2761) | | #2761 pixel-stage resource-heap image record | already contained in #2763 | | #2754 loop around v_interp_p1ll_f16 / p2_f16 (now merged) | merged cleanly | | #2747 s_wqm exec, exec on a narrowed EXEC as a quad vote | conflicts only in tests (`startup_image_get_lod_flow_check.py`, `startup_image_sample_b_flow_check.py`); PR side taken | | #2758 per-lane sample_b bias past a divergent EXEC | same two test files; PR side taken | | #2702 refuse a lane mask read as numeric data (now merged) | not merged: conflicts in `gfx2hlsl.py` and runtime sources | | #2745 v_readfirstlane_b32 of a per-lane VGPR | dropped: merged with its test side, but 3 checks on `main` then failed (`startup_gfx2hlsl_readfirstlane_uniform_check`, `startup_compute_readfirstlane_check`, `startup_gfx2hlsl_compute_check`), because `main`'s newer tests expect refusals the PR accepts | In that integration, 116 graphics pipelines stopped first at `s_max_u32 reads lane mask sN as numeric data`. With this patch none do. They then stop at their next refusal, mostly DPP forms (`v_min_u32_dpp`, `v_subrev_f32_dpp`) in pixel programs with branches, so the count of translated graphics pipelines does not change (89 of 585). This PR is based on and verified against `main` only. It does not depend on any of the PRs above. ## Evidence and follow-up - No new fixture files. The cases are synthetic instruction text and register states in the existing check. - Not covered: a draw through a translated pipeline. - Follow-up another contributor could pick up: DPP quad reads (`v_min_u32_dpp` and similar) in pixel programs with non-uniform branches are the most common first refusal for the remaining graphics pipelines in the local capture (about 180 of 311 missing). ## Checklist - [x] This pull request covers one reviewable behavior. - [x] I included the exact command and result for every check I ran. - [x] I considered a negative control or failure case for a new fixture. - [x] I updated README/docs when a capability or build requirement changed (`docs/experiments.md`, "Startup translator: lane-mask marks after a scalar overwrite"). - [x] I did not include game files, dumps, distribution links or secrets. This change was AI-assisted (Claude Code). 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Sir6MraM8AjP6AcLDr3paU
tedin7 commented 2026-11-26 11:02:51 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T10:05:45Z.

Review: COMMENTED


Review of head eb865248 (comment only, no approval).

What is good

  • The fix is small and in the right place: tools/startup/gfx2hlsl.py:5313 clears masks and mask_high on the destination SGPRs of the descriptor-data path. lower() classifies the sources first, so an instruction that really reads a mask as a number is still refused.
  • The new checks in tests/startup_gfx2hlsl_mask_overwrite_check.py cover ps and vs, the four scalar forms (s_mov, s_bfe_u32, s_and_b32, s_add_u32 pointer add), the s_bfe_u32 + s_max_u32 stride clamp, and a control (write into s8 keeps the mark on s6).
  • Mutation: replacing the masks discard with pass makes the check fail (6 failures). The control and the refusal tests from #2122/#2702 still pass.

What is missing

  • No real D3D12 WARP readback vs CPU reference. Before this change the stride clamp program was refused; now it translates, so a new HLSL path is emitted for it (s_bfe_u32 then s_max_u32 on a register that earlier held a v_cmp result). The current tests only check Python mask bookkeeping. Please add one case to an existing WARP-based gfx2hlsl check (for example next to tests/startup_gfx2hlsl_desc_vcc_check.py): compare, then s_bfe_u32 of a descriptor word, then s_max_u32 with 1, store the result, read it back from WARP and compare it with a CPU value. A control where the clamp reads a real mask must still be refused.
  • Overlap to settle: #2784 (a 32-bit integer scalar result ends the lane-mask tag of its register) touches the same mark-clearing area. Different slice (numeric results vs descriptor data) but please confirm with @R0Y00 / the #2784 author that the two do not collide in set_s and the descriptor path.

Checks run locally on the worktree at this head (0 commits behind main):

  • python3 tests/startup_gfx2hlsl_mask_overwrite_check.py -> ok
  • python3 tests/docs_links_check.py -> ok
  • python3 tests/bidi_controls_check.py -> ok
  • git diff --check origin/main...HEAD -> clean
  • one code mutation of the new line -> new check fails as expected

CI was still pending at review time and no Windows run was done, so this is not a merge decision. Merge stays after the WARP readback case is added.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6072085980 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2795#pullrequestreview-6072085980). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-26T10:05:45Z. **Review:** COMMENTED --- Review of head eb865248 (comment only, no approval). What is good - The fix is small and in the right place: `tools/startup/gfx2hlsl.py:5313` clears `masks` and `mask_high` on the destination SGPRs of the descriptor-data path. `lower()` classifies the sources first, so an instruction that really reads a mask as a number is still refused. - The new checks in `tests/startup_gfx2hlsl_mask_overwrite_check.py` cover ps and vs, the four scalar forms (s_mov, s_bfe_u32, s_and_b32, s_add_u32 pointer add), the s_bfe_u32 + s_max_u32 stride clamp, and a control (write into s8 keeps the mark on s6). - Mutation: replacing the `masks` discard with `pass` makes the check fail (6 failures). The control and the refusal tests from #2122/#2702 still pass. What is missing - No real D3D12 WARP readback vs CPU reference. Before this change the stride clamp program was refused; now it translates, so a new HLSL path is emitted for it (s_bfe_u32 then s_max_u32 on a register that earlier held a v_cmp result). The current tests only check Python mask bookkeeping. Please add one case to an existing WARP-based gfx2hlsl check (for example next to `tests/startup_gfx2hlsl_desc_vcc_check.py`): compare, then s_bfe_u32 of a descriptor word, then s_max_u32 with 1, store the result, read it back from WARP and compare it with a CPU value. A control where the clamp reads a real mask must still be refused. - Overlap to settle: #2784 (a 32-bit integer scalar result ends the lane-mask tag of its register) touches the same mark-clearing area. Different slice (numeric results vs descriptor data) but please confirm with @R0Y00 / the #2784 author that the two do not collide in `set_s` and the descriptor path. Checks run locally on the worktree at this head (0 commits behind main): - python3 tests/startup_gfx2hlsl_mask_overwrite_check.py -> ok - python3 tests/docs_links_check.py -> ok - python3 tests/bidi_controls_check.py -> ok - git diff --check origin/main...HEAD -> clean - one code mutation of the new line -> new check fails as expected CI was still pending at review time and no Windows run was done, so this is not a merge decision. Merge stays after the WARP readback case is added. AI-assisted; commands listed were executed locally.
Miffedrandir commented 2026-11-26 12:04:58 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Miffedrandir on 2026-11-26T12:00:43Z.


Thanks for the review. Pushed 6b08636e.

WARP readback. On the current translator the extract and the clamp emit no HLSL: the clamped stride stays a symbol, and a numeric read of it is refused (numeric use of s6 holding descnum) with or without the earlier mask, so there is no new HLSL path to read back directly. The clamp changes output only where it feeds the structured-to-raw conversion of a buffer store, so the case is in tests/startup_gfx2hlsl_compute_check.py, which already dispatches that conversion:

  • Case I-raw-mask: v_cmp_gt_u32_e64 s21, 3, v0 (24-lane group), then the extract, s_max_u32 s21, s21, 1 and the rest of the conversion, then case A's store. All 320 words are compared with the CPU reference. The HLSL differs from I-raw only by the dead compare.
  • Control: s_max_u32 s21, s21, 1 straight after the compare is still refused.
  • Negative control: on main's translator (25eb746e) the case is refused (s_max_u32 reads lane mask s21 as numeric data), so the controls and the dispatch fail.

Windows 11 26200, MSVC Build Tools 2022, DXC 10.0.26100:

  • ctest --preset dev --no-tests=error -R '^startup_gfx2hlsl_compute|^startup_gfx2hlsl_mask_overwrite' → 48/48 passed (WARP and RTX 5070 Laptop)
  • CI Python list via tools/run_checks_parallel.py -j 12 → 200 ok, 2 capability skips, dxc_cache_check fails the same way on unpatched main here (local DXC setup)

#2784. That PR has since been withdrawn, so there's no collision in set_s or the descriptor path to settle.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7191451215 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2795#issuecomment-7191451215). Originally posted by [Miffedrandir](https://github.com/Miffedrandir) on 2026-11-26T12:00:43Z. --- Thanks for the review. Pushed `6b08636e`. **WARP readback.** On the current translator the extract and the clamp emit no HLSL: the clamped stride stays a symbol, and a numeric read of it is refused (`numeric use of s6 holding descnum`) with or without the earlier mask, so there is no new HLSL path to read back directly. The clamp changes output only where it feeds the structured-to-raw conversion of a buffer store, so the case is in `tests/startup_gfx2hlsl_compute_check.py`, which already dispatches that conversion: - Case `I-raw-mask`: `v_cmp_gt_u32_e64 s21, 3, v0` (24-lane group), then the extract, `s_max_u32 s21, s21, 1` and the rest of the conversion, then case A's store. All 320 words are compared with the CPU reference. The HLSL differs from `I-raw` only by the dead compare. - Control: `s_max_u32 s21, s21, 1` straight after the compare is still refused. - Negative control: on `main`'s translator (`25eb746e`) the case is refused (`s_max_u32 reads lane mask s21 as numeric data`), so the controls and the dispatch fail. Windows 11 26200, MSVC Build Tools 2022, DXC 10.0.26100: - `ctest --preset dev --no-tests=error -R '^startup_gfx2hlsl_compute|^startup_gfx2hlsl_mask_overwrite'` → 48/48 passed (WARP and RTX 5070 Laptop) - CI Python list via `tools/run_checks_parallel.py -j 12` → 200 ok, 2 capability skips, `dxc_cache_check` fails the same way on unpatched `main` here (local DXC setup) **#2784.** That PR has since been withdrawn, so there's no collision in `set_s` or the descriptor path to settle.
upstream-sync closed this pull request 2026-11-26 13:03:03 +00:00
tedin7 commented 2026-11-26 13:03:03 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T12:06:53Z.

Review: COMMENTED


Review of head 9ef253d1 (the author's 6b08636e updated with main; comment review, no approval). The PR's own diff is unchanged by that update (4 files, +68/-2).

The earlier request (a real WARP readback) is met. Case I-raw-mask in tests/startup_gfx2hlsl_compute_check.py is a real dispatch: CASES.items() feeds the dispatch mode, which compiles the translated HLSL with DXC cs_6_0, runs it on the adapter and compares every output word with the CPU reference (expected('A')). The program is: compare into s21, descriptor stride extract, s_max_u32 s21, s21, 1, the rest of the structured-to-raw conversion, then case A's store. The translated HLSL differs from I-raw only by the dead compare line, and the controls assert exactly that one extra line. So the readback proves the clamped conversion now stores the same words as before, not just that the Python mark is cleared.

It fails without the fix. I removed the masks.discard on the destination in tools/startup/gfx2hlsl.py. Then:

  • python3 -B tests/startup_gfx2hlsl_compute_check.py (controls) stops with Unsupported: s_max_u32 reads lane mask s21 as numeric data, so I-raw-mask cannot even translate;
  • python3 -B tests/startup_gfx2hlsl_mask_overwrite_check.py reports failures (7 lines with "fail").
    Restored with git checkout -- ..

The refusal stays. The new control s_max_u32 s21, s21, 1 straight after the compare (the instruction really reads the mask) is still refused. lower() classifies the sources before the new discard runs, so a real mask read is not hidden.

Scope. The code change is 8 lines at tools/startup/gfx2hlsl.py (descriptor-data path): it clears the lane-mask mark and the wave64 high-word mark on the destination SGPRs only, as set_s does. #2784 was withdrawn, so the overlap I raised before is gone.

Commands run (Linux)

  • python3 -B tests/startup_gfx2hlsl_compute_check.py rc=0; python3 -B tests/startup_gfx2hlsl_mask_overwrite_check.py rc=0
  • python3 tests/docs_links_check.py, python3 tests/bidi_controls_check.py, git diff --check origin/main...HEAD: clean
  • one mutation of the new code, as above: both checks fail

The Windows Server 2025 WARP receipt follows in a separate comment. Real-GPU run not available (RunPod stopped).

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6073853027 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2795#pullrequestreview-6073853027). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-26T12:06:53Z. **Review:** COMMENTED --- Review of head `9ef253d1` (the author's `6b08636e` updated with main; comment review, no approval). The PR's own diff is unchanged by that update (4 files, +68/-2). **The earlier request (a real WARP readback) is met.** Case `I-raw-mask` in `tests/startup_gfx2hlsl_compute_check.py` is a real dispatch: `CASES.items()` feeds the `dispatch` mode, which compiles the translated HLSL with DXC `cs_6_0`, runs it on the adapter and compares every output word with the CPU reference (`expected('A')`). The program is: compare into s21, descriptor stride extract, `s_max_u32 s21, s21, 1`, the rest of the structured-to-raw conversion, then case A's store. The translated HLSL differs from `I-raw` only by the dead compare line, and the controls assert exactly that one extra line. So the readback proves the clamped conversion now stores the same words as before, not just that the Python mark is cleared. **It fails without the fix.** I removed the `masks.discard` on the destination in `tools/startup/gfx2hlsl.py`. Then: - `python3 -B tests/startup_gfx2hlsl_compute_check.py` (controls) stops with `Unsupported: s_max_u32 reads lane mask s21 as numeric data`, so `I-raw-mask` cannot even translate; - `python3 -B tests/startup_gfx2hlsl_mask_overwrite_check.py` reports failures (7 lines with "fail"). Restored with `git checkout -- .`. **The refusal stays.** The new control `s_max_u32 s21, s21, 1` straight after the compare (the instruction really reads the mask) is still refused. `lower()` classifies the sources before the new discard runs, so a real mask read is not hidden. **Scope.** The code change is 8 lines at `tools/startup/gfx2hlsl.py` (descriptor-data path): it clears the lane-mask mark and the wave64 high-word mark on the destination SGPRs only, as `set_s` does. #2784 was withdrawn, so the overlap I raised before is gone. **Commands run (Linux)** - `python3 -B tests/startup_gfx2hlsl_compute_check.py` rc=0; `python3 -B tests/startup_gfx2hlsl_mask_overwrite_check.py` rc=0 - `python3 tests/docs_links_check.py`, `python3 tests/bidi_controls_check.py`, `git diff --check origin/main...HEAD`: clean - one mutation of the new code, as above: both checks fail The Windows Server 2025 WARP receipt follows in a separate comment. Real-GPU run not available (RunPod stopped). AI-assisted; commands listed were executed locally.
tedin7 commented 2026-11-26 13:03:11 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T12:10:43Z.


Win2025 WARP receipt for head 9ef253d1 (the author head 6b08636e updated with main; the PR diff is unchanged). Includes the new case I-raw-mask in startup_gfx2hlsl_compute_warp.

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

  • Debug (--preset dev):
    • Build (cmake --build --preset dev --target d3d12_xs_device_obj d3d12_xs_shim startup_buffer_format_word3_check startup_stream_consumer -- -j 2): 36.96s (configure 2.02s)
    • Test (ctest --preset dev -R '^startup_gfx2hlsl_(compute|mask_overwrite)' --parallel 3 --no-tests=error --output-on-failure): 70/70 passed (14.77s: startup_gfx2hlsl_compute_mask_spill_controls 3.53s, startup_gfx2hlsl_compute_hardware 4.16s, startup_gfx2hlsl_compute_warp 4.19s, startup_gfx2hlsl_compute_spill_warp 0.84s, startup_gfx2hlsl_compute_controls 1.12s, startup_gfx2hlsl_compute_spill_hardware 0.82s, startup_gfx2hlsl_compute_mbcnt_warp 0.72s, startup_gfx2hlsl_compute_spill_controls 2.76s, startup_gfx2hlsl_compute_mbcnt_hardware 0.79s, startup_gfx2hlsl_compute_mask_spill_hardware 0.75s, startup_gfx2hlsl_compute_dropped-store_warp 0.32s, startup_gfx2hlsl_compute_mask_spill_warp 0.76s, startup_gfx2hlsl_compute_c-unpredicated_warp 0.31s, startup_gfx2hlsl_compute_b-offset_warp 0.37s, startup_gfx2hlsl_compute_swapped-axes_warp 0.35s, startup_gfx2hlsl_compute_c-unpredicated_hardware 0.34s, startup_gfx2hlsl_compute_b-offset_hardware 0.40s, startup_gfx2hlsl_compute_dropped-store_hardware 0.39s, startup_gfx2hlsl_compute_swapped-axes_hardware 0.40s, startup_gfx2hlsl_compute_spill_s-arm-swapped_warp 0.45s, startup_gfx2hlsl_compute_f-peer_warp 0.39s, startup_gfx2hlsl_compute_spill_s-arm-swapped_hardware 0.45s, startup_gfx2hlsl_compute_s-borrow-flipped_hardware 0.45s, startup_gfx2hlsl_compute_f-broadcast_warp 0.38s, startup_gfx2hlsl_compute_m-else-unswitched_hardware 0.43s, startup_gfx2hlsl_compute_spill_s-store-dropped_warp 0.37s, startup_gfx2hlsl_compute_k-block-entered_warp 0.40s, startup_gfx2hlsl_compute_m-else-unswitched_warp 0.44s, startup_gfx2hlsl_compute_f-broadcast_hardware 0.41s, startup_gfx2hlsl_compute_h-inner-unpredicated_hardware 0.45s, startup_gfx2hlsl_compute_s-borrow-flipped_warp 0.47s, startup_gfx2hlsl_compute_n-dropped-broadcast_hardware 0.39s, startup_gfx2hlsl_compute_h-inner-unpredicated_warp 0.43s, startup_gfx2hlsl_compute_g-swapped-offsets_hardware 0.40s, startup_gfx2hlsl_compute_k-block-entered_hardware 0.44s, startup_gfx2hlsl_compute_s-min-strict_warp 0.44s, startup_gfx2hlsl_compute_f-peer_hardware 0.42s, startup_gfx2hlsl_compute_spill_p-store-dropped_warp 0.38s, startup_gfx2hlsl_compute_n-dropped-broadcast_warp 0.43s, startup_gfx2hlsl_compute_j-scalar-dropped_hardware 0.42s, startup_gfx2hlsl_compute_g-overlap_warp 0.38s, startup_gfx2hlsl_compute_mask_spill_m-saveexec-dropped_hardware 0.38s, startup_gfx2hlsl_compute_spill_s-store-dropped_hardware 0.38s, startup_gfx2hlsl_compute_g-swapped-offsets_warp 0.41s, startup_gfx2hlsl_compute_s-min-strict_hardware 0.43s, startup_gfx2hlsl_compute_q-not-all-ones_warp 0.40s, startup_gfx2hlsl_compute_mask_spill_m-mask-inverted_hardware 0.35s, startup_gfx2hlsl_compute_j-scalar-dropped_warp 0.41s, startup_gfx2hlsl_compute_g-overlap_hardware 0.40s, startup_gfx2hlsl_compute_n-unmasked_hardware 0.35s, startup_gfx2hlsl_compute_mask_spill_m-mask-inverted_warp 0.37s, startup_gfx2hlsl_compute_spill_p-store-dropped_hardware 0.35s, startup_gfx2hlsl_compute_q-not-all-ones_hardware 0.37s, startup_gfx2hlsl_compute_p-dropped-or_warp 0.37s, startup_gfx2hlsl_compute_q-block-entered_warp 0.40s, startup_gfx2hlsl_compute_mask_spill_v-branch-inverted_warp 0.37s, startup_gfx2hlsl_compute_p-dropped-or_hardware 0.40s, startup_gfx2hlsl_compute_p-block-entered_hardware 0.40s, startup_gfx2hlsl_compute_p-block-entered_warp 0.40s, startup_gfx2hlsl_compute_mask_spill_m-saveexec-dropped_warp 0.39s, startup_gfx2hlsl_compute_o-mask-kept_warp 0.43s, startup_gfx2hlsl_compute_f-second-fill_hardware 0.40s, startup_gfx2hlsl_compute_q-block-entered_hardware 0.39s, startup_gfx2hlsl_compute_p-dropped-andn2_warp 0.38s, startup_gfx2hlsl_compute_n-unmasked_warp 0.39s, startup_gfx2hlsl_compute_o-mask-kept_hardware 0.41s, startup_gfx2hlsl_compute_p-dropped-andn2_hardware 0.37s, startup_gfx2hlsl_mask_overwrite_controls 0.13s, startup_gfx2hlsl_compute_f-second-fill_warp 0.39s, startup_gfx2hlsl_compute_mask_spill_v-branch-inverted_hardware 0.36s)
  • Release /O2 (--preset release):
    • Build (cmake --build --preset release --target d3d12_xs_device_obj d3d12_xs_shim startup_buffer_format_word3_check startup_stream_consumer -- -j 2): 59.65s (configure 2.37s)
    • Test (ctest --preset release -R '^startup_gfx2hlsl_(compute|mask_overwrite)' --parallel 3 --no-tests=error --output-on-failure): 70/70 passed (10.73s: startup_gfx2hlsl_compute_mask_spill_controls 2.78s, startup_gfx2hlsl_compute_hardware 3.22s, startup_gfx2hlsl_compute_warp 3.26s, startup_gfx2hlsl_compute_spill_hardware 0.70s, startup_gfx2hlsl_compute_controls 0.88s, startup_gfx2hlsl_compute_mbcnt_warp 0.73s, startup_gfx2hlsl_compute_mask_spill_hardware 0.68s, startup_gfx2hlsl_compute_spill_controls 2.30s, startup_gfx2hlsl_compute_spill_warp 0.62s, startup_gfx2hlsl_compute_mask_spill_warp 0.54s, startup_gfx2hlsl_compute_b-offset_warp 0.25s, startup_gfx2hlsl_compute_c-unpredicated_warp 0.24s, startup_gfx2hlsl_compute_mbcnt_hardware 0.56s, startup_gfx2hlsl_compute_dropped-store_warp 0.24s, startup_gfx2hlsl_compute_swapped-axes_warp 0.25s, startup_gfx2hlsl_compute_dropped-store_hardware 0.24s, startup_gfx2hlsl_compute_swapped-axes_hardware 0.26s, startup_gfx2hlsl_compute_b-offset_hardware 0.26s, startup_gfx2hlsl_compute_c-unpredicated_hardware 0.25s, startup_gfx2hlsl_compute_mask_spill_m-saveexec-dropped_hardware 0.24s, startup_gfx2hlsl_compute_s-min-strict_warp 0.28s, startup_gfx2hlsl_compute_mask_spill_m-mask-inverted_hardware 0.24s, startup_gfx2hlsl_compute_mask_spill_v-branch-inverted_hardware 0.26s, startup_gfx2hlsl_compute_s-borrow-flipped_warp 0.28s, startup_gfx2hlsl_compute_s-borrow-flipped_hardware 0.28s, startup_gfx2hlsl_compute_s-min-strict_hardware 0.29s, startup_gfx2hlsl_compute_m-else-unswitched_hardware 0.27s, startup_gfx2hlsl_compute_spill_s-arm-swapped_hardware 0.30s, startup_gfx2hlsl_compute_k-block-entered_hardware 0.28s, startup_gfx2hlsl_compute_n-dropped-broadcast_hardware 0.26s, startup_gfx2hlsl_compute_m-else-unswitched_warp 0.30s, startup_gfx2hlsl_compute_k-block-entered_warp 0.26s, startup_gfx2hlsl_compute_j-scalar-dropped_warp 0.26s, startup_gfx2hlsl_compute_f-broadcast_warp 0.26s, startup_gfx2hlsl_compute_j-scalar-dropped_hardware 0.27s, startup_gfx2hlsl_compute_h-inner-unpredicated_warp 0.26s, startup_gfx2hlsl_compute_g-swapped-offsets_hardware 0.26s, startup_gfx2hlsl_compute_f-peer_warp 0.27s, startup_gfx2hlsl_compute_g-overlap_warp 0.26s, startup_gfx2hlsl_compute_mask_spill_v-branch-inverted_warp 0.24s, startup_gfx2hlsl_compute_g-swapped-offsets_warp 0.26s, startup_gfx2hlsl_compute_f-peer_hardware 0.26s, startup_gfx2hlsl_compute_h-inner-unpredicated_hardware 0.27s, startup_gfx2hlsl_compute_n-dropped-broadcast_warp 0.26s, startup_gfx2hlsl_compute_f-second-fill_hardware 0.26s, startup_gfx2hlsl_compute_q-not-all-ones_hardware 0.27s, startup_gfx2hlsl_compute_o-mask-kept_hardware 0.26s, startup_gfx2hlsl_compute_f-broadcast_hardware 0.26s, startup_gfx2hlsl_compute_spill_s-arm-swapped_warp 0.28s, startup_gfx2hlsl_compute_p-dropped-andn2_warp 0.26s, startup_gfx2hlsl_compute_p-dropped-or_hardware 0.26s, startup_gfx2hlsl_compute_g-overlap_hardware 0.28s, startup_gfx2hlsl_compute_p-dropped-or_warp 0.27s, startup_gfx2hlsl_compute_o-mask-kept_warp 0.27s, startup_gfx2hlsl_compute_p-dropped-andn2_hardware 0.27s, startup_gfx2hlsl_compute_p-block-entered_hardware 0.27s, startup_gfx2hlsl_compute_p-block-entered_warp 0.26s, startup_gfx2hlsl_compute_n-unmasked_warp 0.27s, startup_gfx2hlsl_compute_f-second-fill_warp 0.27s, startup_gfx2hlsl_compute_q-block-entered_hardware 0.26s, startup_gfx2hlsl_compute_q-not-all-ones_warp 0.26s, startup_gfx2hlsl_compute_q-block-entered_warp 0.27s, startup_gfx2hlsl_compute_n-unmasked_hardware 0.27s, startup_gfx2hlsl_compute_spill_s-store-dropped_warp 0.25s, startup_gfx2hlsl_compute_mask_spill_m-mask-inverted_warp 0.25s, startup_gfx2hlsl_compute_spill_p-store-dropped_hardware 0.24s, startup_gfx2hlsl_compute_spill_s-store-dropped_hardware 0.25s, startup_gfx2hlsl_mask_overwrite_controls 0.11s, startup_gfx2hlsl_compute_mask_spill_m-saveexec-dropped_warp 0.24s, startup_gfx2hlsl_compute_spill_p-store-dropped_warp 0.24s)
  • 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_image_store_check.py ok (0.5s), tests/startup_compute_image_store_d16_check.py ok (0.5s), 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.9s), 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.1s), 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.2s), 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.0s), tests/startup_gfx2hlsl_pack_b32_f16_check.py ok (0.2s), 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.1s), 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.1s), 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.2s), 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 (5.2s), 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 (1.0s), tests/startup_gfx2hlsl_swap_check.py ok (0.4s), tests/startup_gfx2hlsl_vopc_sdwa_check.py ok (4.1s), 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.2s), tests/startup_image_3d_check.py ok (0.2s), tests/startup_image_gather_lz_check.py ok (0.7s), tests/startup_image_load_d16_check.py ok (1.0s), tests/startup_image_sample_a16_check.py ok (0.3s), tests/startup_image_sample_b_check.py ok (0.3s), tests/startup_image_sample_c_check.py ok (0.3s), tests/startup_image_sample_l_check.py ok (0.2s), tests/startup_image_sample_lod_check.py ok (0.6s), tests/startup_inline_sampler_check.py ok (0.2s), tests/startup_mesh57_depth_only_check.py ok (0.3s), tests/startup_mesh57_lane_spill_check.py ok (0.3s), tests/startup_mesh57_loop_check.py ok (0.2s), tests/startup_mesh57_loop_refusal_check.py ok (0.2s), tests/startup_mesh57_skeleton_check.py ok (1.3s), 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.2s), tests/startup_shader_cache_rekey_check.py ok (2.6s), 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: 28/57 hits; wall 212.8s
  • Real-GPU run not available (RunPod stopped).

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7191666698 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2795#issuecomment-7191666698). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-26T12:10:43Z. --- Win2025 WARP receipt for head 9ef253d1 (the author head 6b08636e updated with main; the PR diff is unchanged). Includes the new case I-raw-mask in startup_gfx2hlsl_compute_warp. Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit `9ef253d168444669d45eb52c158662ee75c741a3`: - **Debug (`--preset dev`)**: - Build (`cmake --build --preset dev --target d3d12_xs_device_obj d3d12_xs_shim startup_buffer_format_word3_check startup_stream_consumer -- -j 2`): `36.96s` (configure `2.02s`) - Test (`ctest --preset dev -R '^startup_gfx2hlsl_(compute|mask_overwrite)' --parallel 3 --no-tests=error --output-on-failure`): **70/70 passed** (`14.77s`: `startup_gfx2hlsl_compute_mask_spill_controls` `3.53s`, `startup_gfx2hlsl_compute_hardware` `4.16s`, `startup_gfx2hlsl_compute_warp` `4.19s`, `startup_gfx2hlsl_compute_spill_warp` `0.84s`, `startup_gfx2hlsl_compute_controls` `1.12s`, `startup_gfx2hlsl_compute_spill_hardware` `0.82s`, `startup_gfx2hlsl_compute_mbcnt_warp` `0.72s`, `startup_gfx2hlsl_compute_spill_controls` `2.76s`, `startup_gfx2hlsl_compute_mbcnt_hardware` `0.79s`, `startup_gfx2hlsl_compute_mask_spill_hardware` `0.75s`, `startup_gfx2hlsl_compute_dropped-store_warp` `0.32s`, `startup_gfx2hlsl_compute_mask_spill_warp` `0.76s`, `startup_gfx2hlsl_compute_c-unpredicated_warp` `0.31s`, `startup_gfx2hlsl_compute_b-offset_warp` `0.37s`, `startup_gfx2hlsl_compute_swapped-axes_warp` `0.35s`, `startup_gfx2hlsl_compute_c-unpredicated_hardware` `0.34s`, `startup_gfx2hlsl_compute_b-offset_hardware` `0.40s`, `startup_gfx2hlsl_compute_dropped-store_hardware` `0.39s`, `startup_gfx2hlsl_compute_swapped-axes_hardware` `0.40s`, `startup_gfx2hlsl_compute_spill_s-arm-swapped_warp` `0.45s`, `startup_gfx2hlsl_compute_f-peer_warp` `0.39s`, `startup_gfx2hlsl_compute_spill_s-arm-swapped_hardware` `0.45s`, `startup_gfx2hlsl_compute_s-borrow-flipped_hardware` `0.45s`, `startup_gfx2hlsl_compute_f-broadcast_warp` `0.38s`, `startup_gfx2hlsl_compute_m-else-unswitched_hardware` `0.43s`, `startup_gfx2hlsl_compute_spill_s-store-dropped_warp` `0.37s`, `startup_gfx2hlsl_compute_k-block-entered_warp` `0.40s`, `startup_gfx2hlsl_compute_m-else-unswitched_warp` `0.44s`, `startup_gfx2hlsl_compute_f-broadcast_hardware` `0.41s`, `startup_gfx2hlsl_compute_h-inner-unpredicated_hardware` `0.45s`, `startup_gfx2hlsl_compute_s-borrow-flipped_warp` `0.47s`, `startup_gfx2hlsl_compute_n-dropped-broadcast_hardware` `0.39s`, `startup_gfx2hlsl_compute_h-inner-unpredicated_warp` `0.43s`, `startup_gfx2hlsl_compute_g-swapped-offsets_hardware` `0.40s`, `startup_gfx2hlsl_compute_k-block-entered_hardware` `0.44s`, `startup_gfx2hlsl_compute_s-min-strict_warp` `0.44s`, `startup_gfx2hlsl_compute_f-peer_hardware` `0.42s`, `startup_gfx2hlsl_compute_spill_p-store-dropped_warp` `0.38s`, `startup_gfx2hlsl_compute_n-dropped-broadcast_warp` `0.43s`, `startup_gfx2hlsl_compute_j-scalar-dropped_hardware` `0.42s`, `startup_gfx2hlsl_compute_g-overlap_warp` `0.38s`, `startup_gfx2hlsl_compute_mask_spill_m-saveexec-dropped_hardware` `0.38s`, `startup_gfx2hlsl_compute_spill_s-store-dropped_hardware` `0.38s`, `startup_gfx2hlsl_compute_g-swapped-offsets_warp` `0.41s`, `startup_gfx2hlsl_compute_s-min-strict_hardware` `0.43s`, `startup_gfx2hlsl_compute_q-not-all-ones_warp` `0.40s`, `startup_gfx2hlsl_compute_mask_spill_m-mask-inverted_hardware` `0.35s`, `startup_gfx2hlsl_compute_j-scalar-dropped_warp` `0.41s`, `startup_gfx2hlsl_compute_g-overlap_hardware` `0.40s`, `startup_gfx2hlsl_compute_n-unmasked_hardware` `0.35s`, `startup_gfx2hlsl_compute_mask_spill_m-mask-inverted_warp` `0.37s`, `startup_gfx2hlsl_compute_spill_p-store-dropped_hardware` `0.35s`, `startup_gfx2hlsl_compute_q-not-all-ones_hardware` `0.37s`, `startup_gfx2hlsl_compute_p-dropped-or_warp` `0.37s`, `startup_gfx2hlsl_compute_q-block-entered_warp` `0.40s`, `startup_gfx2hlsl_compute_mask_spill_v-branch-inverted_warp` `0.37s`, `startup_gfx2hlsl_compute_p-dropped-or_hardware` `0.40s`, `startup_gfx2hlsl_compute_p-block-entered_hardware` `0.40s`, `startup_gfx2hlsl_compute_p-block-entered_warp` `0.40s`, `startup_gfx2hlsl_compute_mask_spill_m-saveexec-dropped_warp` `0.39s`, `startup_gfx2hlsl_compute_o-mask-kept_warp` `0.43s`, `startup_gfx2hlsl_compute_f-second-fill_hardware` `0.40s`, `startup_gfx2hlsl_compute_q-block-entered_hardware` `0.39s`, `startup_gfx2hlsl_compute_p-dropped-andn2_warp` `0.38s`, `startup_gfx2hlsl_compute_n-unmasked_warp` `0.39s`, `startup_gfx2hlsl_compute_o-mask-kept_hardware` `0.41s`, `startup_gfx2hlsl_compute_p-dropped-andn2_hardware` `0.37s`, `startup_gfx2hlsl_mask_overwrite_controls` `0.13s`, `startup_gfx2hlsl_compute_f-second-fill_warp` `0.39s`, `startup_gfx2hlsl_compute_mask_spill_v-branch-inverted_hardware` `0.36s`) - **Release `/O2` (`--preset release`)**: - Build (`cmake --build --preset release --target d3d12_xs_device_obj d3d12_xs_shim startup_buffer_format_word3_check startup_stream_consumer -- -j 2`): `59.65s` (configure `2.37s`) - Test (`ctest --preset release -R '^startup_gfx2hlsl_(compute|mask_overwrite)' --parallel 3 --no-tests=error --output-on-failure`): **70/70 passed** (`10.73s`: `startup_gfx2hlsl_compute_mask_spill_controls` `2.78s`, `startup_gfx2hlsl_compute_hardware` `3.22s`, `startup_gfx2hlsl_compute_warp` `3.26s`, `startup_gfx2hlsl_compute_spill_hardware` `0.70s`, `startup_gfx2hlsl_compute_controls` `0.88s`, `startup_gfx2hlsl_compute_mbcnt_warp` `0.73s`, `startup_gfx2hlsl_compute_mask_spill_hardware` `0.68s`, `startup_gfx2hlsl_compute_spill_controls` `2.30s`, `startup_gfx2hlsl_compute_spill_warp` `0.62s`, `startup_gfx2hlsl_compute_mask_spill_warp` `0.54s`, `startup_gfx2hlsl_compute_b-offset_warp` `0.25s`, `startup_gfx2hlsl_compute_c-unpredicated_warp` `0.24s`, `startup_gfx2hlsl_compute_mbcnt_hardware` `0.56s`, `startup_gfx2hlsl_compute_dropped-store_warp` `0.24s`, `startup_gfx2hlsl_compute_swapped-axes_warp` `0.25s`, `startup_gfx2hlsl_compute_dropped-store_hardware` `0.24s`, `startup_gfx2hlsl_compute_swapped-axes_hardware` `0.26s`, `startup_gfx2hlsl_compute_b-offset_hardware` `0.26s`, `startup_gfx2hlsl_compute_c-unpredicated_hardware` `0.25s`, `startup_gfx2hlsl_compute_mask_spill_m-saveexec-dropped_hardware` `0.24s`, `startup_gfx2hlsl_compute_s-min-strict_warp` `0.28s`, `startup_gfx2hlsl_compute_mask_spill_m-mask-inverted_hardware` `0.24s`, `startup_gfx2hlsl_compute_mask_spill_v-branch-inverted_hardware` `0.26s`, `startup_gfx2hlsl_compute_s-borrow-flipped_warp` `0.28s`, `startup_gfx2hlsl_compute_s-borrow-flipped_hardware` `0.28s`, `startup_gfx2hlsl_compute_s-min-strict_hardware` `0.29s`, `startup_gfx2hlsl_compute_m-else-unswitched_hardware` `0.27s`, `startup_gfx2hlsl_compute_spill_s-arm-swapped_hardware` `0.30s`, `startup_gfx2hlsl_compute_k-block-entered_hardware` `0.28s`, `startup_gfx2hlsl_compute_n-dropped-broadcast_hardware` `0.26s`, `startup_gfx2hlsl_compute_m-else-unswitched_warp` `0.30s`, `startup_gfx2hlsl_compute_k-block-entered_warp` `0.26s`, `startup_gfx2hlsl_compute_j-scalar-dropped_warp` `0.26s`, `startup_gfx2hlsl_compute_f-broadcast_warp` `0.26s`, `startup_gfx2hlsl_compute_j-scalar-dropped_hardware` `0.27s`, `startup_gfx2hlsl_compute_h-inner-unpredicated_warp` `0.26s`, `startup_gfx2hlsl_compute_g-swapped-offsets_hardware` `0.26s`, `startup_gfx2hlsl_compute_f-peer_warp` `0.27s`, `startup_gfx2hlsl_compute_g-overlap_warp` `0.26s`, `startup_gfx2hlsl_compute_mask_spill_v-branch-inverted_warp` `0.24s`, `startup_gfx2hlsl_compute_g-swapped-offsets_warp` `0.26s`, `startup_gfx2hlsl_compute_f-peer_hardware` `0.26s`, `startup_gfx2hlsl_compute_h-inner-unpredicated_hardware` `0.27s`, `startup_gfx2hlsl_compute_n-dropped-broadcast_warp` `0.26s`, `startup_gfx2hlsl_compute_f-second-fill_hardware` `0.26s`, `startup_gfx2hlsl_compute_q-not-all-ones_hardware` `0.27s`, `startup_gfx2hlsl_compute_o-mask-kept_hardware` `0.26s`, `startup_gfx2hlsl_compute_f-broadcast_hardware` `0.26s`, `startup_gfx2hlsl_compute_spill_s-arm-swapped_warp` `0.28s`, `startup_gfx2hlsl_compute_p-dropped-andn2_warp` `0.26s`, `startup_gfx2hlsl_compute_p-dropped-or_hardware` `0.26s`, `startup_gfx2hlsl_compute_g-overlap_hardware` `0.28s`, `startup_gfx2hlsl_compute_p-dropped-or_warp` `0.27s`, `startup_gfx2hlsl_compute_o-mask-kept_warp` `0.27s`, `startup_gfx2hlsl_compute_p-dropped-andn2_hardware` `0.27s`, `startup_gfx2hlsl_compute_p-block-entered_hardware` `0.27s`, `startup_gfx2hlsl_compute_p-block-entered_warp` `0.26s`, `startup_gfx2hlsl_compute_n-unmasked_warp` `0.27s`, `startup_gfx2hlsl_compute_f-second-fill_warp` `0.27s`, `startup_gfx2hlsl_compute_q-block-entered_hardware` `0.26s`, `startup_gfx2hlsl_compute_q-not-all-ones_warp` `0.26s`, `startup_gfx2hlsl_compute_q-block-entered_warp` `0.27s`, `startup_gfx2hlsl_compute_n-unmasked_hardware` `0.27s`, `startup_gfx2hlsl_compute_spill_s-store-dropped_warp` `0.25s`, `startup_gfx2hlsl_compute_mask_spill_m-mask-inverted_warp` `0.25s`, `startup_gfx2hlsl_compute_spill_p-store-dropped_hardware` `0.24s`, `startup_gfx2hlsl_compute_spill_s-store-dropped_hardware` `0.25s`, `startup_gfx2hlsl_mask_overwrite_controls` `0.11s`, `startup_gfx2hlsl_compute_mask_spill_m-saveexec-dropped_warp` `0.24s`, `startup_gfx2hlsl_compute_spill_p-store-dropped_warp` `0.24s`) - **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_image_store_check.py` ok (`0.5s`), `tests/startup_compute_image_store_d16_check.py` ok (`0.5s`), `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.9s`), `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.1s`), `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.2s`), `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.0s`), `tests/startup_gfx2hlsl_pack_b32_f16_check.py` ok (`0.2s`), `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.1s`), `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.1s`), `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.2s`), `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 (`5.2s`), `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 (`1.0s`), `tests/startup_gfx2hlsl_swap_check.py` ok (`0.4s`), `tests/startup_gfx2hlsl_vopc_sdwa_check.py` ok (`4.1s`), `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.2s`), `tests/startup_image_3d_check.py` ok (`0.2s`), `tests/startup_image_gather_lz_check.py` ok (`0.7s`), `tests/startup_image_load_d16_check.py` ok (`1.0s`), `tests/startup_image_sample_a16_check.py` ok (`0.3s`), `tests/startup_image_sample_b_check.py` ok (`0.3s`), `tests/startup_image_sample_c_check.py` ok (`0.3s`), `tests/startup_image_sample_l_check.py` ok (`0.2s`), `tests/startup_image_sample_lod_check.py` ok (`0.6s`), `tests/startup_inline_sampler_check.py` ok (`0.2s`), `tests/startup_mesh57_depth_only_check.py` ok (`0.3s`), `tests/startup_mesh57_lane_spill_check.py` ok (`0.3s`), `tests/startup_mesh57_loop_check.py` ok (`0.2s`), `tests/startup_mesh57_loop_refusal_check.py` ok (`0.2s`), `tests/startup_mesh57_skeleton_check.py` ok (`1.3s`), `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.2s`), `tests/startup_shader_cache_rekey_check.py` ok (`2.6s`), `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`: 28/57 hits; wall `212.8s` - Real-GPU run not available (RunPod stopped). 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!2787
No description provided.