Repository navigation
GPU: keep the initial pipeline of new command lists - #461
fuzeofficlal wants to merge 1 commit into
Conversation
|
Verified Not covered: title command lists that are opened, submitted and reused in the world (no game data here). |
|
Tested on Windows 11 + NVIDIA GeForce RTX 3060 Ti (8 GB, MSVC Tested
Not tested: World streaming past the first screens, D3D12 debug layer ( AI use: Antigravity ( |
mercuryVM
left a comment
There was a problem hiding this comment.
Tested bf84506 on Windows 11, RTX 5070, MSVC: cargo test --workspace --no-fail-fast passes (265 passed, 0 failed), including command_list_creation_keeps_the_initial_pipeline.
new_listnow stores the creation PSO throughState::set_pipeline, whichResetalready uses, so creating a list and resetting it now treat the initial pipeline the same way. Like D3D12, no reference is taken. The title keeps the PSO alive.- Nit:
#[cfg(not(windows))] let _ = pipeline;looks unnecessary, sincepipelineis used unconditionally in thestateinitializer above it.
No issues found.
AI-assisted (Claude Code).
|
Correction to my review: the AI-assisted (Claude Code). |
… command lists Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Seed draw state with the optional pipeline from both list creation entry points. The regression covers creation and Reset using a synthetic pipeline object.
bf84506 to
020a790
Compare
|
Automated triage for the maintainers. Closing because another open pull request covers the same change. See #1446. Keeps the initial pipeline passed at list creation; #1446 does the same and merges clean. If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution. |
Both command-list creation entry points accept an initial pipeline state. Forward it into the list's draw state so the first draw or dispatch can use it when the caller sets the PSO at creation. Host pipeline creation stays lazy.
The synthetic regression creates a shim pipeline and passes it to the regular and X command-list entry points. Both calls returned success on main but stored a null pipeline. With this change both retain the supplied pipeline, and ResetX and Reset still clear and restore the pipeline as requested.
The GPU test suite passed on Windows with 46 tests in diagnostics and 44 in the default build, with one ignored benchmark in each configuration. The focused regression also passed with WARP. The staged asset policy check passed.