GPU list: bind initial pipeline state in create_list and create_list_x #1445
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1446"
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?
Imported from Marvisak/VIctory. Originally posted by geiyiliyabumo on 2026-11-24T18:04:21Z.
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.
Imported from Marvisak/VIctory. Originally posted by wbkepler on 2026-11-24T20:56:16Z.
Ran
lists_bind_the_initial_pipeline_on_creationon Windows 11 / RTX 5090 with this branch (e52777a): passed.Interaction note: this is functionally the same as the VIC-BT-003 hunk in #1353. Both pass
pipelinethroughnew_listintoState, for bothcreate_listandcreate_list_x. This version is slightly tidier: it callspipeline::boundonly afterhand_outsucceeds. So the two only need one of them to land.On the
Reset(allocator, pso)path,reset/reset_xalready pass the pipeline tostate.reset(pipeline), so the draw state stays consistent with creation. The only gap is thatresetdoesn't callcrate::pipeline::bound(pipeline)the wayset_pipelinedoes, so a pipeline that is only ever bound throughResetnever gets its "first bind" log. That's logging only and was already the case before this PR. It's a one-line addition if you want it here.AI-assisted review (Claude Code); checked on Windows 11 / RTX 5090.
Imported from Marvisak/VIctory. Originally posted by geiyiliyabumo on 2026-11-24T21:07:00Z.
Thanks @wbkepler for verifying on RTX 5090 and pointing out the
resetlogging gap! Addedcrate::pipeline::bound(pipeline)inreset(covering bothResetandResetX) in8d3a025, verified withcargo test -p victory-gpu --lib list, strict clippy (default +--all-features), andcargo xtask policy.AI-assisted; synthetic tests only, no game files.
Imported from Marvisak/VIctory. Originally posted by acetonahard-code on 2026-11-24T21:14:10Z.
Heads-up: #461 (opened earlier today) makes the same change.
create_listandcreate_list_xforwardpInitialStateintonew_list, with the same new parameter. The two conflict inlist.rs.Tested on Windows 11, RTX 4070 SUPER (driver 621.14), with the repo toolchain, merged into current
main(ffe310e):cargo test -p victory-gpumainmain+ this PRmain,--all-featuresmain+ this PR,--all-featurescargo clippy --all-targets -- -D warnings, with and without--all-features: clean.I didn't test with game data.
Tested locally with an AI-assisted script (Claude Code); I checked the results before posting.