runtime: distinguish copied output UAV refusals #3401
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!3401
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3399"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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 UTCRefs #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_UAVdisabled. 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 on8ecd30fe) 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.native_compute_packandnative_compute_pack_hardwarepassed, including both copied-placement controls.startup_compute_dispatch_native_hardwarepassed.startup_compute_dispatch_native_warpreported capability skip (77) because the adapter has no 32-lane waves.startup_compute_dispatch_output_warpandstartup_compute_dispatch_output_hardwareboth failed indispatch-output-texture-token. The fixture expectsan output buffer descriptor is a view token. The runtime refuses the slot-18 token earlier withan output token does not identify a slot-19 UAV.Mainline control
I rebuilt unmodified
mainat8ecd30feon the same machine and reran the two output tests with:Both failed in the same case with the same refusal string. The control confirms the failures predate this patch. Prior report in #3226
@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.d3d12_compute_dispatch.inl:534-541). A copied placement is accepted only when the view covers it whole andX2W_COPIED_OBJECT_UAVis on, as before. Non-copied mismatches keep the old reason. No code compares the old output reason text; onlynative_compute_pack_check.pydid.copied-wholeview (startup_stream_consumer.cpp:436-447) covers the fullwords * 4placed buffer, so it reaches the env check. Swapping the partial and env checks would fail thecopiedcase.X2W_COPIED_OBJECT_UAV=1. Mutatingif (!copied_views)toif (true)at:539would refuse every whole copy, and no test would catch it. This gap predates the PR. Acopied-wholerun with the variable set, expectingresult=bound, would close it.hardwarepath, so onlynative_compute_pack_hardwarereaches it. Theprtest preset leaves outnative_compute_pack*, and push CI excludes_hardware$(windows.yml:493,498). The evidence for the new reasons is the local hardware run.startup_compute_dispatch_output_*failures are unrelated to this diff: main212d4b5fstill expectsan output buffer descriptor is a view tokenatstartup_compute_dispatch_output_check.py:39, and #3396 changes that expectation.212d4b5f.