Skip to content

runtime: distinguish copied output UAV refusals - #3399

Open
R0Y00 wants to merge 1 commit into
mainfrom
codex/compute-uav-alias-diagnostics
Open

R0Y00 wants to merge 1 commit into
mainfrom
codex/compute-uav-alias-diagnostics

Conversation

@R0Y00

@R0Y00 R0Y00 commented Nov 28, 2026

Copy link
Copy Markdown
Owner

Refs #3224.

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 #3224

@Leyukaka Leyukaka left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve at 647db68. 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 212d4b5 still expects an output buffer descriptor is a view token at startup_compute_dispatch_output_check.py:39, and #3394 changes that expectation.
  • Merges cleanly with main 212d4b5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants