RUNTIME 2329: A GPU route's commands are drawn one draw per command in the replay variant, indexed
The GPU route of a rate-mapped pass's host step drew each command's corners in its merged variant: a non-indexed draw of every index, which loses the indexed draw's vertex reuse and looks its command up per vertex. On the Iris Xe the wide frame's pieces took 74.2 ms against 48.0 ms when the host read the records (job 30850). Now the step reads back each command's VkDrawIndirectCommand and its index entry (the device address of its first index and its index size, bind::DRAW_INDEX_ENTRY_BYTES, now public), resolves the index address to its Metal address through the resident set's ranges and the live table's, and draws each command as the host draws a record it read: indexed where it is, with its instances, base vertex and base instance, in the state's replay variant (BufferForms::Replay), each draw pushing the command's own slot tables at its PushHole::RootTableAddress holes (CommandTables). The commit's settle begins the replay variants for the routed executions. The corner cutting in the piece loop goes: an indexed routed draw is cut into index ranges as any. Tests: the pixel and depth test asserts indexed draws are recorded on a routed frame; the count test runs three frames, the host step making no pipeline on any and nothing made at all on the second and third. Public: bind::DRAW_INDEX_ENTRY_BYTES (api_signatures, api_surface). Verified: job 30942 at the branch tip: clippy for metal2vulkan and the runtime, the runtime under --cfg m2v_cpu_icd, the runtime and validation under --cfg m2v_gpu; the two route tests on lavapipe. Job 30922: lavapipe suites 78/78, API tests 15/15, rustdoc -D warnings; a negative control (the change reverted but its tests) fails the pixel test with 0 indexed draws recorded. The Iris and 3090 GPU-time A/Bs are pending.
This commit is contained in:
1 parent
3db60efc33
commit
e7b9c5bfdc
16 files changed
+424
-310
No files matched your search
+3
-3
@@ -2713,9 +2713,9 @@ bound.
|
||||
that VkPipeline then, as does a render command's draw of a state the CPU set on none of the
|
||||
commands. In a rate-mapped pass whose host step fans its triangles out, a render execution kept
|
||||
from the GPU alone by the rate map alone has its records decoded on the GPU at the step, which
|
||||
reads back each command's corners and none of its records, and its commands run in their merged
|
||||
variant (`WorkCounts::rate_map_gpu_routes`): a second round trip, for the decode, comes before
|
||||
the probe's. Other commands run in the large-buffer form (their range-limited buffer slots at device
|
||||
reads back each command's draw arguments and index buffer and none of its records, and each
|
||||
command is drawn in its replay variant, indexed where it is (`WorkCounts::rate_map_gpu_routes`):
|
||||
a second round trip, for the decode, comes before the probe's. Other commands run in the large-buffer form (their range-limited buffer slots at device
|
||||
addresses, with in-shader bounds checks), whose variants the commit compiles for every pipeline
|
||||
state a record may name (for a render execution, every state the CPU set on its commands; or,
|
||||
for an execution committed before a route that may write the records met the buffer, the call
|
||||
|
||||
Reference in new issue
Block a user