Repository navigation
GPU list: bind initial pipeline state in create_list and create_list_x - #1446
Conversation
…list and create_list_x
…list and create_list_x
|
Ran Interaction note: this is functionally the same as the VIC-BT-003 hunk in #1353. Both pass On the AI-assisted review (Claude Code); checked on Windows 11 / RTX 5090. |
|
Thanks @wbkepler for verifying on RTX 5090 and pointing out the AI-assisted; synthetic tests only, no game files. |
|
Heads-up: #461 (opened earlier today) makes the same change. Tested on Windows 11, RTX 4070 SUPER (driver 621.14), with the repo toolchain, merged into current
I didn't test with game data. Tested locally with an AI-assisted script (Claude Code); I checked the results before posting. |
…list and create_list_x
CreateCommandList and the console's description form take an initial pipeline, as D3D12's pInitialState; XTP dropped it, so a list had no pipeline until SetPipelineState, and draws and dispatches recorded before were dropped for want of one. new_list now sets it as SetPipelineState does, and logs its first bind once the list is handed out; Reset logs the first bind of the pipeline it passes too (it already set it). Critical review: the upstream mechanism holds, with one addition XTP needs. Besides the draw state, an XTP list keeps the title's pipeline in List::pipeline, which DispatchX reads to tell thread counts from group counts (kept_pipeline); upstream has no such field. The creation's pipeline goes there too, or a DispatchX recorded before SetPipelineState would still find none. Test: lists_bind_the_initial_pipeline_on_creation, upstream's (first bind counted per creation method, null sets none), on a host device, also checking the draw state's and DispatchX's pipeline. Ported from Marvisak/VIctory#1446 (head 8d3a025) by geiyiliyabumo
Summary
Fixes \VIC-BT-003\ (P0, tracked in #1242) in \crates/victory-gpu/src/list.rs:
ew_list, initializing Windows draw state (\state.set_pipeline(pipeline)) and recording \crate::pipeline::bound(pipeline)\ on successful creation (while keeping null \pInitialState\ a clean no-op).
Verification
AI-assisted; synthetic tests only, no game files.