Repository navigation
Shaders: faster structurisation and live-pipeline-first compile order (upstream #1013) - #43
Conversation
…tise live pipeline compiles) Upstream PR Marvisak/VIctory#1013 by Matheus (matheusfrta), +395/-85. - structure.rs: Bools::vars/ite/implies/restrict/forget/meet sped up (FxHash set membership, ite canonicalisation and swaps, memoised implies, forced-atom analysis replacing repeated restricts). - make.rs: pipeline workers use an urgent/background work queue; first-use (live) pipelines are queued urgent and already-queued background entries are promoted. Conflict in Bools::ite resolved keeping both: Scarlight's early overflow guard (and MAX_MEMO cap) plus upstream's f==g / f==h canonicalisation before the existing overflow check.
|
Caution Review failedThe pull request is closed. No actionable comments were generated in the recent review. Walkthrough
Change: Refactor Security architecture risk:
|
pipeline/make.rs: keep main's tiered demand/early queue, which already generalises #1013's urgent-first ordering (and spawns its own workers via work_queue(), so ensure_workers() was redundant).
|
CodeRabbit's run on f0cd5d1 says "Skipped - No files to review" although the diff carries structure.rs (+287/-59), so the head has not actually been reviewed. CI is green and there are no threads. @coderabbitai please review the full diff (base main) — I will merge once it has. |
Analysis chain
Please wait for the review results before merging. Action not completed
|
Takes Marvisak/VIctory#1013 by @matheusfrta (Matheus), merged as-is with authorship kept (commits
d60b7623,cbbb17ea, merge7355d366).What it fixes (BOARD B12): 48 % of producer dependencies were first-use compile latency. The PR
Bools::implies, aforced-atom analysis instead of repeatedrestrictcalls,itecanonicalisation (f==g,f==h) and operand swaps, FxHash set membership invars/meet;Conflict:
Bools::ite— kept both sides: our earlyoverflowguard (andMAX_MEMOmemo cap) plus upstream'sf==g/f==hcanonicalisation.make.rsmerged cleanly (our "the title" wording kept alongside the new queue).Numbers (RX 9070 XT, RADV, shaders-dump 751 programs):
cargo test -p victory-shader --lib: 150 passed, 0 failed, 2 ignored (same as main).cargo xwin clippy --workspace --all-targets --target x86_64-pc-windows-msvc -- -D warnings: clean.d12539f2run the same hour: 712/751; the two report TSVs are identical line for line — no shader changed state). Earlier 692 figures were a stale corpus.Exe built:
xcl-bin/bin-play/ab-i1013.exe(release,--features diagnostics). No game run (one live); enqueue a run if we want the runtime half measured.Summary by CodeRabbit