[pr-fix][shaders] Preserve the slow limit with screen priority off #247
Loading…
Reference in a new issue
No description provided.
Delete branch "andrewpozdnakov7-jpg/Darner:port/4892-keep-slow-pipeline-limit"
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?
Contributor role (optional)
What it changes
With DARNER_SCREEN_WAIT_MS=0 and early screen handling enabled, a known slow screen pipeline can bypass the slow queue even though it does not qualify for the screen queue. Use the same predicate both when routing to the screen queue and when exempting a pipeline from the slow limit.
Restores locally saved VIctory-NVIDIA work from December 1, 2026. Recovered revision: bcebf7d. Adapted by andrewpozdnakov7-jpg (GitHub profile).
How it was tested
b0865cfonf3840d7.Checklist
Checked for overlap
I compared
b0865cff4791b8de231ee5bcf6a657b7c3bf3a40withf3840d73d3504c30218debfbc8795b9225447317using the queue’s compiled push, pop and worker-selection code. A gated worker held the only slow slot. WithDARNER_SCREEN_WAIT_MS=0, main dispatched a known-slow screen pipeline while that slot was busy. When ordinary work was also queued, main picked the screen pipeline first.On the PR, the slow pipeline alone stayed queued. Ordinary work could run while the slot was occupied. Releasing the slot then dispatched the slow pipeline exactly once and counted it against the limit. Both revisions still dispatched an explicitly promoted request while the slot was busy, and kept screen priority when it was enabled. All ten cases passed their expected outcomes on Windows with Rust 1.98.1. The jobs were synthetic and no GPU timing was measured.
Code-read review of
b0865cf. I did not build or run it.The change is right. On main,
Queue::pushexempts a pipeline from the slow limit with!(p.screen && screen_early())(pipeline/make.rs:1784), butpush_asonly puts it in the screen list whenp.screen && screens_first() && screen_early()(:1800). WithDARNER_SCREEN_WAIT_MS=0,screens_first()is false (:601), so a known-slow screen pipeline was exempt fromslowand then landed inearly. Using one predicate for both fixes that. Default runs are unchanged, because there the two predicates are equal.One conflict to know about: #187 (hingeowl,
CS_RaytracingResolveculling) inserts an earlyreturndirectly above the line this PR rewrites inearly_start(let screen = ..., mainmake.rs:1113).git merge-treeof the two heads reports a content conflict inpipeline/make.rs. The two do not interact: keep #187'sreturn, then this PR'slet screen = p.queues_early_as_screen();. Whichever merges second needs a one-line rebase. Please list #187 as related.This comment was written with AI assistance (Claude Code).
Thanks for checking both queue paths. This PR stays on main and changes the condition for the slow-limit exemption. I noted the overlap you found with #187 in the
early_startblock. The shared lines will need to be reconciled when one of the PRs reaches main.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.