docs: the diagnostic switches native-host.md did not list (#485) #486
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/486"
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 LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-27T22:07:00Z.
What this changes
Refs #485.
docs/native-host.md's "Bring-up diagnostics" list is missing six switches the code reads today, so a tester cannot find them and someone changing one cannot see who depends on it. This adds them, each written from the code that reads it rather than from the switch's name:VICTORY_DSTORAGE_LOG(any build): the 3 sdstorage stateline — staging bytes against the limit, and each lane still holding work with its unsubmitted, held, reads, statuses, running and capacity counts (victory-hle/src/modules/dstorage.rs:581). Note what it does not print: a lane'sfailures, and the field is labelledcap, not "capacity".VICTORY_FRAME_DUMP=<seconds>,<file.ppm>: once, that many seconds in, the last presented frame as a PPM, with the frame count and the shader work refused so far (apps/victory/src/native_run.rs:357).VICTORY_DUMP_WRITERS=<substr>,...: acts through the capture, so it needsVICTORY_DUMP_TARGETSset; a written buffer's first 64 MiB is read when first bound and reported at the present by dwords changed and not zero, and such a pipeline's textures are dumped with the frame it first runs in (victory-gpu/src/capture.rs:236,:291).VICTORY_PIPELINE_LOG=<file>(diagnostics build): creates the file (truncating whatever was there) and writes one tab-separated line per pipeline key —created,used,built(victory-gpu/src/pipeline/make.rs:137).VICTORY_TRACE_SHADERS=<hash substring>,...(diagnostics build): a noted command whose shader hash contains one of them is logged with everything it binds, all of them in a listed capture frame and the first 500 elsewhere (victory-gpu/src/host.rs:3653,:3680).VICTORY_GPU_TIMING=1(diagnostics build): GPU time per kind of command and pipeline, each list's wall time against the sum of its commands', and the commands of a list during which the device was found removed (victory-gpu/src/host.rs:336,:3684).docs/macos.mddrops the claim thatVICTORY_STACKS_FILEneeds a build withVICTORY_DIAGNOSTICS=1—stacks.rsreads it in any build, which is what theVICTORY_STACKSfreeze diagnosis in #50 relies on.VICTORY_DUMP_REGISTRYwas already documented, and correctly (the subsystem registry at the first titleint3), so it is not repeated.Docs only: no code, no behaviour change, no new switch.
How it was tested
cargo xtask policy: 398 files ok.cargo test/ clippy: not run — two Markdown files change, no Rust. Say the word and I will run the full gate anyway.Checklist
VICTORY_*variable and documented: no new switch, six already-existing ones now documentedImported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Olima34 on 2026-11-28T01:35:58Z.
Review: APPROVED
Check report (helping the maintainer clear the queue):
checkandmacos-scriptsgreen on the current head.VICTORY_DSTORAGE_LOGin dstorage.rs,VICTORY_FRAME_DUMPin native_run.rs,VICTORY_DUMP_WRITERSin capture.rs,VICTORY_PIPELINE_LOG,VICTORY_TRACE_SHADERS). TheVICTORY_STACKS_FILEfix matchesstacks.rs.226645f9) merged with this PR and the other test/docs/tools PRs we're landing in this batch (#397 #399 #422 #467 #471 #475 #479 #481 #486 #489 #494 #498 #505 #511). On it, thevictory-gpu(arm64),victory-shader,victory-backend,victory-metalandvictorytests pass, as do the macOS script tests (rustup-path.sh,run-summary-compare.sh,run-summary.sh --self-test), Windows clippy (-D warnings) andcargo xtask policy. Onevictory-gpurun in four failed main's ownmulti_mip_array_and_placed_depth_twins_preserve_all_subresources_and_remirror_immediately. That test also flakes on main alone, so it isn't from this batch.Thanks @AnastasisKon!