Runtime docs: a state drawn without the colours past its pass's last attachment, and its costs
README, Render encoders: a pipeline state that names colours past its pass's last colour attachment, the rest of its formats and its sample count the pass's, is drawn as plain Metal draws it (pass-pipeline-color-unattached, Apple M3 Max, macOS 27.0.1, job m3-max-75903), through the state of its descriptor without those colours. The costs, each from a run: - the first such set and draw: about 3.3 ms once per state and pass shape on an RTX 5080 Laptop card, from a proxy (a state of the same functions with colour 0 alone; jobs m3-max-75918 and m3-max-75925); - each later such set: about 14,500 user-space instructions on lavapipe (job m3-max-75974, release, five runs, 14,510 to 14,517), where a set of a state that renders into its pass is 140; - the descriptor each render state keeps: in states-only plays of two recorded replay streams on lavapipe it kept no library alive that was not alive without it (jobs m3-max-75968 and m3-max-75969: the bytes of released libraries still alive, at each change, equal at this tree and at its base, 29 and 140 changes). The between shape stays refused (job m3-max-75934). The Gap::Draw list's "a pipeline state whose formats are not the pass's attachments'" now excepts the shape drawn, and the first-use list names that state's pipeline under first_use_unfinished_waits. docs/REFUSALS.md is regenerated (refusal_surface.py): Gap::Draw gains its site in render.rs (without_colors).
This commit is contained in:
1 parent
08456a7859
commit
981d1c0d81
2 files changed
+25
-4
No files matched your search
@@ -3198,7 +3198,8 @@ while the driver's exit handler waited on a lock, with every runtime thread alre
|
||||
render content's line-class pipeline), `first_use_point_waits` (its point-class pipeline),
|
||||
`first_use_raster_waits` (its pipeline under the depth clip mode `Clamp` or the triangle fill
|
||||
mode `Lines`) and `first_use_unfinished_waits` (a state's main pipeline, compute or render,
|
||||
before its `finish_pipeline` made it).
|
||||
before its `finish_pipeline` made it, and the pipeline of a render state drawn without the
|
||||
colours its pass lacks, which no `finish_pipeline` makes).
|
||||
No dispatch lowers a function. `Counters::variant_makes(from)` answers the kept makes of
|
||||
kernels' `VkPipeline`s numbered `from` or later, the last 256 to end on the device, each a
|
||||
`VariantMake`: its key (the `DispatchVariant` its dispatches answer), who started it
|
||||
@@ -4706,6 +4707,25 @@ cache is answered compile-required on both.
|
||||
indices past the buffer (`Refusal::IndexBufferOffset`), a viewport field NaN or infinite but its
|
||||
origin's x (`Refusal::ViewportNotFinite`), and a stencil test in a pass without a stencil
|
||||
attachment (`Refusal::StencilAttachment`).
|
||||
- A pipeline state that names colours past its pass's last colour attachment, its colour formats
|
||||
up to that attachment, its depth and stencil formats and its raster sample count all the pass's,
|
||||
which Metal's validation stops ("For color attachment 1, the renderPipelineState pixelFormat
|
||||
must be MTLPixelFormatInvalid, as no texture is set."), is drawn, as plain Metal draws it
|
||||
(`pass-pipeline-color-unattached`, an Apple M3 Max under macOS 27.0.1, job m3-max-75903):
|
||||
`set_render_pipeline_state` binds the state of its descriptor without those colours, whose
|
||||
fragment function stores them nowhere. The first such set makes that state's content, which the
|
||||
device's map of contents keeps as any content, and its first draw makes its `VkPipeline`, a
|
||||
first-use wait (`first_use_unfinished_waits`): about 3.3 ms once per state and pass shape on an
|
||||
RTX 5080 Laptop card, from a proxy (a state of the same functions with colour 0 alone; jobs
|
||||
m3-max-75918 and m3-max-75925). Each later such set keys that descriptor and looks its content
|
||||
up: about 14,500 user-space instructions on lavapipe, where a set of a state that renders into
|
||||
its pass is 140 and takes neither, nor do its draws (job m3-max-75974). Every render state keeps
|
||||
its descriptor, and through it its functions' libraries, while it lives: in states-only plays of
|
||||
two recorded replay streams on lavapipe, that kept no library alive that was not alive without it
|
||||
(jobs m3-max-75968 and m3-max-75969). A state that names a colour its pass leaves unset between
|
||||
two colour attachments stays refused (`DrawKind::AttachmentFormats`): there plain Metal writes
|
||||
that colour's value into the next attachment (`pass-pipeline-color-unattached-between`, job
|
||||
m3-max-75934).
|
||||
|
||||
### Known gaps of render encoders
|
||||
|
||||
@@ -4739,7 +4759,8 @@ cache is answered compile-required on both.
|
||||
the floor does not require; a
|
||||
viewport Vulkan's is not (a
|
||||
negative width, a depth range past `[0, 1]`, bounds past the device's viewport limits), a
|
||||
pipeline state whose formats are not the pass's attachments', a draw that binds a texture
|
||||
pipeline state whose formats are not the pass's attachments' (but for colours past the pass's
|
||||
last colour attachment, above), a draw that binds a texture
|
||||
whose image the pass renders, where neither the feedback loop nor a copy reads it: on a device
|
||||
without the attachment reads, from the vertex function at the rendered level and layer, written, of a
|
||||
depth or stencil attachment, of an image over a buffer in place or whose format the device
|
||||
|
||||
+2
-2
@@ -371,7 +371,7 @@ Columns:
|
||||
| `BicubicTexels` | A dispatch or a draw whose function samples texture slot `slot` through a constexpr sampler with Metal's bicubic filter (`filter::bicubic`), where... | every device (a public call's own check of its arguments) | `ours`: each refused format's treatment is built when a guest binds one | 2: `crates/metal2vulkan-runtime/src/encoder.rs (dispatch)`, `crates/metal2vulkan-runtime/src/render_encoder.rs (find)` | `-` |
|
||||
| `TextureView` | `Texture::new_texture_view` of a kind Metal makes and the runtime does not build | every device (a public call's own check of its arguments) | `ours`: the replay streams' views that compute binds are same-format views of every slice, 2D views of one slice of a 2D array, and level subranges, swizzled or not; each other kind is built when a replay stream binds one | 1: `crates/metal2vulkan-runtime/src/texture.rs (view)` | `-` |
|
||||
| `RenderPass` | A render pass of something the runtime does not build yet (`CommandBuffer::render_command_encoder`) | every device (a public call's own check of its arguments) | `ours`: the replay streams' passes render into one to two color attachments and a stencil or a depth attachment, each a level of a 2D texture of one sample, with no resolve and a clear depth of 1, none naming two textures for its depth and stencil; each other kind is built when a replay stream makes one; `DepthStencilViews` and `ClearDepth` are what Vulkan's rendering under the floor takes no form of | 6: `crates/metal2vulkan-runtime/src/pass.rs (check)`, `crates/metal2vulkan-runtime/src/pass.rs (ops)` (+4) | `-` |
|
||||
| `Draw` | A draw or render encoder state the runtime does not build yet (`RenderCommandEncoder`) | every device (a public call's own check of its arguments) | `ours`: the replay streams draw lines and triangles through one viewport Vulkan's is, with pipeline states of their pass's formats, filled and clipped; each other kind is built when a replay stream draws one), and device for [`DrawKind::DividedBaseInstance`] (a device that does not report `supportsNonZeroFirstInstance` | 13: `crates/metal2vulkan-runtime/src/render_encoder.rs (attachment_reads, 3 sites)`, `crates/metal2vulkan-runtime/src/render_encoder.rs (checked)` (+9) | `-` |
|
||||
| `Draw` | A draw or render encoder state the runtime does not build yet (`RenderCommandEncoder`) | every device (a public call's own check of its arguments) | `ours`: the replay streams draw lines and triangles through one viewport Vulkan's is, with pipeline states of their pass's formats, filled and clipped; each other kind is built when a replay stream draws one), and device for [`DrawKind::DividedBaseInstance`] (a device that does not report `supportsNonZeroFirstInstance` | 14: `crates/metal2vulkan-runtime/src/render.rs (without_colors)`, `crates/metal2vulkan-runtime/src/render_encoder.rs (attachment_reads, 3 sites)` (+10) | `-` |
|
||||
| `LinearPlanePass` | A render pass over a surface plane that renders as a linear colour attachment alone, in a shape the device does not render... | at the device's limit | `device`: VK_NV_linear_color_attachment renders such a format as a colour attachment only "as long as all the color attachments in the render pass instance have VK_IMAGE_TILING_LINEAR tiling"; the RTX 3090's driver lost the device rendering a linear colour attachment beside a depth or stencil attachment | 1: `crates/metal2vulkan-runtime/src/pass.rs (check)` | `-` |
|
||||
| `StageSize` | A pipeline the device does not make for its heaviest stage's weight, for what `cause` names | at the device's limit | `device`: on the Iris Xe of RPL-P, ANV, Mesa 26.2.6, the consumer's helper compiles of entry weights 186,065 to 424,132 passed its 3 GiB cap, job m3-max-65807; a driver whose helper's compile met its cap or time, or that keeps no pipeline cache data, gives no data to make the pipeline from | 3: `crates/metal2vulkan-runtime/src/pipeline.rs (past_stage_bound)`, `crates/metal2vulkan-runtime/src/render.rs (of)` (+1) | `-` |
|
||||
|
||||
@@ -658,7 +658,7 @@ Each refusal's sites, with the function that builds it.
|
||||
- `rt:Gap::BicubicTexels`: `crates/metal2vulkan-runtime/src/encoder.rs (dispatch)`; `crates/metal2vulkan-runtime/src/render_encoder.rs (find)`
|
||||
- `rt:Gap::TextureView`: `crates/metal2vulkan-runtime/src/texture.rs (view)`
|
||||
- `rt:Gap::RenderPass`: `crates/metal2vulkan-runtime/src/pass.rs (check)`; `crates/metal2vulkan-runtime/src/pass.rs (ops)`; `crates/metal2vulkan-runtime/src/pass.rs (resolve)`; `crates/metal2vulkan-runtime/src/render_encoder.rs (later_store)`; `crates/metal2vulkan-runtime/src/texture.rs (attachment_view)`; `crates/metal2vulkan-runtime/src/texture.rs (resolve_attachment)`
|
||||
- `rt:Gap::Draw`: `crates/metal2vulkan-runtime/src/render_encoder.rs (attachment_reads, 3 sites)`; `crates/metal2vulkan-runtime/src/render_encoder.rs (checked)`; `crates/metal2vulkan-runtime/src/render_encoder.rs (draw)`; `crates/metal2vulkan-runtime/src/render_encoder.rs (draw_patches)`; `crates/metal2vulkan-runtime/src/render_encoder.rs (draw_patches_indirect)`; `crates/metal2vulkan-runtime/src/render_encoder.rs (interrupt_refused)`; `crates/metal2vulkan-runtime/src/render_encoder.rs (set_scissor_rects)`; `crates/metal2vulkan-runtime/src/render_encoder.rs (set_triangle_fill_mode)`; `crates/metal2vulkan-runtime/src/render_encoder.rs (set_viewports)`; `crates/metal2vulkan-runtime/src/render_encoder.rs (set_visibility_result_mode)`; `crates/metal2vulkan-runtime/src/render_encoder.rs (shadow_copies)`
|
||||
- `rt:Gap::Draw`: `crates/metal2vulkan-runtime/src/render.rs (without_colors)`; `crates/metal2vulkan-runtime/src/render_encoder.rs (attachment_reads, 3 sites)`; `crates/metal2vulkan-runtime/src/render_encoder.rs (checked)`; `crates/metal2vulkan-runtime/src/render_encoder.rs (draw)`; `crates/metal2vulkan-runtime/src/render_encoder.rs (draw_patches)`; `crates/metal2vulkan-runtime/src/render_encoder.rs (draw_patches_indirect)`; `crates/metal2vulkan-runtime/src/render_encoder.rs (interrupt_refused)`; `crates/metal2vulkan-runtime/src/render_encoder.rs (set_scissor_rects)`; `crates/metal2vulkan-runtime/src/render_encoder.rs (set_triangle_fill_mode)`; `crates/metal2vulkan-runtime/src/render_encoder.rs (set_viewports)`; `crates/metal2vulkan-runtime/src/render_encoder.rs (set_visibility_result_mode)`; `crates/metal2vulkan-runtime/src/render_encoder.rs (shadow_copies)`
|
||||
- `rt:Gap::LinearPlanePass`: `crates/metal2vulkan-runtime/src/pass.rs (check)`
|
||||
- `rt:Gap::StageSize`: `crates/metal2vulkan-runtime/src/pipeline.rs (past_stage_bound)`; `crates/metal2vulkan-runtime/src/render.rs (of)`; `crates/metal2vulkan-runtime/src/stage.rs (gap)`
|
||||
|
||||
Reference in new issue
Block a user