Skip to content

GPU: give screen-pass pipelines their own workers - #77

Merged
devin-ai-integration[bot] merged 2 commits into
mainfrom
devin/screen-pass-pipelines
Nov 25, 2026
Merged

devin-ai-integration[bot] merged 2 commits into
mainfrom
devin/screen-pass-pipelines

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Adapta a upstream #2582 à fila atual do fork: pipelines de passes de tela (sem input de vértices, sem depth/stencil, topologia triangle) ganham fila e dois workers próprios.
  • Mantém a prioridade já existente do fork (REQUESTED antes de EARLY) e separa o orçamento de espera por tipo de pipeline, sem aumentar o tempo máximo de espera de um passe classificado incorretamente.
  • Evita que os preenchimentos únicos das tabelas de lighting fiquem atrás de mais de mil pipelines comuns na entrada do mundo; upstream associa esse caso a perda de diffuse light quando o passe único expira.

Validation

  • cargo fmt --all -- --check
  • cargo run --locked --quiet --package xtask -- policy
  • CARGO_FEATURE_PURE=1 RUSTFLAGS='-D warnings' cargo check -p victory-gpu --locked --target x86_64-pc-windows-msvc
  • CARGO_FEATURE_PURE=1 RUSTFLAGS='-D warnings' cargo clippy -p victory-gpu --all-targets --locked --target x86_64-pc-windows-msvc

Sem validação real de jogo/GPU/Proton nesta VM.


Devin Review

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 3 potential issues.

Devin Review

Comment thread crates/victory-gpu/src/pipeline/host.rs Resolved
Comment on lines +187 to +190
static SPENT: [Mutex<(u64, Duration)>; 2] =
[const { Mutex::new((u64::MAX, Duration::ZERO)) }; 2];
let shared = shared_budget();
let spent_for_kind = &SPENT[usize::from(p.screen)];

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Pipeline wait setting understates frame delay

wait can spend the full budget on each pool in one frame. At the default, sequential waits can total 1,000 ms, twice the documented limit.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Documented in b1ac1fb: VICTORY_PIPELINE_WAIT_MS is now described as per pipeline kind, so a frame can spend the limit once in the ordinary pool and once in the screen pool.

Comment on lines +407 to +417
#[test]
fn screen_passes_are_classified_for_their_own_pool() {
let ordinary = Pending::new(Vec::new(), None);
assert!(!ordinary.screen);

let screen = Pending::new(
Vec::new(),
Some(Box::new(GraphicsState::screen_triangle_state())),
);
assert!(screen.screen);
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Screen worker isolation goes untested

screen_passes_are_classified_for_their_own_pool checks the flag without queuing work. It would pass even if screen jobs stopped progressing while ordinary workers were busy.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acknowledged. I kept the deterministic coverage at classification plus the direct routing in start/next; an end-to-end isolation test would need control over pipeline compilation time, but the shared static worker pools make that inherently order-dependent in the current test harness.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration
devin-ai-integration Bot merged commit 9d5f787 into main Nov 25, 2026
5 checks passed
@devin-ai-integration
devin-ai-integration Bot deleted the devin/screen-pass-pipelines branch November 25, 2026 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant