Repository navigation
Conversation
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.
Problem
The host currently clamps the argument buffer in place before it knows whether the title pipeline can execute. With a GPU count of zero, a populated inactive tail can consume the list budget. A subsequent valid draw can produce zero input vertices. A failed descriptor-table bind can have the same effect. A producer that uses the same buffer later can observe the host's clamped values. These failures reproduce with a synthetic triangle and a two-thread compute shader.
D3D12 executes the first
min(MaxCommandCount, count)records, orMaxCommandCountrecords when the count buffer is absent. Its stride can include padding. With four 16-byte draw payloads at stride 24, the last byte needed is byte 87. A separate native DISPATCH probe accepted 84 bytes at stride 24 for four 12-byte payloads and rejected 83 on both adapters. The per-list work limit is VIctory policy. ExecuteIndirect · Indirect drawing specificationImplementation
DATA_VOLATILEbecause the title can return an input to writable state. The full debug layer diagnosed a default static-while-set SRV with message 1003. Root Signature 1.1 data flagsReproduction
Results
Each entry reproduced three times on WARP and three times on an RTX 2060 SUPER. The five raster cases and eight count cases are subcases of the eight common checks. The ordered-budget readback is a separate check.
ExecuteIndirect-evidence.zip
An earlier WARP run of the previous patch matched the order once in three attempts. The other two differed at 134 and 128 records. The final table uses the common comparison build and three fresh runs per adapter.
A native mesh-only pass produced 16 green pixels. A second list switched between mesh, indexed draw, compute and draw. The strict suite passed 72 test invocations across both adapters, including six CPU-only layout checks. GPU-Based Validation, synchronized queue validation and full resource-state tracking were enabled before device creation. The info queue recorded zero errors and six warnings, all ID 971 for the first lookup of the synthetic mesh PSO in an empty pipeline library. The logs include the messages.
On the RTX, 256 active one-group dispatches took a median of 88.48 µs of queue time with this patch, 101.41 µs on main, 18.43 ms with Marvisak#242 and 18.21 ms with Marvisak#583. The same synthetic workload issued directly took 78.91 µs. CPU recording took 18.0 µs with this patch and 13.2 µs on main. On WARP the corresponding candidate and main GPU timestamp intervals were 699.5 and 680.9 µs. Each cell has 21 measured samples with validation disabled. Sources and raw samples are in the evidence kit.
From a Windows x64 Developer PowerShell with the pinned toolchain, run the following commands in this branch. Start a fresh test process for each adapter.
The evidence kit's
reproduce.pyalso rebuilds each comparison tree, enables strict validation, compiles the synthetic mesh fixture, and runs the native range oracle, timing and scratch-lifetime probes. The clean workspace suites passed 345 and 356 tests respectively, with six ignored in each. Both Clippy configurations, the release build and asset policy passed. Workspace rustfmt reports existing drift on the same 35 files in main and this branch.Scope and limitations
This change covers the single-operation signatures VIctory translates for DRAW, DRAW_INDEXED, DISPATCH and DISPATCH_MESH. Root-argument and other multi-operation signatures remain tracked separately. The existing indirect rectangle-list limitation is covered by #346. The state-tracking work overlaps Marvisak#334 and should share one implementation if both changes land. Issue #757 · PR #334
Scratch is sized for the declared maximum. Older allocations stay alive until list reset when a recording grows through several capacities. The CPU still requests the declared input extent for the guest shadow refresh. The timing and residency measurements cover one software adapter and one physical NVIDIA adapter. They use synthetic shaders and buffers. The first mission and game frame rate have not been verified.