SEMANTICS_VERSION 2051, RUNTIME_VERSION 2124: executed draws whose states fetch stage_in attributes run on the GPU alone
The commits before this one. Running an indirect command buffer's draws on the GPU (the replay variant, and the merged form of SV 2045) refused any render state that fetches [[stage_in]] attributes. lower::access::plan_replay refused every vertex fetch under replay_bindings. So each such execution took the host step (HostStepCause::Refused), one round trip per execution. That is every GPU-driven renderer whose vertex function takes stage_in, reims's forward-rendering sample included. Now: - A draw replay pulls every fixed-function layout through the pulled-vertex-buffer variant (draw_replay_vertex_layouts: the layouts a replay pulls, and the rule that keeps a layout on the host step). - The binder needs no bound encoder buffer for a pulled layout. Today's base plan fails with UnboundVertexBuffer when the encoder binds none, which is the usual case for GPU-driven rendering. - plan_replay lets a drawn vertex function's pulled sources through. - A pulled layout's own buffer is read through the command's slot table: a Psb slot read through its root entry, like every other buffer in a replay. Before this, it got a storage view that the replay never binds, and drew zeros. - In the merged form, the pulled fetch reads the merged command's vertex, instance and base instance. - A layout whose stride each bind sets (per-command strides) keeps the host step, because a command's stride lives only in its record. - docs/FAST-PATHS.md says which attributes a replayed draw pulls. Verified on lavapipe: - runtime_lane::render_merged_attributes, for an ICB of draws and of indexed draws, with pulled and fixed-function layouts at step rates 1 and 2: before, (merged, gpu_form, records_read) was (0, 0, 4), the host step (m3-max-21242). After, it is (4, 4, 0) merged and (0, 4, 0) for strips, each equal pixel for pixel to a forced host step. The replay filter passes 195/195 (m3-max-21494). - The metal2vulkan suite passes 3480/3486. The six failures are golden rows of new fixtures, re-blessed at the next pin (m3-max-21495). - Validation's variants and draw_replay tests pass 10/10. - clippy (default, --cfg m2v_gpu, --cfg m2v_cpu_icd) and fmt are clean (m3-max-21496).
This commit is contained in:
1 parent
4c4a6d9e83
commit
5766d29051
1 file changed
+2
-2
Vendored
+2
-2
@@ -60,7 +60,7 @@ mod tests;
|
||||
/// unchanged version, and its bless records the version. Independent of the crate's version and of
|
||||
/// [`ARTIFACT_FORMAT_VERSION`]. The commit that bumps it says what changed; this comment keeps no
|
||||
/// history.
|
||||
pub const SEMANTICS_VERSION: u32 = 2050;
|
||||
pub const SEMANTICS_VERSION: u32 = 2051;
|
||||
|
||||
/// The byte-layout version of encoded artifacts (`CompiledFunction::to_bytes` and the
|
||||
/// [`PipelineArtifact`] encodings). Every encoded artifact carries it, and a decode under another
|
||||
@@ -93,7 +93,7 @@ pub const ARTIFACT_FORMAT_VERSION: u32 = 505;
|
||||
/// changes no behaviour, and then updates that hash alone with the commit saying why, or changes
|
||||
/// behaviour and also bumps this version. The commit that bumps it says what changed; this comment
|
||||
/// keeps no history.
|
||||
pub const RUNTIME_VERSION: u32 = 2123;
|
||||
pub const RUNTIME_VERSION: u32 = 2124;
|
||||
|
||||
/// The digest of the sources this build of the crate was compiled from: SHA-256, as lowercase hex,
|
||||
/// of the manifest, the build script, and exactly the files the crate roots' module tree compiles
|
||||
|
||||
Reference in new issue
Block a user