tests: restore green main after the SDWA and UAV merges #3542

Merged
lambirou merged 2 commits from upstream-pr/3542 into main 2026-11-30 08:35:26 +00:00
lambirou commented 2026-11-30 03:32:12 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-11-30T03:32:12Z.


Refs #3507.

main at 44a3ad5a has six failures after #3470 and #3471. This fixes the four causes.

  1. startup_gfx2hlsl_watch: a watch pass treated every request written after the watch started as new even when an earlier pass had already written <key>.fail; it rewrote the failure and its mtime. The pass now skips a failure recorded during the current watch when its mtime is at least the request's. A failure that predates the watch is still retried once, and a request modified after its failure is still retried.
  2. startup_triage_run: add an output UAV interval exceeds the D3D12 buffer view element limit to COMPUTE_DISPATCH_REASONS, the reason added by #3471.
  3. native_cvt_f16_i16 / native_sdwa_profiles: #3470 admits the binary16 conversion SDWA profiles and #3300 admits v_sin_f16/v_cos_f16; update the obsolete refusal controls. The cvt f16/i16 control now expects the specific DWORD-destination refusal, and the v_sin refusal is removed because native_sin_cos_f16_check.py pins the positive SDWA forms.
  4. startup_resource_retire_title_hardware_debug1: case6_written_generation_preserved releases the newer wrapper and calls settle() without waiting for the release-time fences; sync direct and gated before settle(), as #3457 did for startup_resource_retire.cpp. This is the test-only change that #3543 carried separately; it is folded here so the main-green fix is one review unit.

Validation

  • ctest --preset dev --no-tests=error -R '^(startup_gfx2hlsl_watch|startup_triage_run|native_cvt_f16_i16_(ir|controls)|native_sdwa_profiles_ir)$' -V -> 5/5 passed.
  • ctest --preset dev --no-tests=error -R '^(startup_gfx2hlsl_watch|native_sdwa_profiles_dxil|native_sin_cos_f16_ir)$' --repeat until-fail:3 -> 3/3 passed three times; the watch test passed in 12.83-24.18 s.
  • startup_resource_retire_title_hardware_debug0: 5/5 passed in Debug and 5/5 passed at /O2 on the RX 9060 XT.
  • startup_resource_retire_title_hardware_debug1: 5/5 skipped with code 77 in both presets because this host has no C:\\Windows\\System32\\d3d12sdklayers.dll; the CI failure itself was not reproduced locally.
  • python -B tests/docs_links_check.py -> 181 Markdown files and 726 links passed.
  • python -B tests/bidi_controls_check.py -> 2,688 files, no bidirectional controls.

Not measured: the exact _debug1 retire path; the D3D12 debug layer is unavailable on this host.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:5558475750 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3542). Originally posted by [lambirou](https://github.com/lambirou) on 2026-11-30T03:32:12Z. --- Refs #3507. `main` at 44a3ad5a has six failures after #3470 and #3471. This fixes the four causes. 1. **`startup_gfx2hlsl_watch`**: a watch pass treated every request written after the watch started as new even when an earlier pass had already written `<key>.fail`; it rewrote the failure and its mtime. The pass now skips a failure recorded during the current watch when its mtime is at least the request's. A failure that predates the watch is still retried once, and a request modified after its failure is still retried. 2. **`startup_triage_run`**: add `an output UAV interval exceeds the D3D12 buffer view element limit` to `COMPUTE_DISPATCH_REASONS`, the reason added by #3471. 3. **`native_cvt_f16_i16` / `native_sdwa_profiles`**: #3470 admits the binary16 conversion SDWA profiles and #3300 admits `v_sin_f16`/`v_cos_f16`; update the obsolete refusal controls. The cvt f16/i16 control now expects the specific DWORD-destination refusal, and the v_sin refusal is removed because `native_sin_cos_f16_check.py` pins the positive SDWA forms. 4. **`startup_resource_retire_title_hardware_debug1`**: `case6_written_generation_preserved` releases the newer wrapper and calls `settle()` without waiting for the release-time fences; sync `direct` and `gated` before `settle()`, as #3457 did for `startup_resource_retire.cpp`. This is the test-only change that #3543 carried separately; it is folded here so the main-green fix is one review unit. ## Validation - `ctest --preset dev --no-tests=error -R '^(startup_gfx2hlsl_watch|startup_triage_run|native_cvt_f16_i16_(ir|controls)|native_sdwa_profiles_ir)$' -V` -> 5/5 passed. - `ctest --preset dev --no-tests=error -R '^(startup_gfx2hlsl_watch|native_sdwa_profiles_dxil|native_sin_cos_f16_ir)$' --repeat until-fail:3` -> 3/3 passed three times; the watch test passed in 12.83-24.18 s. - `startup_resource_retire_title_hardware_debug0`: 5/5 passed in Debug and 5/5 passed at /O2 on the RX 9060 XT. - `startup_resource_retire_title_hardware_debug1`: 5/5 skipped with code 77 in both presets because this host has no `C:\\Windows\\System32\\d3d12sdklayers.dll`; the CI failure itself was not reproduced locally. - `python -B tests/docs_links_check.py` -> 181 Markdown files and 726 links passed. - `python -B tests/bidi_controls_check.py` -> 2,688 files, no bidirectional controls. Not measured: the exact `_debug1` retire path; the D3D12 debug layer is unavailable on this host. AI-assisted.
lukaslw-lab commented 2026-11-30 06:40:45 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-30T06:40:45Z.

Review: APPROVED


Reviewed 8dfc23d7 by reading the diff; not built or run.

Verdict: approve. Both commits fix the six main failures from #3507. CI is green at this head, which contains main 44a3ad5a. No MUST.

  • SHOULD The new watch skip has no test (gfx2hlsl.py:14084-14096). It should be shown that a request rewritten during the watch, after its failure, is still retried. Line 80 calls pending_keys without watch_since_ns, and the Popen case (startup_gfx2hlsl_watch_check.py:531-556) only adds new keys. One pending_keys(d, False, watch_since_ns=...) call, with the request touched after its .fail, would pin it. This can follow after merge.
  • Checked, no finding:
    • triage_run.py:181 is exactly the reason #3471 added. #3546, #3548 and #3559 carry only this line, and #3543 only the retire sync, so this PR covers all four.
    • The watch skip applies the same up-to-date rule as the skip_failed branch (fail mtime >= max(request, described)), only to failures written after watch_since_ns, and never to a recheck. A failure from before the watch keeps its one retry.
    • startup_resource_retire_title.cpp:883-885 syncs direct and gated before settle(), like the stages at :621 and :736 and #3457. It is test-only.
    • The SDWA/cvt control edits follow #3470/#3300, and the v_sin_f16 positive forms stay pinned in native_sin_cos_f16. The doc text matches.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6107862166 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3542#pullrequestreview-6107862166). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-11-30T06:40:45Z. **Review:** APPROVED --- Reviewed `8dfc23d7` by reading the diff; not built or run. **Verdict: approve.** Both commits fix the six main failures from #3507. CI is green at this head, which contains main `44a3ad5a`. No MUST. - **SHOULD** The new watch skip has no test (`gfx2hlsl.py:14084-14096`). It should be shown that a request rewritten *during* the watch, after its failure, is still retried. Line 80 calls `pending_keys` without `watch_since_ns`, and the Popen case (`startup_gfx2hlsl_watch_check.py:531-556`) only adds new keys. One `pending_keys(d, False, watch_since_ns=...)` call, with the request touched after its `.fail`, would pin it. This can follow after merge. - Checked, no finding: - `triage_run.py:181` is exactly the reason #3471 added. #3546, #3548 and #3559 carry only this line, and #3543 only the retire sync, so this PR covers all four. - The watch skip applies the same up-to-date rule as the `skip_failed` branch (`fail mtime >= max(request, described)`), only to failures written after `watch_since_ns`, and never to a `recheck`. A failure from before the watch keeps its one retry. - `startup_resource_retire_title.cpp:883-885` syncs `direct` and `gated` before `settle()`, like the stages at :621 and :736 and #3457. It is test-only. - The SDWA/cvt control edits follow #3470/#3300, and the `v_sin_f16` positive forms stay pinned in `native_sin_cos_f16`. The doc text matches.
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!3542
No description provided.