translator: a removed argument's read takes zero and writes no status on from_queries' profile
What: a read of a texture, sampler or threadgroup memory argument the pipeline's function constants removed (the absent read, lower::access::absent, and texture::AbsentArgument) takes the same zero of its result's type as before: a read's zeros and a query's size of 0, which the nil texture, set 1's element 0, answers too, with a write of a removed texture dropped. A new profile fact says whether it also marks the command buffer's status (device::profile::AbsentReads): Device::new's profile keeps Marked (StatusBits::ABSENT_ARGUMENT_READ, the ExecutionStatus fact, its push field or binding), byte for byte; Device::from_queries' takes Nil, where the read marks nothing and the stage states no AbsentArgumentRead or ExecutionStatus fact, no ExecutionStatusAddress push field and no status binding. One form per profile, so it holds on every stage: a fragment function's read, which the replay recordings name, and a kernel's, whose pipeline the translator refused before on from_queries' profile (IdentityDomains: the status word's push field is outside what the identity domains admit), now run. The fact keys from_queries' fingerprint; Device::new's renders its fields alone, unchanged. docs/API.md's degrade entry and ExecutionStatus bullet say so. SEMANTICS_VERSION 2179. Why: Metal gives such a read no value, and its compiler drops or folds it; the new runtime writes no ExecutionStatus words, so the status a read marked was a refusal of the whole pipeline. Verified: - f0c676d4f7, this change before its rebase ontoa47fc3e69d: clippy with all features and with --cfg m2v_gpu clean, the focused tests 66 of 66 (job 46992). The rt device tests of a fragment function's and a kernel's read of a removed texture pass with the validation layer on and no validation error on the RX 550 (47027), the RTX 3090 (47028) and the Iris Xe (47029); the control, built without the change, fails both (47030). - Rebased ona47fc3e69d: clippy with all features and with --cfg m2v_gpu clean; the touched tests (absent, function constants, profile, golden, render descriptor keys, public fixtures, fingerprints) 257 of 258, the one failure the old render key's pin, which SEMANTICS_VERSION 2179 moves; re-pinned here, it passes (47245).
This commit is contained in:
1 parent
3e117449f2
commit
11dc2d46d5
10 files changed
+445
-50
No files matched your search
+6
-4
@@ -1516,9 +1516,9 @@ for dependency in &pipeline.dependencies {
|
||||
buffer view; a planned heap's members are textures with images, so only a heap set the consumer
|
||||
keeps for every command (each live texture at its resource ID) holds texture buffers. Push constants carry the values the
|
||||
binder writes per command. A stage that writes the command buffer's `ExecutionStatus` (an absent
|
||||
argument's read, a `seq_cst` fence, an argument buffer's cubic sampler) reaches it by device
|
||||
address, a push hole, where the device addresses buffers (`bufferDeviceAddress` and
|
||||
`shaderInt64`), and through a set-0 storage buffer of its own
|
||||
argument's read on `Device::new`'s profile, a `seq_cst` fence, an argument buffer's cubic
|
||||
sampler) reaches it by device address, a push hole, where the device addresses buffers
|
||||
(`bufferDeviceAddress` and `shaderInt64`), and through a set-0 storage buffer of its own
|
||||
(`SyntheticBinding::ExecutionStatus`) where it does not. That binding counts against the
|
||||
stage's storage-buffer limits: past one, an absent read or a fence is refused
|
||||
(`DescriptorCount`), and a stage that would bind it only to test its argument samplers for a
|
||||
@@ -3451,7 +3451,9 @@ bound.
|
||||
Metal gives no value: its compiler drops or folds such a read, and with its debug layer every such
|
||||
read is zero. Cost: such a read takes zero, Metal's answer under its debug layer, and the command
|
||||
buffer completes, its execution report stating the read (absent_argument_read); without the layer
|
||||
Metal's compiler drops or folds the read instead.
|
||||
Metal's compiler drops or folds the read instead. On `Device::from_queries`' profile the read
|
||||
takes the same zero, a read's zeros and a query's size of 0 as the nil texture answers, but
|
||||
writes no status and states no fact, so nothing reports it.
|
||||
- `metal2vulkan-degrade-mixed-depth-stencil-resolve` (precision). `MixedDepthStencilResolve`: A
|
||||
render pass whose one depth/stencil texture stores and resolves its depth
|
||||
(`StoreAndMultisampleResolve`) while it resolves its stencil alone (`MultisampleResolve`), which
|
||||
|
||||
Reference in new issue
Block a user