Repository navigation
startup: record a UAV of a resource without unordered access as not created - #2710
Conversation
…reated A view the desktop does not create for lack of the unordered access flag left no record since the skipped-view rework, so a translated compute Dispatch saw no view token and refused with another reason than the one startup_compute_dispatch_texture expects. Record it as not created again; skips for a mismatched dimension keep leaving the previous record alone.
|
I built
The new The two-file regression test applies directly to this head. On the original PR all three backends fail its new assertion with exactly 64 mismatched halves. As a diagnostic I recorded the denied UAV only when Windows 11 26100.9711, Zig/Clang 0.13.0, DXC 1.9.2609. Intel driver 32.0.101.5973, NVIDIA 32.0.15.9579, WARP 10.0.26100.9711. Debug layer unavailable. AI-assisted with Codex (GPT-6.2 Astra, xhigh). |
|
@RavenCurseBurg thank you, the occupied-slot case was a real regression. Fixed in
Verification (Windows Server 2025, build 26100, D3D12 WARP, head
AI-assisted; commands listed were executed locally. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5accaeaeec
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Independent Windows Release rerun at On the earlier head cmake --build --preset release --target startup_stream_consumer d3d12_xs_shim
ctest --preset release --no-tests=error -j 1 -R '^startup_(compute_dispatch|compute_live_retry|pixel_uav)' --output-on-failure |
|
@MasterDomino #2710 is ready for review and merge.
AI-assisted; commands listed were executed locally. |
MasterDomino
left a comment
There was a problem hiding this comment.
Approving 2aa18479 (13 commits behind main, merges cleanly; main hasn't touched the changed files since the base).
What changed. A denied slot-19 creation now records "not created" only when the descriptor holds no live view. A live view is either the desktop shadow entry or a materialized token the title copied into title memory. Dimension and packed-format skips still leave the earlier record, as #2649 intended.
Every reader of the new state that I found:
- compute Dispatch now names "an output texture view was not created on the desktop";
- the pixel UAV path names the missing
ALLOW_UNORDERED_ACCESS; ClearUnorderedAccessView*still refuses ("view was skipped at creation").
None of them treats the record as usable. Retire references are untouched, since they apply only to slot 18.
Environment: Windows 11 build 26300; AMD Radeon RX 9070 XT (driver 32.0.32029.2010); WARP 10.0.26100.9818; debug layer on, 0 errors; dev preset.
Runs: ctest --preset dev --no-tests=error -j 1 -R '^startup_(compute_dispatch|compute_live_retry|pixel_uav|view_|resource_retire|resource_desc)|uav': 62 passed, 0 failed, 2 capability skips (startup_view_heap_warp and _hardware: the adapter accepts the descriptors directly).
Negative controls: one-line mutants, each rebuilt and run against the dispatch-texture and pixel-UAV tests on WARP and hardware:
- dropping the live-view guard fails the occupied case (64 halves differ);
- dropping the title-memory token check fails the copied-token case (64 halves differ);
- never recording the refusal fails at
startup_compute_dispatch_texture_check.py:101and in pixelno-ua; - recording the view as created survives. That's equivalent today, because every consumer re-checks the resource flag.
Note: in the occupied case the Dispatch writes the earlier texture. That's what the desktop heap still holds, and it matches the behaviour before #2649.
AI-assisted; commands listed were executed locally.
Part of #1723
What this unblocks:
startup_compute_dispatch_texture_warpand_hardware(added by #2532), which fail on main attests/startup_compute_dispatch_texture_check.py:101.Cause
In the
texture-store-deniedcase the title creates an unordered access view of a texture that lacksALLOW_UNORDERED_ACCESS. The runtime skips the view. Before #2649 a skipped view was still recorded as "not created", and the title descriptor memory got a view token. The skip rework routes every skip throughrefuse_view, which for a UAV (slot 19) records nothing. A translated compute Dispatch then finds no view token and refuses with "an output texture entry is not the token of an unordered access view". The fixture expects "an output texture view was not created on the desktop".Change
src/startup_stubs/d3d12_xs_device.cpp: remember that the skip came from the missing unordered access flag and record that UAV as not created inrefuse_view, only when the descriptor does not already hold a view created on the desktop. Skips for a mismatched or unknown view dimension still leave the previous descriptor record alone, as runtime: give unknown-dimension views a default view and skip mismatched ones #2649 intended.src/startup_stubs/d3d12_capture.inl:descriptor_has_live_view(a refused creation must not replace a live UAV, whether the view was created in that slot or its token was copied there in title memory).tests/startup_stream_consumer.cpp,tests/startup_compute_dispatch_texture_check.py: newtexture-store-occupiedandtexture-store-copiedcases; the first or copied view stays and the Dispatch still writes the texture (GPU readback).Verification
Linux:
git diff --check origin/main..HEAD: cleanpython3 tests/bidi_controls_check.py,python3 tests/docs_links_check.py: okWin2025 on head
e6dfa885(dev and release, default slot pool):5accaeae): with the live-view check removed, bothstartup_compute_dispatch_texture_*tests fail in the occupied-slot case (startup_compute_dispatch_texture_check.py:106): the Dispatch is refused with "an output texture view was not created on the desktop".AI-assisted; commands listed were executed locally.