Repository navigation
Conversation
… its targets and drop reason With frames listed for capture and debug logging for victory_gpu::draw, every draw, mesh dispatch, indirect execution and dispatch of those frames logs one line: the pipeline, its render targets and depth (named as in the VICTORY_DUMP_TARGETS files, so a dumped target can be traced to the work that writes it), whether it ran and, if not, why (the shader that does not translate, a pipeline still being made, or a host pipeline that could not be prepared), followed by the device-removed report's text for the operation. Diagnostics builds only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LAKSHYA-cmd-tech
left a comment
There was a problem hiding this comment.
Verified and tested on Windows 11 x64 (D3D12).
- Confirmed conditional compilation with and without --features diagnostics. Both build cleanly.
- rame_op and rame_op_why cleanly log render targets, depth, and drop reasons (including shader translation failures and indirect execution reasons) without regressing default release builds.
- Checked cargo clippy -p victory-gpu --features diagnostics --lib -- -D warnings: 0 warnings.
- Checked cargo run -p xtask -- policy: 151 files clean.
|
The #71 capture grouped 115 dropped G-buffer writers under preparation failures. I tested a small follow-up on The synthetic indirect tests on RTX 5090 and WARP distinguish the wrong-kind and rectangle cases. The no-pipeline control remains counted once on both backends. The missing-shadow and late-readiness paths were checked in source. |
…e made Main now drops a dispatch when bind cannot make a table it reads (#336); that exit logs its frame line too, so every operation of a listed frame still has one. Also wraps four indirect trace calls as rustfmt does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Merged @fuzeofficlal thanks, separate reasons for those three exits would help. Your commit changes AI-assisted (Claude Code, Claude Opus 5.5); no game data. |
|
I rebased the separate follow-up on On RTX 5090 and WARP, a synthetic exhausted descriptor heap exercised both indirect table failures. All six indirect cases produced one matching frame line and one aggregate count each. The direct dispatch control still produced its existing diagnosis once. Source commit |
… its targets and drop reason Upstream: Marvisak#591 by @nullmarsh
…e made Applied as the net diff of upstream PR Marvisak#591 (head ec2e184), 3 commits: ec2e184,8c7dc7a7,936c4c7d.
…captured frames with its targets and drop reason
…r launch From open pull requests of fxceless/victory-gta6, each reviewed, applied with its tests and fitted to this tree: - Marvisak#756: one sampler written into a program and used with and without a comparison is two static samplers; a comparison sampler with a minimum or maximum reduction stays a comparison. - Marvisak#714: a mesh program that allocates in every lane keeps its LDS barriers; scalar reads of unordered views; both edges of a branch to one block; the first lane of an offset that is held per lane. With the early-start bias of this tree's raw views on the unordered ones too. - Marvisak#576, in part: a loop with two empty latches, and the double flag of a program that lost its doubles. Not its block-local handles: 1,507 of 1,516 compute programs of a local cache make host pipelines here as they are, and the nine others ask for waves of 64 lanes (older translations). - Marvisak#646, in part: `DispatchX` counts threads where its flag says so. They ran as groups. - Marvisak#676, in part: a new view of a texture already on the card needs no room; two views of a placed texture that differ in its filler words (the title's stack, another in every launch) are of one texture. - Marvisak#481, in part: no barrier for a window of indirect arguments that this draw did not clamp. - Marvisak#591: the parts of a host copy a submission asks for, not the span between them. Marvisak#522: table constants that flights write are filled on the card. - Marvisak#745: samplers with modes the host does not know. Added: an ignored test that makes a host pipeline from every compute translation of a local cache; the staging pool's test waits for other tests' submissions. AI-assisted. GPU (170), shader (226) and format unit tests pass. Not run with the title. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What
With
VICTORY_LOG=victory_gpu::draw=debugand frames listed for capture, every draw, mesh dispatch, indirect execution and dispatch in those frames logs one line:VICTORY_DUMP_TARGETSfile names, so a dumped target can be traced to the work that writes it;ran, orDROPPED:and why: the shader that does not translate,being made, a host pipeline that could not be prepared, or the indirect or dispatch path's own early reason;pipeline::drop_reasongivesnote_drop's reason in words. In listed frames this replaces the existing per-draw debug line, which overlapped it. Diagnostics builds only. It works withVICTORY_CAPTURE_DRAWS(#500).Why
The world's picture is black, but its targets are not all empty. To see which dropped work leaves which target empty, each operation has to be tied to its targets. One world frame on an RX 9060 XT (
d2a4bae+ #135 + #365):7bdefdfde461f6e3(655ExecuteIndirectcalls,image_sample_d_cl, Shader: pack a16 image addresses as the hardware does; image_sample_d_cl #318).b37565055f2f7d3b(Shaders: track every incoming edge of a lane-mask phi #385) and 194 rectangle-list indirect draws (GPU: expand indirect rectangle-list draws on the GPU #346).Dispatches carry no targets here, so their UAV writes are not attributed; their drops are still listed. With #318, #385, #346 and #305 applied, the largest drops in another world frame are about 2,500 compute dispatches of six programs with
an address in an SGPR that is no root parameter(#302/#489).Tested
936c4c7merged with GPU: keep replaced host resources for 6 frames; bigger dynamic descriptor pool, no fallback to stale tables #135, GPU: replay pending descriptors before publishing the host heap #365 and GPU diagnostics: pick capture frames by draw count #500 (mainalone stops before the world),diag, on the title withVICTORY_LOG=victory_gpu::draw=debug,infoandVICTORY_CAPTURE_DRAWS=10000,2. Two world frames logged 8,409 and 7,018 lines (2,534 and 3,344 dropped), 0.5–0.6 KB a line, about 4–5 MB a frame.cargo test --workspace: all pass exceptvictory-shader --lib, which hits the WARP concurrency crash in Tests: victory-shader tests crash (0xC0000005) when several tests use WARP devices in parallel #181 and passes single-threaded (69/69). Thediagnosticstest build compiles.cargo xtask policypasses. Release builds.main533b7e2merged in andec2e184(a frame line for dispatches GPU: drop draws whose fresh tables cannot be made; 2^18 dynamic slots #336 drops when a table cannot be made):cargo check -p victory-gpuwith and withoutdiagnostics, clippy-D warnings,cargo test -p victory-gpu --features diagnostics(50 passed),cargo xtask policy. On the title (ec2e184alone, 150 s, frames 60–1100 listed): 46 frame lines, allran, no errors; the new exit did not fire. This build reaches the world, but no world frame was listed.AI-assisted (Claude Code, Claude Opus 5.5); no game data.
🤖 Generated with Claude Code