GPU: the dropped passes a presented image reads go first in the pipeline queue #3378
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3378"
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 neonbyte1 on 2026-11-26T20:58:35Z.
Stacked on #3353 (
fix/hold-unwritten-frames,df15a809); only the last commit (dba19ba2) is new here.What is wrong
#3353 fixes the flicker while pipelines are still being made: a dropped draw into the presented image holds the frame and its pipeline goes to the head of the workers' queue. A dropped pass further back still leaves the image wrong, because the image is then written from stale inputs.
Grand Theft Auto VI's world on a cold driver cache (
__GL_SHADER_DISK_CACHE=0 VKD3D_SHADER_CACHE_PATH=0, RTX 5090, Wine + vkd3d-proton) first binds ~1,900 pipelines in one frame. With #3353, the final upscale is made at once. But the world then stays black (brightest probed pixel 0–1 of 255) until the compute pass that resolves the lighting (structure_lod_wetness:CS_RaytracingResolve) is made. That pass waited 47–54 s in the queue in three runs, and then took 5.8–6.1 s to build. The image turns bright on the first frame after both pipelines exist, while ~1,000–1,700 others are still queued.What changes
While pipelines are queued, each frame notes:
At the present, a walk goes back from the presented images through passes that ran. It finds the dropped passes whose writes those passes read, and the nearest ones go to the head of the workers' queue (
crate::feeds). Once a hurried pass runs, a later frame's walk goes on behind it.The walk must not take the world's content. A first version did: one round put 666 mesh pipelines first and pushed back 103 pipelines the queue would have made within 15 s (a TAA resolve, a tiled-lighting clear, decal and particle compute). The world went dark again for about a minute. Hence three limits:
FAN_IN_MAX). One or a few passes (a resolve, lighting) leave a resource stale; hundreds of draws into depth or a geometry buffer leave objects missing. The walk still goes through such targets' passes that ran.HURRY_MAX), nearest first. Only pipelines that can still be hurried count toward the 8: queued, not taken by a worker, not hurried before.The first 64 pipelines a run hurries (
FIRST_MAX) are listed infirst-pipelines.txt, besideearly-pipelines.txt. The next run starts them ahead of the other early starts, during loading.The code names no shader.
Measured
All runs below use the same cold-cache setup, one 480 s run each, and the same diag build family. "+s" is the time since the scene's first frame.
made firstroundsfirst-pipelines.txtLimits
Cost
When nothing is queued (a warm run, or once the queue drains):
OnceLock::get. Refused pipelines stop there. A container's resource records are parsed only for pipelines being made, once per container.mem::takeof an empty graph, which allocates nothing.While pipelines are queued:
NOTES_MAX).first-pipelines.txtis capped at 64 keys.Tests
CPU only, under Wine; they create no D3D12 device.
feeds::tests:the_dropped_passes_a_presented_image_reads_are_found_nearest_first(including the second round once the resolve runs)nearer_feeders_come_firstthe_image_s_own_writer_and_writeless_passesa_cycle_endsa_target_many_dropped_draws_write_is_not_followeda_shared_pipeline_s_passes_are_followed_apartnotes_are_cappedpipeline::library::tests:the_first_list_keeps_this_run_first_under_its_capa_run_lists_its_first_hurries_onlyshown,pipeline::makeand early-list tests: 20 passed.cargo clippy -p victory-gpu --all-targets --target x86_64-pc-windows-msvc -- -D warnings, with and without--all-features: clean.Related
make.rs: a pipeline is marked queued before it is counted as waiting, so a promotion in between can let a worker make it before the count.make::hurry(from #3353, used here too) is another promotion through the same window. @andrewpozdnakov7-jpg's combined commit335eb7b(#2223 + #3353 + #3025) waits for completed registration on both paths; whichever lands second needs a small rebase inmake.rs.AI-assisted (Claude); measured on my machine, no game data shared.
Imported from Marvisak/VIctory. Originally posted by neonbyte1 on 2026-11-26T21:04:23Z.
CI note: the one failing test,
frame::tests::waits_end_on_ticks_and_count_frames(frame.rs:231, a zero-time-out wait gotS_OKinstead ofTIMEOUT), is the known flaky frame-clock test. #2861 and #2877 describe exactly this line: 2 ms ticks on a loaded runner, plus the test sharing the global clock withwaits_begun_together_take_different_ticks. This PR doesn't touchframe.rs, and the other 246victory-gputests passed, including the newfeeds::,shown::andpipeline::library::ones. #3353, with most of the same code, passed CI twice. I can't re-run the job from a fork; a maintainer re-run should clear it.AI-assisted (Claude); no game data shared.
Imported from Marvisak/VIctory. Originally posted by Dukestar69 on 2026-11-26T21:08:24Z.
Review: APPROVED
LGTM — verified on RTX 5090 (Windows / D3D12) against
origin/main(63bcca4).shownand the pipeline worker queue.cargo test -p victory-gpu --lib feeds:: -- --test-threads=1: 7 passed, 0 failed.cargo test -p victory-gpu --lib shown:: -- --test-threads=1: all passed.cargo test -p victory-gpu --lib pipeline:: -- --test-threads=1: all passed.cargo test -p victory-gpu --lib draw:: -- --test-threads=1: 20 passed, 0 failed.cargo clippy -p victory-gpu --all-targets -- -D warnings: clean.cargo xtask policy: 193 files ok.Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T21:21:38Z.
Review: CHANGES_REQUESTED
The pass-level feeder graph (
feeds.rs),FAN_IN_MAX/HURRY_MAXbounds, lock-free warm fast path, andfirst-pipelines.txtpersistence are cleanly designed and well-tested (all 62feeds/shown/pipeline/drawtests and strictclippychecks pass on both RTX 5090 and WARP withVICTORY_D3D12_DEBUG=1).However, auditing the new hooks turned up one live crash bug and two graph-tracking bugs that should be fixed before merge:
1. Blocking:
State::not_madedereferences unchecked descriptor table pointers withoutself.heap_of(crates/victory-gpu/src/draw.rs:628-633)Unlike
State::table_entry(draw.rs:1236) andState::tables(draw.rs:1270, 1297), which always verifyself.heap_of(handle)before reading title descriptor memory,State::not_madecomputestable + u64::from(u.table_offset_dwords) * 4directly and passes it todescriptor::view(handle). Insidedescriptor::view(descriptor.rs:558-563), any non-zerohandleis immediately dereferenced via(handle as *const [u32; 3]).read_unaligned().If a title binds a null root table (
Root::Table(0)), has no bound view heap, or leaves a stale root table handle from an earlier released/unmapped heap, andu.table_offset_dwords > 0,table + offsetproduces a non-zero invalid address (e.g.0x20) and immediately crashes with an access violation. (Uncheckedtable + offsetcan also overflowu64.)state.not_made(true)on a pending compute pipeline (being_made == true) with one table UAV attable_offset_dwords = 8andstate.set_table(true, 0, 0)crashed the child process with0xC0000005(STATUS_ACCESS_VIOLATION).checked_addandself.heap_of(handle):2. Null SRVs / UAVs (
resource == 0) create a phantom hub node infeeds::Graph(crates/victory-gpu/src/draw.rs:632, 1928-1936,crates/victory-gpu/src/feeds.rs:81-105, 166-195)descriptor::create_srv(NULL, ...)andcreate_uav(NULL, ...)recordView::Shader(0, _)andView::Unordered(0, _, _). Whilefeeds::ranandnot_madecarefully skipdepth == 0, neitherreadable,not_made, norfeedsfilters outresource == 0(nor0intargets/writes).Because
Graph::ran[0]has noFAN_IN_MAXcap, any pass feeding a presented image that binds a null SRV (0) walks throughGraph::ran[0]into every unrelated ran pass that bound a null UAV (0), pulling unrelated dropped pipelines into the priority queue.feeds::tests:g.dropped(99, || "unrelated_dropped", &[unrelated_tex]); g.ran(&[unrelated_tex], &[0]); g.ran(&[0], &[image]);returnsfeeders = ["unrelated_dropped"].0resources infeeds::view,feeds::ran(targets), andfeeds::dropped(writes) (or insideGraph::ran/Graph::dropped).3.
Graph::ranbypassesNOTES_MAXwhenwrites.is_empty()(crates/victory-gpu/src/feeds.rs:81-91)When a pass runs with
writes.is_empty()(e.g., a bindless/root-view-only compute dispatch), its index is never inserted intoself.ran, soself.reads.push(...)stores an unreachable entry; whenreads.is_empty()as well,self.notes += 0never increments, lettingself.readsgrow pastNOTES_MAXunboundedly if presenting pauses while pipelines are queued (10_000calls ->notes = 0, reads.len() = 10_000).Graph::ranwithif writes.is_empty() || self.notes >= NOTES_MAX { return; }(mirroringGraph::droppedat line 96).Imported from Marvisak/VIctory. Originally posted by neonbyte1 on 2026-11-26T21:30:03Z.
@fuzeofficlal thank you for the audit and the live repro; all three are fixed in
d6c32b0, a follow-up commit:State::not_made: the write computation moved intoState::would_write, so it's testable without a device. A table entry is now read only aftertable.checked_add(offset * 4)succeeds andself.heap_of(handle)confirms a bound heap holds it, and aView::Unordered(0, ..)is skipped. Null targets are filtered too. It was the only new read of title descriptor memory in this PR;table_entry,tablesand the diagnostics probes already gate onheap_of. New test:draw::tests::a_dropped_pass_reads_no_descriptor_it_cannot_name. It coversRoot::Table(0)at an 8-dword offset (your0xC0000005case), a stale handle whose offset overflows, and a root-descriptor UAV.State::default()binds no heap, so a stray read would fault in the test process.feeds::viewno longer stores0, andGraph::ran/Graph::droppedignore0in reads, writes and targets. New test:feeds::tests::a_null_view_feeds_nothing, your three calls, now with no feeders.NOTES_MAX:Graph::ranreturns at once when the pass wrote nothing non-null, likeGraph::dropped, and counts only what it keeps. It filters in place, so there's no allocation per pass. New test:feeds::tests::a_pass_that_wrote_nothing_is_not_noted(10,000 writeless passes: no reads kept,notesstays 0).Tested under Wine (CPU-only):
feeds::9/9,shown::6/6,pipeline::make::3/3, plus the new draw test. Clippy-D warnings, default and--all-features, policy and formatting are clean.AI-assisted (Claude); no game data shared.
Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T21:51:15Z.
Review: APPROVED
All three issues from the previous review are cleanly resolved in
d6c32b03:State::would_write(crates/victory-gpu/src/draw.rs:634-667) now validates descriptor table handles withtable.checked_add(u64::from(u.table_offset_dwords) * 4)andself.heap_of(handle).is_some()before callingdescriptor::view(handle), and filters out null targets (0) and null UAV resources (resource == 0), backed bydraw::tests::a_dropped_pass_reads_no_descriptor_it_cannot_name(draw.rs:2126).feeds::view(crates/victory-gpu/src/feeds.rs:176),Graph::ran(feeds.rs:87), andGraph::dropped(feeds.rs:105) consistently ignoreresource == 0in reads, writes, and targets, backed byfeeds::tests::a_null_view_feeds_nothing(feeds.rs:321).Graph::ran(feeds.rs:88) early-returns when a pass has no non-null writes and only counts retained entries towardNOTES_MAX, backed byfeeds::tests::a_pass_that_wrote_nothing_is_not_noted(feeds.rs:336).Verification on
origin/main(63bcca43):cargo xtask policy: ok (193 files ok)cargo clippy --locked -p victory-gpu --all-targets -- -D warnings(default and--features diagnostics): cleancargo test --locked -p victory-gpu --features diagnostics -- feeds:: shown:: pipeline:: draw:: --test-threads=1withVICTORY_D3D12_DEBUG=1: 65/65 passed on RTX 5090 and 65/65 passed on WARPNOTES_MAXprobes (Root::Table(0)+ 8-dword offset,u64::MAX - 16overflow, null target filtering, and 10,000 empty/null-write passes): all passed cleanly.Imported from Marvisak/VIctory. Originally posted by passerbyyhx on 2026-11-26T22:33:02Z.
I ran a two-frame Windows CPU probe on head
d6c32b03d20c916277315230d6062d70225a98e6and its direct parentdba19ba20a94628fdc95cb209cd22ff0bdf2e46d. It uses the real present-time feeder path and a real pipeline worker paused immediately after it claims an item.The probe uses synthetic pipeline identities and covers scheduling without GPU execution.
Synthetic test fixture
AI-assisted with Codex.
Imported from Marvisak/VIctory. Originally posted by neonbyte1 on 2026-11-26T22:34:47Z.
@passerbyyhx thank you, that's a valuable check. It goes through the real present-time path and a paused worker, which my unit tests don't. Head promoting 8 feeders nearest-first per frame, keeping the ordinary FIFO order, and claiming every item once, while the parent lets resource 0 promote an unrelated candidate: that's exactly the null-resource hub fixed in
d6c32b0.If you'd like, I can add your fixture (
f40988b) to this PR as a regression test, with you kept as the commit's author. It covers the worker claim and the cap together, whichfeeds::testsonly cover separately. Just say so, or open it as a suggestion and I'll take it as is.AI-assisted (Claude); no game data shared.
Imported from Marvisak/VIctory. Originally posted by pickles976 on 2026-11-27T06:28:18Z.
Verified
d6c32b03d20c916277315230d6062d70225a98e6on Linux/Wine11, RTX4060 Laptop8GiB (NVIDIA590.48.1),16GiB host RAM. Rust1.98.1 Windows-MSVC target;--features diagnostics --lib, one test thread, freshCompiling victory-gpu (.../VIctory-pr3378/...)provenance (9.75s build).feeds:::9/9 pass.shown:::6/6 pass, including show-all and eviction.placed_uav_dispatch_writes_its_texture:1/1 pass,0.72s, actual NVIDIA device/SM6.8. The sole local test-only edit replaces absent-host/SM6.6 skips with assertions; production unchanged. The fixture's dispatch counter, exact two-texel GPU readback and live-device check passed.This uses our disclosed diagnostic relaxed-vtable vkd3d build
2576c0b4adfae4a+, not stock Wine certification or an independent WARP result. Each leg had9GiB memory/512MiB swap and180s deadline. Logs.compat-runtime/logs/verify-pr3378-20261127T062513Z-{feeds,shown,placed-uav}.log. No title trial or matched-parent verdict on this PR.Coverage gap relevant to our black-scene investigation: our title path calls the native FidelityFX provider through
external::record, with #1868/review85b26e8 packing its FP16 output into the title's RGB9E5 texture. This bypassesdraw::State, so #3378's graph has no successful-pass edge from the original title colour/depth/motion identities to the original title output identity.external::recordcurrently calls the closure and invalidates host state, but reports no graph reads/writes. The graph can therefore stop at that native boundary even though the physical GPU data path exists. This is source-level coverage evidence, not a claim that it causes our black frame.Suggested owner extension: a bounded, success-only external-pass attribution API. Capture original title resource identities before the FFX copy is rewritten to host COM pointers; on native
OKand after the bridge pack is recorded, connect non-null input slots0..5 to title output slot6. Avoid the draw TLS recorder, wrong host-pointer identities, and attribution on a refused/failed native call. Add an actual external-path regression where a dropped colour producer is found through native output→composite, with failure/null/alias cases.For local integration I will preserve #3025's compute cap and the published #2223 registration-order fix from
335eb7b, rather than replace its scheduler with this branch's two-queue version.VICTORY_SHOW_UNWRITTEN=1preserves feeder urgency while avoiding confusing held old frames with newly rendered content.Our separate mixed-stack evidence is linked in #841:183/184 HDR-targeting keys observed available after selective prewarm, but two end-of-frame HDR snapshots still zero and the actual170s client black. At-dispatch input versus later overwrite remains unmeasured; screenshots/assets stay local.
Imported from Marvisak/VIctory. Originally posted by neonbyte1 on 2026-11-27T06:35:32Z.
@pickles976 thanks for the independent run on a 4060 under Wine, and for the coverage note.
You're right that
external::recordreports no reads or writes to the graph, so a walk back from the presented image stops at a native FidelityFX pass. On my setup that path isn't exercised: the runs have no FidelityFX DLLs (victory_hle::modules::fidelityfx: no FidelityFX folder), so the title's own passes do the upscale and the graph sees them. That's why I couldn't measure the gap or test a fix for it in game.The extension you describe (success-only, title identities captured before the bridge rewrites them to host pointers, inputs 0..5 → output 6, nothing on a refused/failed call) fits the graph as it is. I'd rather keep this PR to what I can measure, but I'm glad to do it as a follow-up on top of #3378 with CPU tests for the edge cases you list (failure, null slot, aliased input/output), if someone with the native FidelityFX path can run the end-to-end check.
AI-assisted (Claude); no game data shared.
Imported from Marvisak/VIctory. Originally posted by pickles976 on 2026-11-27T07:15:37Z.
Follow-up on the actual Wine/RTX 4060 Laptop title path: I integrated owner #3378
d6c32b03d20c916277315230d6062d70225a98e6with the published #3353/#3025/#2223 scheduling combinationandrewpozdnakov7-jpg/VIctory@335eb7baf2f1adc596e30eb641490205fed2fdedonto our existing dirty memory/paging/Wave64/native-FFX stack, base3ed7d725f6895fe1a235eb6fa8ff2485261ca151. This is a local mixed integration, not exact-head or main certification.The native FFX bridge is outside ordinary State draw/dispatch tracking. I added a local success-only external-pass edge using the original title resource identities, recorded only after native dispatch and bridge output write are recorded. Failed dispatches create no edge. I used
VICTORY_SHOW_UNWRITTEN=1so a held prior image could not be mistaken for scene rendering.Focused Windows-target Wine checks: scheduler10/10, feeder graph10/10 (including the new native edge), shown6/6, pipeline library13/13, builder2/2, actual placed-UAV GPU readback1/1, actual native FFX direct-FP16/RGB9E5 bridge1/1: 43 checks passed, not the full suite. Important fixture caveat: the first placed-UAV test returned zero pixels because its default emitter had
view_pages=falsewhile this runtime uses #2121 paged heaps. Adapting only the synthetic emitter to the productiondescriptor::view_pages()setting made the unchanged pixel assertions pass; production emission already used that setting. Initial failure retained in the logs, not attributed to #3378.Fresh diagnostics release43.37s, same128-key selected early-start list, reported1920x1080/window1280x720, copy-only file-backed title memory, unchanged9GiB/512MiB scope and6000MiB GPU/2048MiB available-RAM/10GiB disk guards. The180s run time-stopped, exit137; no resource stop, no kernel entries during the interval. MaxGPU5025MiB, minimum availableRAM4498.8MiB, maxscope8504.8MiB, minimum availabledisk11.075GiB. Wine11/NVIDIA590.48.1, diagnostic-relaxed vkd3d
2576c0b4adfae4a+, not stock-stack certification.Observed: loading illustration45s, dark transition90s, black window120/150/170s. The scheduler logged both direct-image and feeder promotions. Native FFX original resource IDs were logged; immediately-before input and immediately-after output at accepted dispatches1 and8 were raw RGB allzero, nonfinite0. Thus these samples remain black upstream of the native upscaler.
New exact status: an HDR-target graphics writer key
3e1221d183a0bae690bf40a7dde15927(VS8157a974717876a9, PS3ded230430ee2590) was queued, not a shader refusal or unstarted state, at07:05:37.528599UTC. No later status transition or translation for those stages was logged. This is not sufficient root-cause proof: in an earlier trial this same writer became available and the final scene still stayed black.The separate all-or-none BVH gate reports53 pipelines,51 made,2 refused,0 dropped. New named refusal diagnostics establish the two members:
5deed866470e17b4b7a9c37cd7448070→ computecaa78b8ca62bc3d6, andeacda2f272ababc3dc675212dcbfbb9f→ compute28918b7150a7aad5; both refuse LDS without a uniform fence in splitWave64. I have not bypassed that safety gate. This remains a separate scene blocker candidate, not proof that #3378 caused the black frame.Local evidence:
verify-feeder-integration-20261127T065706Z-{1..6}.log,verify-feeder-native-20261127T070051Z-{paged-uav,native-ffx}.log,feeder-ffx-trial-20261127T070256Z/{summary.json,pipeline-use.tsv.gz},20261127T070339Z-{console.log,resources.csv}under.compat-runtime/logs/. Captures/game assets stay local. Native-boundary context: https://github.com/Marvisak/VIctory/issues/841#issuecomment-7211813634 .Next useful check: follow the exact queued HDR writer’s input/view identities through the dependency graph, and separately verify an owner translation correction for the two named BVH members. I will not repeat this unchanged180s trial or treat pipeline availability alone as rendered-world proof.
Imported from Marvisak/VIctory. Originally posted by neonbyte1 on 2026-11-27T07:16:08Z.
@pickles976 one data point on the two BVH members, in case it helps separate that blocker: on my RTX 5090 stack both translate and get a host pipeline in the current best build (
caa78b8ca62bc3d6and28918b7150a7aad5: translated once each, one pipeline each, nothing refused). That stack handles one console wave sharing LDS through #439's console flow (groups up to 64 threads on 32-lane hosts) plus #2118, not through a split-wave64 path. So the "LDS without a uniform fence in splitWave64" refusal looks specific to the split-wave route; #439 + #2118 may be the quicker way to get those two built on your side (the BVH builder28918b71…also crashed the title for me during loading before #2118).Thanks for adding the external-pass edge and the all-zero samples before and after the native upscaler: that puts the black upstream of FFX, as you say.
AI-assisted (Claude); measured on my machine, no game data shared.
Imported from Marvisak/VIctory. Originally posted by pickles976 on 2026-11-27T08:21:51Z.
Follow-up with a bounded, diagnostic-only trace on the same mixed Linux/Wine11 + RTX 4060 Laptop 8 GiB / 16 GiB system-RAM stack (not an exact-head #3378 verdict): fresh 31.59 s release, 128 early keys, unchanged resource guards, 180 s title ceiling. Loading at 45 s, black at 120/150/170 s; no recognizable scene. Native FFX calls 1 and 8 read back RGB exactly zero on both input and output. At the last frame 914 pipelines were still being made, so this is not a fully compiled scene verdict.
Concrete feeder-policy observation: the watched graphics key
3e1221d183a0bae690bf40a7dde15927isDistantObjects / DISTANT_LIGHTS3D(VS8157a974717876a9, PS3ded230430ee2590), not the sole HDR producer. At native call 8 it was recorded and queued. Its reached depth resource had 81 recorded dropped writers;Graph::feedingrejects the entire resource becauseFAN_IN_MAX=4. Three of the first four sampled writers were alreadyready, but remain in the count. Could the cap apply to still-actionable/pending candidates rather than all historical dropped writers? A useful regression would start over the cap, complete most writers, then require promotion of the few remaining pending writers without broadening admission.Important limit: the diagnostic walk hit its independent 256-pass/edge cap. This establishes an excluded depth route, not exclusion through every colour route or proof this policy causes the black screen. An earlier run had the watched key ready and still black. No fan-in limit was raised or shader refusal bypassed.
Additional attribution: all six terminally refused compute programs sampled UAV buffers, not HDR textures. Offline effect metadata identifies four as InstanceCulling prop/tree passes and two as VFX relocation passes. Buffer-to-geometry/indirect-consumer causality is not yet established; exact-program owner-fix verification is next.
Local evidence:
.compat-runtime/logs/refused-feed-trial-20261127T080855Z/summary.json,20261127T080927Z-{console.log,resources.csv}, andverify-scene-shader-effects-20261127T081804Z/console.log. Max GPU 4239 MiB, min available RAM 5251.3 MiB, max scope 9049.5 MiB; time stop/137, no resource stop. Diagnostic-relaxed vkd3d2576c0b4adfae4a+; not stock-Wine certification. No title assets or images attached.Imported from Marvisak/VIctory. Originally posted by neonbyte1 on 2026-11-27T08:33:38Z.
@pickles976 You're right, the cap was counting drops rather than writers that could still be hurried: 81 recorded drops stayed 81 after 78 of those pipelines had been made, so the resource was skipped with only three writers left that could still leave it stale.
b6c2b256changesGraph::feedingto count only writers whose pipelines are still pending (pipeline::pending, i.e. no answer yet — neither made nor refused) againstFAN_IN_MAX, and to return only those. Made writers no longer fill the cap, so a target that has most of its writers made is followed and the few still pending go first; refused writers are neither counted nor taken. The cap still applies per resource to the pending set, so a target with more than four pending dropped writers (depth or a G-buffer hundreds of drops are still writing) is still not followed — that keeps the 666-pipeline round from coming back, since those were pending at the time.Tests are CPU-only under wine on the Windows target (
feeds:: shown:: pipeline::make:: draw::tests::, 42 passed): the regression you suggested iswriters_made_since_do_not_fill_the_cap(81 drops, 78 made, the three pending promoted), plusrefused_writers_neither_fill_the_cap_nor_are_takenand the existinga_target_many_dropped_draws_write_is_not_followedfor the many-pending case. Clippy (-D warnings, with and withoutdiagnostics) and the format check are clean.I can't verify your black scene here — that needs a run of the title with your build — so this is only checked at the walk's bookkeeping level. If you can re-run the scene with the branch and the
made first:log, that would confirm it end to end.AI-assisted (Claude); no game data shared.
Imported from Marvisak/VIctory. Originally posted by passerbyyhx on 2026-11-27T09:06:32Z.
@neonbyte1 Yes, please take the two-frame worker fixture with the original commit author. Thank you for offering. I also applied it unchanged to
b6c2b2569eb11f49fcab53839cc112df2c02edc9and reran it on Windows. Frame one promoted 1–8, frame two promoted 11, 10, 9, and the worker claimed all 16 candidates exactly once.The worker gate is process-wide, so the fixture is marked ignored and runs as a standalone test:
This fixture exercises the per-frame promotion cap. Your separate pending-writer fan-in test covers the change in the latest commit.
AI-assisted with Codex.
Imported from Marvisak/VIctory. Originally posted by neonbyte1 on 2026-11-27T09:19:02Z.
@passerbyyhx thank you, taken unchanged as
d626b01awith you as author, on top of the fan-in change.One small follow-up of mine on top,
ca937383:cargo clippy -p victory-gpu --all-targets -- -D warnings(CI's form) flaggedcollapsible_ifintwo_frame_probe::pause, so the nestedifis now oneif let ... && .... No behaviour change.Run here under Wine (CPU only, display-less) on the RTX 5090 machine:
pipeline::make::two_frame_probe::presents_promote_at_most_eight_available_feeders_nearest_first -- --ignored --exact --test-threads=1passes. Clippy is clean with and withoutdiagnostics, and formatting andcargo xtask policyare clean.AI-assisted (Claude); no game data shared.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.