runtime: distinguish copied output UAV refusals #3401

Manually merged
github merged 1 commit from github-bot/gh-3399 into main 2026-11-29 09:04:56 +00:00 AGit
Owner

@⁠R0Y00 on GitHub · 2026-11-28 21:39 UTC · original
R0Y00:codex/compute-uav-alias-diagnostics → main · +20 −8 · 3 files · 1 commits · merged 2026-11-29 09:00 UTC

Refs #3226.

Change

The latest reported 600-second startup census grouped 46 shaders and 168,128 dispatches under the output UAV backing-alias refusal. This patch gives two cases separate census reasons: a UAV that covers only part of a copied placement, and a whole copied UAV with X2W_COPIED_OBJECT_UAV disabled. Other alias mismatches keep the existing reason. The acceptance conditions stay the same.

The source-built fixture exercises both refusals and verifies that all output words retain their sentinel values. This patch adds diagnostics. The census has yet to be rerun with the new reasons.

Local Release validation

Tested commit 647db688 (based on 8ecd30fe) on Windows 11 build 26200.9974, RTX 4060 Laptop GPU with driver 616.56, and WARP 10.0.26100.9818. The hardware fixtures used the D3D12 debug layer.

cmake --build --preset release --target startup_stream_consumer d3d12_xs_shim compile_dxil native_compute_pack_check -j 8
ctest --preset release --no-tests=error -R '^native_compute_pack(_hardware)?$'
ctest --preset release --no-tests=error -R '^startup_compute_dispatch_(native|output)_(warp|hardware)$'
  • The build succeeded. native_compute_pack and native_compute_pack_hardware passed, including both copied-placement controls.
  • startup_compute_dispatch_native_hardware passed. startup_compute_dispatch_native_warp reported capability skip (77) because the adapter has no 32-lane waves.
  • startup_compute_dispatch_output_warp and startup_compute_dispatch_output_hardware both failed in dispatch-output-texture-token. The fixture expects an output buffer descriptor is a view token. The runtime refuses the slot-18 token earlier with an output token does not identify a slot-19 UAV.

Mainline control

I rebuilt unmodified main at 8ecd30fe on the same machine and reran the two output tests with:

ctest --preset release --no-tests=error -R '^startup_compute_dispatch_output_(warp|hardware)$'

Both failed in the same case with the same refusal string. The control confirms the failures predate this patch. Prior report in #3226

**@⁠R0Y00** on GitHub · 2026-11-28 21:39 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3399) `R0Y00:codex/compute-uav-alias-diagnostics` → `main` · +20 −8 · 3 files · 1 commits · merged 2026-11-29 09:00 UTC Refs #3226. ## Change The latest reported 600-second startup census grouped 46 shaders and 168,128 dispatches under the output UAV backing-alias refusal. This patch gives two cases separate census reasons: a UAV that covers only part of a copied placement, and a whole copied UAV with `X2W_COPIED_OBJECT_UAV` disabled. Other alias mismatches keep the existing reason. The acceptance conditions stay the same. The source-built fixture exercises both refusals and verifies that all output words retain their sentinel values. This patch adds diagnostics. The census has yet to be rerun with the new reasons. ## Local Release validation Tested commit `647db688` (based on `8ecd30fe`) on Windows 11 build 26200.9974, RTX 4060 Laptop GPU with driver 616.56, and WARP 10.0.26100.9818. The hardware fixtures used the D3D12 debug layer. ```powershell cmake --build --preset release --target startup_stream_consumer d3d12_xs_shim compile_dxil native_compute_pack_check -j 8 ctest --preset release --no-tests=error -R '^native_compute_pack(_hardware)?$' ctest --preset release --no-tests=error -R '^startup_compute_dispatch_(native|output)_(warp|hardware)$' ``` - The build succeeded. `native_compute_pack` and `native_compute_pack_hardware` passed, including both copied-placement controls. - `startup_compute_dispatch_native_hardware` passed. `startup_compute_dispatch_native_warp` reported capability skip (77) because the adapter has no 32-lane waves. - `startup_compute_dispatch_output_warp` and `startup_compute_dispatch_output_hardware` both failed in `dispatch-output-texture-token`. The fixture expects `an output buffer descriptor is a view token`. The runtime refuses the slot-18 token earlier with `an output token does not identify a slot-19 UAV`. ## Mainline control I rebuilt unmodified `main` at `8ecd30fe` on the same machine and reran the two output tests with: ```powershell ctest --preset release --no-tests=error -R '^startup_compute_dispatch_output_(warp|hardware)$' ``` Both failed in the same case with the same refusal string. The control confirms the failures predate this patch. [Prior report in #3226](https://git.gtahub.st/github/R0Y00--Xbox2Windows/issues/3226)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 21:44:25 +00:00
Author
Owner

@⁠Leyukaka on GitHub · 2026-11-29 01:57 UTC · original · approved these changes

Approve at 647db688. This is from reading the diff only. I did not build or run it.

  • The acceptance set is unchanged (d3d12_compute_dispatch.inl:534-541). A copied placement is accepted only when the view covers it whole and X2W_COPIED_OBJECT_UAV is on, as before. Non-copied mismatches keep the old reason. No code compares the old output reason text; only native_compute_pack_check.py did.
  • The fixture's copied-whole view (startup_stream_consumer.cpp:436-447) covers the full words * 4 placed buffer, so it reaches the env check. Swapping the partial and env checks would fail the copied case.
  • Not covered: no test sets X2W_COPIED_OBJECT_UAV=1. Mutating if (!copied_views) to if (true) at :539 would refuse every whole copy, and no test would catch it. This gap predates the PR. A copied-whole run with the variable set, expecting result=bound, would close it.
  • CI does not run the changed test. The loop is in the hardware path, so only native_compute_pack_hardware reaches it. The pr test preset leaves out native_compute_pack*, and push CI excludes _hardware$ (windows.yml:493,498). The evidence for the new reasons is the local hardware run.
  • The startup_compute_dispatch_output_* failures are unrelated to this diff: main 212d4b5f still expects an output buffer descriptor is a view token at startup_compute_dispatch_output_check.py:39, and #3396 changes that expectation.
  • Merges cleanly with main 212d4b5f.
**@⁠Leyukaka** on GitHub · 2026-11-29 01:57 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3399#pullrequestreview-6100989727) · **approved these changes** Approve at 647db688. This is from reading the diff only. I did not build or run it. - The acceptance set is unchanged (`d3d12_compute_dispatch.inl:534-541`). A copied placement is accepted only when the view covers it whole and `X2W_COPIED_OBJECT_UAV` is on, as before. Non-copied mismatches keep the old reason. No code compares the old output reason text; only `native_compute_pack_check.py` did. - The fixture's `copied-whole` view (`startup_stream_consumer.cpp:436-447`) covers the full `words * 4` placed buffer, so it reaches the env check. Swapping the partial and env checks would fail the `copied` case. - Not covered: no test sets `X2W_COPIED_OBJECT_UAV=1`. Mutating `if (!copied_views)` to `if (true)` at `:539` would refuse every whole copy, and no test would catch it. This gap predates the PR. A `copied-whole` run with the variable set, expecting `result=bound`, would close it. - CI does not run the changed test. The loop is in the `hardware` path, so only `native_compute_pack_hardware` reaches it. The `pr` test preset leaves out `native_compute_pack*`, and push CI excludes `_hardware$` (`windows.yml:493,498`). The evidence for the new reasons is the local hardware run. - The `startup_compute_dispatch_output_*` failures are unrelated to this diff: main 212d4b5f still expects `an output buffer descriptor is a view token` at `startup_compute_dispatch_output_check.py:39`, and #3396 changes that expectation. - Merges cleanly with main 212d4b5f.
github manually merged commit 0b90fa3a02 into main 2026-11-29 09:04:56 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.