Pin move 14: stacks 28 to 30 on top of c7d79b43ef, in place of pin 13.
RUNTIME_VERSION 1769.
A host-replayed indirect command buffer keeps a step's chunks where two steps
read its records alike, draws whose plans list the same resident uses share
them, and a host step compares and decodes its records in place: on the RTX
5080 Laptop GPU the renderBundles page's host step took about 8.9 s a frame
at pin 13, 35-40 ms after stack 29, and about 33 ms after stack 30's cuts
(the runtime's measurements, the last before its own last two steps). A
device-local allocation that fails lies in system memory instead, announced
(device-memory-overflow, a performance kind). A pass that reads the clear
alone before any draw reads a copy cleared to it instead of splitting the
pass. A new Private texture starts as the Mac the device presents keeps it
(DeviceProperties::lossless_compression). On MoltenVK, whose blits through two
imports of the same pages are not ordered, a no-copy object over a guest RAM
chunk binds in the chunk's import. A batch waits for a staging submission only
where no earlier batch on its VkQueue did. A half read through an argument
buffer keeps the texel's half bits. A mesh the device draws takes its mesh
type's primitive, so a mesh of filled triangles draws no line.
max_buffer_length is three quarters of the largest device-local heap, rounded
down to 16 KiB: the RTX 5080's answer falls from 2^40, and the M3 Max's under
MoltenVK stays Metal's own 41,747,087,360, below its 48 GiB bound. The
graphics lane already answered at most three quarters of the device-local
heaps' sum.
New notices: device-line-ties at each draw of width-1 lines on a driver not
measured to break a diamond-vertex tie as Metal does, device-subpixel-snap at
each draw the band draws on a driver not measured to snap a half 1/256-pixel
step up, and device-nan-encoding for every half colour output to a half-float
channel on NVIDIA. MoltenVK on the M3 Max announces none of these anew: it
takes both facts, and it already noted every such half output.
The API grows by Degradation::DeviceMemoryOverflow, DeviceLineTies and
DeviceSubpixelSnap; RuntimeDriverDefect::AliasedImportBlitsUnordered;
DriverFact::LineTiesAreMetals, SubpixelSnapIsMetals and
ColorClearTakesEitherCode; DeviceProperties::lossless_compression and
MacClass; GraphicsState::mesh_corners; DriverDeviation and VkProperty
MetalUnaryDenormals; WorkCounts' new counters (device_memory_overflows,
attachment_read_clears, resident_uses_again_checked among them);
RecordView::record_into; and Device's Drop and hand-written Clone. It loses
VkProperty and DriverDeviation::MetalHalfColorNans, which nothing here used.
Cargo.lock is unchanged: the runtime's manifests are the same at both commits,
and the lock keeps its metal2vulkan source lines stripped.
The new kinds are placed by answer.rs's rules:
- device-memory-overflow is relayed, by its Exact statement.
- device-line-ties dies where its tie is not measured on MoltenVK, and a
native device relays it, on the rule for native devices: the pixel a width-1
line covers at a vertex two pixels' diamonds share is the driver's, which
Vulkan's open diamond leaves to it with no control over it, and its only
exact form is Metal's line rule run in the fragment function, an
interpreter's. Every width-1 line draw on NVIDIA, lavapipe, RADV and ANV
announces it.
- device-subpixel-snap dies on every device, as wide-edge-depth-bias does: the
band is the runtime's own, and its endpoints snapped to Metal's grid before
it offsets them would leave the rasterizer nothing to round, so the hardware
allows the exact form. Only a band draw announces it, which on a native
device under the default is a line below 1/16 pixel or past lineWidthRange.
- device-nan-encoding moves from what stays a death on a native device to what
it relays, in the class of a native device's own maths and sampling: it
differs in a NaN's bits alone, and there the runtime gives the device's NaN,
its native form, and builds no path to Metal's bits where the device has one
(its rule since 79166a74b1), as native-nan-encoding and
device-texel-conversion's NaNs are relayed already. It still dies on
MoltenVK. The placement test's list of the kinds that stay deaths on a
native device loses it and gains device-subpixel-snap.
The accuracy ledger lists the device's width-1 lines among the device's own
answers and the band's snap under the wide_lines form.
Outside strict mode no new kind ends a run: a kind of DIES is relayed and
counted, and none of these is of DIES_BY_DEFAULT. The last good boots on the
RTX 5080 already relayed device-nan-encoding, at a draw that binds an
RG16Float texture, and relayed no kind of line.
Two tests pinned the runtime's old answers, and take its new ones:
- refused_icb_records_die_naming_the_execution: the runtime holds a commit's
refusal of the records of a buffer the command buffer made resident for
writing for the command buffer's host step, as a command buffer of another
queue that this one waits for through an event, encoded after the commit,
may still write the records before the work runs, and Metal runs what it
wrote. Such records die as the command buffer ends, at the execution's
selector, as at pin 11; records only the CPU wrote die at the commit, as
before.
- the_default_filter_samples_within_its_bound_of_metals: the runtime gathers
a two-plane 4:2:0 texture's planes in place too, so on MoltenVK a function
that samples and gathers a YCBCR8_420_2P texture reads them in place: its
floats and halves are Metal's bit for bit, and nothing that dies is
announced (measured on the M3 Max). Its _sRGB twin keeps the default
filter, within its bound, and dies of ycbcr-filter-not-exact in strict
mode as before. The test gathers every observation before it asserts.