Repository navigation
Conversation
docs/gpu.md follows a submission from title memory to the host GPU and back: host copies, write watching and guarded views, refresh, copy-back and completion, how the title's ordering commands map to host barriers, pipelines, shader wave sizes and loop limits, and indirect clamping. docs/diagnosing-gpu-problems.md reads the frame line and walks through a removed device, a refused pipeline, a missing image and a title crash with the existing switches, and says what a report should hold. docs/testing.md covers what tests skip, what CI runs, tests for fixes, and working from Linux. The README links all three.
This was referenced Nov 24, 2026
Owner
|
Automated triage for the maintainers. Closing because it does not change behaviour the project needs (formatting, guards for cases that cannot occur, or notes and translations that cannot be kept current). Three new docs pages (330 lines) describing how the GPU layer works and how to diagnose it: long design documentation, which the repo keeps out, and already stale against tonight's GPU changes. If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What's missing
docs/has the architecture overview and the asset policy. How the GPU side works lives in module docs acrossvictory-gpu, and how to diagnose a GPU failure or test a change lives in issue threads. Testers keep rediscovering the same things there: which switch tells a never-ending loop from a refused pipeline, why a pipeline is refused on one card and not another, what the frame line's numbers mean, what CI runs, and how to test from Linux.What this adds
docs/gpu.md: one submission from title memory to the host GPU and back. It covers host copies of buffers, textures and descriptor heaps, write watching and guarded views (including why kernel reads are announced), the refresh, snapshot, copy-back and completion order, how the title's ordering commands map to host barriers, pipelines made on first use by workers and kept in the library, wave sizes and loop limits in translated shaders, and indirect clamping. It points to the modules that hold the details.docs/diagnosing-gpu-problems.md: how to read the 5-second frame line and theframe presentedlines. Then step by step, with the switches the README already lists: a removed device or black screen (DRED, list timing, the loop-limit test, skipping a pipeline, WARP), a refused pipeline (the debug layer's reasons, including the 64-lane wave size refused by 32-lane GPUs, andvictory translate --validate), a missing image (capture and target dumps), and a title crash. It ends with what a report should hold and what it must not (asset policy).docs/testing.md: what tests skip without a GPU,dxil.dllor a console compiler, the process-wide state GPU tests share, the three commands CI runs, how to write a test for a fix (fails onmain, deterministic races, synthetic data), and working from Linux (Clippy for the Windows target, Windows runs on a fork, Wine baselines).README.md: links to the three, from the intro, Getting started and Debugging.Everything describes
mainatffe310e. I checked each statement against the code: log lines, thresholds (50 ms lists, 250 ms submissions), the loop limit, the wave-size rule inemit::lower, the barrier mapping inlist.rs, the CI workflow, and the kernel-read callers.Tests
cargo xtask policy: 157 files ok.../README.md#debugging,gpu.md#shaders,architecture.md#shaders,asset-policy.md).Not covered: behavior that open PRs change. When one of them lands, the doc should follow: #1024 (copy-back writes), #1025 (announced kernel reads), #725 (
glccoherence), #439 and #192 (wave64 on 32-lane hosts).Related: #580 (contributor onboarding,
CONTRIBUTING.md), #387 and #439 (docs for their own changes), #994 and #1011 (Linux run guides). None covers these topics.