Repository navigation
startup: implement command-list slots 53-55 ClearUAV and Discard (Part of #870) - #1972
Conversation
Merge-order check: these four PRs cannot all land in any order — one pair conflicts, the other three composeFour open PRs now add command-list behaviour to the same two files ( And the four-way merge conflicts on the same pair, at the shared The three that do compose, compose for realMerged #1975 + #1974 + #1972 onto git merge pr-1975 pr-1974 pr-1972 # 0 conflicts
cmake --preset dev # Generating done
cmake --build --preset dev --target startup_root_constant_store startup_list_dispatch_check startup_clear_uav
build exit 0
ctest --preset dev -R 'root_constant|list_dispatch|clear_uav'
1/6 startup_root_constant_store ............ Passed 0.15
2/6 startup_clear_uav_warp ................. Passed 0.62
3/6 startup_clear_uav_hardware ............. Passed 4.03 (physical GPU, not a skip)
4/6 startup_list_dispatch .................. Passed 0.14
5/6 startup_list_dispatch_no-limit_control . Passed 0.03
6/6 startup_list_dispatch_no-state_control . Passed 0.02
100% tests passed, 0 tests failed out of 6So the command-list slots those three add coexist in one build, including both negative controls that #1974 registers. What this means for orderingNothing is semantically wrong with #1944 — it is a text conflict at a shared anchor. The practical consequence is that whichever of I did not resolve the conflict myself: the resolution depends on which PR the maintainer wants first, and inventing an ordering would Aside, same family#1951 and #1947 (the two Notes
|
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: 0d81de30e1
ℹ️ 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".
|
WARP and hardware run at head In both So the test passes and reports 0 errors although the layer reported errors, on both WARP and the physical GPU. Codex's inline P2 comment on |
…ource) Part of R0Y00#870. Slots 53 and 54 clear a UAV through its shadow record (CPU handle) with the GPU handle checked against known heaps; slot 55 discards render, depth and UAV resources and drops other resources. Refusals are logged and counted. Adds startup_clear_uav (WARP + hardware readback).
…state, count debug errors via callback
99cc35a to
3792cc2
Compare
|
Head .\tools\dev.ps1; ctest --preset dev --no-tests=error -j1 -R '^startup_clear_uav_warp$' -V
.\tools\dev.ps1; ctest --preset dev --no-tests=error -j1 -R '^startup_clear_uav_hardware$' -VEnvironment: NVIDIA GeForce RTX 3070 Ti (driver 32.0.16.2101) and WARP; Windows 11 build 26300.9974; Debug build; D3D12 debug layer enabled ( Compared with my earlier run at
I did not run a negative control that makes the callback fire in this run, so "0 errors" shows that no error message arrived, not that the callback is proven to catch one. |
|
Stage-2 verification at
AI-assisted; commands listed were executed locally. |
|
Win2025 WARP receipt for head 1c4a9ac after updating with main. Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit
AI-assisted; commands listed were executed locally. |
Part of #870
What this unblocks: render targets and UAV buffers cleared (and discarded) on a list before the first world frame no longer hit the no-op trap at list slots 53/54/55.
Summary:
startup_clear_uav(cteststartup_clear_uav_warp/_hardware): uint clear, rect clear, float clear, refused clears (bad GPU handle, empty CPU handle, no values) leave the target untouched, discards with and without region; readback on the desktop device, no device removal, no debug-layer errors. Without the handlers the slots are no-ops and the readback assertions fail.Verification:
git diff --check: cleanx86_64-w64-mingw32-g++ -std=c++17 -fsyntax-only tests/startup_clear_uav.cpp: no errorsx86_64-w64-mingw32-g++ -fsyntax-onlyon d3d12_xs_device.cpp : only the pre-existing MSVC__try/__excepterrors in local_log.h, none in the new codectest -R startup_clear_uavon WARP and hardwareAI-assisted; commands listed were executed locally.