The steps this packet landed as, in order:
- Time indirect commands' CPU setters and getters in host_ab
- Read and write one field of an indirect command's record
- Set and read an indirect command's fields one at a time
- Call an indirect execution's check where it may see something, and run the CPU's later writes
- Load vkGetDescriptorSetLayoutSupport inside the exit guard's sections
- Hand out indirect command buffer IDs to 2^31 - 1 and place every one's records, as an M3 Max does
- Refuse an indirect command buffer reservation Metal hangs at as such
- Place an indirect command buffer's records at any length, found only at their start
- Leave a resource ID pool made after a reservation of 0 alone, as Metal does
- Ignore a late reservation call before looking at what it holds, as Metal does
- Expect the merged-draw tests' pipeline makings' notices on every device
- Keep an indirect compute command's threadgroup lengths where Metal keeps them
- Take the pieces of the ICB identifier range Metal's encoders take
- Answer a GPU-written command's state identifier as the state its ID named then
- Run a GPU-written record's released state as Metal does, from the buffer's kept programs
- State and test the bound on the programs a GPU-writable buffer keeps
- Record the earlier-window record of a re-held ID as a known gap
Content: the tree of `development` at 7d31ebb207, unchanged.
The steps this packet landed as, in order:
- Answer command predication as Metal does on an M3 Max under macOS 27.0.1
- Probe Metal's command predication from the validation crate's Metal platform
- Wait for the predication probe's command buffers through the bounded wait
- Name the record a predication block left open came from in its command buffer's failure
- Refuse a run's first indirect dispatch of another dispatch type at Metal level 26.7
- Read an encodeEndDoWhile's word only where it closes a live DoWhile
- Run command predication on devices without buffer device addresses
- Nest predicated loops to any depth, their copies bounded by what they lay down
- Read a predication word past its buffer as Metal reads it
- Halt a predication unit where a loop runs past its copies
- Name the lane's fixed loop case type, which clippy found too complex
Content: the tree of `development` at ef8b74ec1b, unchanged.
The steps this packet landed as, in order:
- Write the index rewrite pass's primitives in either provoking vertex order
- Draw Apple's last provoking vertex: a last-vertex pipeline, else lists led by it
- Test Apple's provoking vertex modes against Metal's on the device
- Describe the provoking third way as pipeline-dependent; fix the table test
- Check the last provoking vertex through a geometry stage; key its slice notice on stages
- Test that executions keep the first vertex; scale the weights check by the values
- Register rt6_provoking in the engine inventory and golden printouts
- Add host_ab's provoking workload: flat-shaded draws at provoking vertex modes 0 and 1
- Add the index gather pass: one dispatch for a run of direct draws' lists
- Gather direct indexed draws' lists in runs: one dispatch per run, not three per draw
- Add the rotated-weights variant: Metal's barycentric weights from a rotated triangle
- Count private lists' gathers under a last-vertex pipeline; take the open runs whole
- Draw listed triangles' barycentric weights through the rotated-weights variant
- Draw every provoking vertex mode past 1 the third way, its top bit set or not
- Announce nothing for a provoking-mode draw that makes no primitive
Content: the tree of `development` at 91b1df7b21, unchanged.
The steps this packet landed as, in order:
- Test the private primitive types' draws against Metal's lists on the device
- Check the private draws through the weights' geometry stage too
- Use is_multiple_of and as_chunks in the private lists
- Fail a draw of primitive type 9 as Metal's GPU does
- Give the private-types fixture its golden printout and inventory rows
- Discard what a hang's queue schedules during it, and time the hang as measured
- Regenerate REFUSALS for the type-9 runtime changes
- Read Metal's quad primitive ID under private quads and quad strips
- Read a type-9 hang's Scheduled at Metal's time, not at its held last batch
- Schedule a hang's queue's command buffers from the hang's Scheduled on
- Stop a hang's thread waiting on a failed command buffer; keep storage-form commits on their last batch
- Hold a hang's joined command buffers behind a closure, so Rustdoc ends
Content: the tree of `development` at 5441a97bda, unchanged.
The steps this packet landed as, in order:
- Answer a kept heap texture requirement before asking the device's limits
- Answer whether a command buffer or submission uses given objects, cloning nothing
- List devices' registry IDs without making devices, and open one by its ID
- Give a made pipeline state's reflection from its compile, after its creation
- Enable optional device extensions where each device can, and say which it enabled
- Let a caller vouch for its host pages' write permission, skipping the kernel's answer
- Import read-only host pages from the caller's dma-buf source, and say whether a device takes shared pointers
- Hold a texture of Apple's private usage 0x8 alone to what Metal does with it
- Measure RADV 26.2.4 on the RX 7900 XTX: its pointer imports follow their address
- Free a no-copy buffer's dma-buf imports before its keep-alive goes
- Measure a file's pages mapped under a live RADV pointer import, a known gap
- Let what waits for a dma-buf import's free go as its fields drop
Content: the tree of `development` at 0a38130573, unchanged.
The steps this packet landed as, in order:
- Take the compute dispatch memo while the encoder's residency is unchanged
- Start a shared event listener's thread at its first notification
- Add a command buffer's scheduled event signal (encodeSignalEventScheduled:value:)
- Count the scheduler's passes, and measure signals, bursts and moving offsets in host_ab
- Hash the pipeline memos with the runtime's key hasher
- Let a dispatch take what its pipeline state last planned for the same shape
- Drop two casts clippy flags in completion_here's scheduled signal check
- State host_ab's dispatches taken as settled and as planned before
Content: the tree of `development` at f9d39326a3, unchanged.
The steps this packet landed as, in order:
- Refuse buffer-texture copy layouts whose rows pass u64::MAX instead of wrapping
- Wait without a deadline for a timeout past the host's clock, and test copies at the buffer's edge
- Place a multisampled buffer copy's rows where plain Metal does, staging off-texel rows
- Say that Metal copies the multisampled layouts the runtime still refuses
- Count the rows a compressed-texture blit rewrites, and test a copy out off the texel
Content: the tree of `development` at e5ff75b136, unchanged.
The steps this packet landed as, in order:
- Pin the runtime sources with a refused queued commit's completion
Content: the tree of `development` at a62e8a365f, unchanged.
The steps this packet landed as, in order:
- Pin the runtime sources with the lowering slot's auto-trait boundary
Content: the tree of `development` at a6fba3966c, unchanged.
The steps this packet landed as, in order:
- Regenerate the refusal surface and pin the runtime sources with commits behind the lowering thread
Content: the tree of `development` at 770f8bce10, unchanged.
The steps this packet landed as, in order:
- Set the artifact format and runtime versions and pin the runtime sources for MoltenVK 1.4.2
- Bless the census's product line and regenerate the refusal surface at the MoltenVK 1.4.2 tree
Content: the tree of `development` at 6267cde0be, unchanged.
The steps this packet landed as, in order:
- Withhold MoltenVK 1.4.2's blend warning of attachments it cannot blend
- Measure the M3 Max at MoltenVK 1.4.2, named apart from the M4
- Say what queue_storms measured at MoltenVK 1.4.2 plainly
- Make a heap's set layout MoltenVK's support query refuses only where it runs it, announced
Content: the tree of `development` at 285be2f493, unchanged.
The steps this packet landed as, in order:
- Regenerate the refusal surface and pin the runtime sources with the end on the lowering thread
Content: the tree of `development` at bf576119ea, unchanged.
The steps this packet landed as, in order:
- Regenerate the refusal surface and pin the runtime sources with the lowering thread
Content: the tree of `development` at e282080dd5, unchanged.
The steps this packet landed as, in order:
- Regenerate the refusal surface and pin the runtime sources with the logged render encoder
Content: the tree of `development` at f3cfaa3feb, unchanged.
The steps this packet landed as, in order:
- Draw GPU-written render executions on the device in the validation executor
- Shard the M3 Max pass-chain tables so no test nears nextest's limit
- Set the semantics and runtime versions and pin the runtime sources at the merged tree
- Bless the golden hashes for the merged-draw ICB fixture
- Bless the authored compile census at semantics 1809
- Regenerate the refusal surface at the merged tree
Content: the tree of `development` at 3bb4f250ea, unchanged.
The steps this packet landed as, in order:
- Run GPU-written render executions on the GPU alone in passes with shadowed textures
Content: the tree of `development` at 3349566ac4, unchanged.
The steps this packet landed as, in order:
- Draw a GPU-written render execution of one list type or points as one merged draw
- Reset an indirect command buffer's records on the GPU with one fill
- Regenerate the refusal surface after the merged draws, rebased onto development
- Regenerate the refusal surface over the host-step cause
Content: the tree of `development` at 99ae896ad5, unchanged.
The steps this packet landed as, in order:
- Set the runtime version and pin the runtime sources at the merged tree
- Set the semantics version and pin the runtime sources after the render GPU form
- Bless the golden hashes at the merged tree
- Bless the authored compile census at the merged tree
- Regenerate the refusal surface at the merged tree
- Pin the runtime sources after the compute indirect command cost rule
- Regenerate the refusal surface after the compute indirect command cost rule
Content: the tree of `development` at f4a0642491, unchanged.
The steps this packet landed as, in order:
- Run GPU-written render commands on the GPU alone, and let a check state what it looks for
- Say that a check of every kind runs on the GPU alone where the records rule out both kinds
- Pass what the check looks for in the compute lane's checked execution
- Add host_ab's icb_draws workload: a kernel writes the draws of Apple's GPU-encoded ICB sample
Content: the tree of `development` at 665d587ae2, unchanged.
The steps this packet landed as, in order:
- Run GPU-written compute executions on the GPU alone by indirect dispatches where the device has no generated commands
- Run a concurrent encoder's GPU-alone execution with no barrier between its commands
Content: the tree of `development` at 343b1abcb4, unchanged.
The steps this packet landed as, in order:
- Keep the recycler's proven parked objects through a run of one-off makings
- Remember usage answers by hash, 1024 of them, least recently asked going first
- Pin the runtime sources after the recycler's protected eviction and the usage answers' LRU
- Regenerate the refusal surface at the merged tree
Content: the tree of `development` at bde1abe95b, unchanged.
The steps this packet landed as, in order:
- State what an indirect command buffer's records may hold, from every route that writes them
Content: the tree of `development` at 9a885fa69c, unchanged.
The steps this packet landed as, in order:
- Pin the runtime sources after the blit commands' byte-range order
- Regenerate the refusal surface at the merged tree
Content: the tree of `development` at 1f2b48f345, unchanged.
The steps this packet landed as, in order:
- Count render encoders' render pass instances by where they began, and their splits by cause
- Set the runtime version and pin the runtime sources at the merged tree
- Bless the golden output hashes at the merged tree
- Bless the authored compile census at the merged tree
- Regenerate the refusal surface at the merged tree
Content: the tree of `development` at effa414f26, unchanged.
The steps this packet landed as, in order:
- Pin the runtime sources after the typed threadgroup step's doc edit
- Take the device's sin and cos as Metal's fast ones in a fast-math module on MoltenVK
- Write the typed threadgroup region test's module as a plain string
- Convert a plain class's half texel by the device's conversion on MoltenVK
- host_ab: compare each gpu kernel's output between the sides
- Share an imageblock slice write out to the whole threadgroup where one invocation writes it
- Copy a half slice's cell bits straight to a half-bits slot
Content: the tree of `development` at b0e2bd6190, unchanged.
The steps this packet landed as, in order:
- Pin the runtime sources at the switch on the development base
- Blend fast-math colors into BGR10_XR_sRGB and RGB10A8_2P_XR10_sRGB as the linear forms do
- Name a placement heap texture the heap does not make at an offset inside it
Content: the tree of `development` at 3386fdcac8, unchanged.
The generated and blessed files, and the three version constants, as of the tree this series ends
on. They come last so that no packet commit before this one claims a version or a table, and so
the final tree is exactly the tree verified at the tip.
- docs/REFUSALS.md regenerated.
- crates/metal2vulkan/tests/golden_hashes.tsv and the air_input printouts as blessed (the table
tests 25 of 25 on the M3 Max host, with xcrun metal-as for the typed-pointer fixtures).
- crates/metal2vulkan-validation/corpus/authored-compile.tsv as blessed: 2256 authored cases on 21
profiles, 47376 cells, 46245 compiled and 1131 refused, 0 failed, 0 differences, 0 regressions.
- crates/metal2vulkan-validation/runtime-sources.sha256 recomputed.
- SEMANTICS_VERSION 1798, RUNTIME_VERSION 1496, ARTIFACT_FORMAT_VERSION 431.
Verified at this tree: the full suites on the RTX 5080 Laptop, RTX 3090, RX 7900 XTX, Radeon 780M,
Iris Xe and the M3 Max through MoltenVK, the CPU suites (product, validation, lavapipe's CPU ICD),
fmt, clippy in every configuration, rustdoc, the API reference and refusal-surface checks,
packaging and doctests; the failures those runs found were fixed in this series and their lanes
run again green.
On ANV a pipeline whose largest stage module passes 400,000 words under the exact forms is
retranslated with those forms dropped until it fits; render pipelines already were, and now mesh,
compute and tile pipelines are too, announced as exact-forms-over-compiler-limit with the kind of
pipeline state named. New Device::fit_mesh_variant, fit_compute_pipeline and fit_tile_pipeline for
pipelines linked from stages compiled ahead. The known gap is gone from docs/FAST-PATHS.md.
Verified: the fit tests for every kind, 188 translator and runtime tests and the device notice tests
on ANV, and 7 of 7 on RADV.
Folds in:
- Fit mesh, compute and tile pipelines to ANV's compiler word bound
A fragment function that runs per sample (programmable blending reads its attachment) and also reads
[[position]] z or w, [[point_coord]], [[barycentric_coord]] or a centroid varying was refused at
link; Metal accepts it and reads each as the pixel's in every sample's run (M3 Max at 4x, measured).
These reads now read where Vulkan evaluates them for the sample, with
PrecisionNote::MultisamplePosition and its bound (the value's change over half the pixel's diagonal,
or across the covered area for a centroid varying). Chromium's Skia Graphite on Dawn (Claude
Desktop) made such pipelines. The new test shader is its own fixture, engine/multisample_fetch;
engine/multisample is unchanged.
Verified: the guest's pipelines compile on six profiles and Claude Desktop draws in the macOS guest
on the RTX 5080 with no fatal line; the multisample, point_coord and link tests fail without the
change and pass with it.
Folds in:
- Read a per-sample fragment function's pixel reads where Vulkan evaluates them, noted, as Metal
accepts them
- Move the programmable-blending fixture entry out of engine/multisample into a fixture of its own
Comments, fixture notes and docs lose their design-record numbers, work-package codes and evidence
codes; lines that earlier commits of this series added carry their cleaned text there, so this
commit holds the cleanup of lines that predate the series, the retired vk12-bare profile's corpus
rows (a rationale and two observation rows), and docs/FAST-PATHS.md's measurements stated as they
stand. Thirteen hash-keyed files keep their citations, because their bytes are case or record
identities: eight case-keyed .ll fixtures and five parity sources.
Verified: the CPU suites (4997 of 4997 and 1328 of 1328), clippy, rustdoc and doctests.
Folds in:
- Drop evidence codes, design-record numbers and work-package codes from comments and fixture notes
- Drop the retired vk12-bare profile from the corpus
- Say the fast-path ledger's measurements as they stand, without commits, rounds or host incidents
- Keep the case-keyed .ll fixtures byte for byte
- Keep the parity lanes' fingerprinted sources byte for byte
The UHD 770's cost fact said an interlocked pass ran faster kept whole; measured again, splitting at
the fetch wins on every measured GPU (UHD 770, Iris Xe, Radeon 780M, RTX 3090, RTX 5080 Laptop) on
the window server's passes, so the UHD 770 carries InterlockedPassSplitNoSlower like the rest. With
no device keeping a pass whole, the whole-pass reroute is deleted:
DriverFact::InterlockedPassWholeFaster, RenderCommandEncoder::reroute()'s whole branch and
interlocked_colors(). The extended-range half shadow's draw keeping stays.
Verified: the framebuffer_fetch, extended_range and multisample lanes on all seven GPUs, 271 of 271
each.
Folds in:
- Run an interlocked pass split on the UHD 770 as on every GPU measured, by the corrected cost fact
- Delete the whole-pass reroute, which no device reaches since the UHD 770's fact was corrected
On drivers that park freed memory (MoltenVK among them), memory freed while the program's own
with_vk_queue submissions may still use it now waits for them, by a mark each use signals. The watch
of those marks and the release of freed memory hold only the device parts they use, never the
device, and teardown closes the parking first and waits for the handler threads: the program's last
drop tears the device down on its own thread before it returns, as Metal's last release does
(vkDestroyDevice needs external synchronization and every child object destroyed first).
freed_memory.rs is listed among the modules that may keep the device's functions, with that reason.
Verified: the freed-memory and teardown tests on ANV, lavapipe and the M3 through MoltenVK (14 of 14
each), the two teardown tests fail without the fix, and the presenting test that crashed in the
batch passed 20 of 20 on the M3.
Folds in:
- Hold MoltenVK's freed memory for the program's own with_vk_queue submissions, by a mark each use
signals
- Hold nothing of the device in the watch of the program's marks and the releases of freed memory
- List freed_memory.rs among the modules that keep the device's functions
On a driver whose fragment depth is unmeasured, a multisampled Depth32Float copy is drawn and
announced rather than refused.
Folds in:
- Draw a multisampled 32-bit float depth copy, announced, on a driver whose fragment depth is
unmeasured
Verified by each folded change's own checks; the tree this series ends on is the one verified
at the tip on six GPUs, the CPU suites and lint (see the tables commit).
A fetched merge keeps its texels in an image copy of its shadow where the copy in takes no keep, and
kept images are held per queue and taken by any later keep of the same shape once its encoder ended,
so merges stop making a new image each time.
Folds in:
- Keep a fetched merge's texels in an image copy of its shadow where the copy in takes no keep
- Keep merges' kept images per queue, taken by any later keep of the shape once its encoder ended
Verified by each folded change's own checks; the tree this series ends on is the one verified
at the tip on six GPUs, the CPU suites and lint (see the tables commit).
The Radeon 780M of Hawk Point (PCI device 0x1900) takes the driver facts measured on the Phoenix
780M (0x15bf), the same GPU, and gets its own committed device profile.
Folds in:
- Read the Radeon 780M of Hawk Point (0x1900) as the measured Phoenix 780M (0x15bf)
Verified by each folded change's own checks; the tree this series ends on is the one verified
at the tip on six GPUs, the CPU suites and lint (see the tables commit).
A copy of rows between two buffers whose rows lie apart is one vkCmdCopyBuffer with a region per
row, and ANV records each region as a blit operation of its own. In a guest frame's profile on
the Iris Xe one such copy a frame took about 15.7 of the recorder thread's 19 ms. ANV's recording
time for a single region also grows with the region's size at some sizes: one two-plane YCbCr
texture's planes copied into its staging buffer cost about 15 ms of the recorder's time a frame.
Row copies:
- Every copy of rows between buffers goes through one place, row_copies.rs (RowCopies): a blit
between a buffer and a texture over a buffer or between two textures over buffers (through its
overlap scratch too), a buffer-texture copy's rows through its staging buffer, and every
shadow's copy back out of its staging buffer, wherever it records: a render pass's steps
between instances and before tile dispatches, a rotated texture's store, and a heap's
two-plane and tiled textures' copies back.
- RowCopies makes the copy one dispatch of the new translator kernel bind::rows_copy_module
(RowsCopyModule) where the device is measured to run it faster (new
DriverFact::RowCopiesDispatchFaster), the copy has 2 or more regions of the same size in whole
4-byte words, 4-byte aligned, evenly spaced with destination rows at least a row apart, and it
fits the device's storage buffer range and workgroup counts. Invocation (x, y) stores word x
of source row y at word x of destination row y and writes nothing else, so the bytes are the
copy's. Every other copy stays regions. The kernel's set 0 is pushed through the device's
checked push command where VK_KHR_push_descriptor exists, else allocated from a pool the
command buffer keeps; the callers name the dispatch's accesses so the tracker orders it.
- The fact holds on ANV (Mesa 26.2.4, keyed on the driver, so it covers the measured Iris Xe and
UHD 770 identities) and on NVIDIA 615.71.09 on the RTX 5080 Laptop GPU. RADV is not listed: its
GPU time rose 3 to 5% at 1080 rows.
Long copy regions: every vkCmdCopyBuffer the runtime records goes through Vk::cmd_copy_buffer,
which records each region over 16 KiB whose size is no multiple of 4 KiB as two regions of the
same command, its bytes up to the last whole multiple of 4 KiB and the rest. The same bytes are
copied by the same command, so the split is exact on every device and is not keyed to a driver;
five helpers that recorded copies through a bare ash::Device now take the device's functions.
Counters: WorkCounts::row_copies, row_copy_regions, row_copy_regions_most, row_copies_dispatched,
copy_regions_split, and copy_sites, which names the places in the runtime that recorded buffer
and image copies with their calls and regions (the device's checked functions record them
through #[track_caller] methods). The runtime re-exports CopySite. Docs: docs/HOWTO.md's copies
section, row_copies.rs, device/functions.rs, WorkCounts.
Verified, as the commits state:
- runtime_lane::row_copies::row_copies_cost (release, one blit a frame of 1920 BGRA8Unorm rows
into rows 8192 bytes apart): 1080 rows on the Iris Xe CPU 3.1-3.3 -> 0.28-0.40 ms and GPU
5.3-7.8 -> 1.13 ms; on the UHD 770 CPU 0.77-0.83 -> 0.04-0.11 ms and GPU 3.3-5.3 -> 0.59-0.91
ms; on the RTX 5080 Laptop GPU 2.03-2.05 -> 0.42-0.43 ms.
- rotated_textures::rotated_surface_frame_costs (1920x1080 BGRA8Unorm, release, UHD 770): rotation
1 clear+draw 4.41/4.43 ms against 7.24-8.24 ms, rotation 2 3.59-3.88 against 5.11-5.73 ms.
- span_copy_cost on the UHD 770: one region of 8,294,411 bytes recorded in 0.018-0.020 ms against
28.4-35.1 ms, its GPU time 0.64-0.66 against 5.97-5.99 ms; the YCbCr frame 2.89-2.98 against
6.80 ms of GPU. On RADV and NVIDIA the split recorded in the same CPU time and ran within about
10 us of GPU time where one region was already quick, and faster where it was not (8,294,411
bytes on the RTX 3090: 1520 against 6051-6061 us).
- Copy lanes with every byte checked under the validation layer (rows between buffers, a shadow's
staged rows going back as one dispatch, blits of textures over buffers, textures over bytes
past their VkBuffer) pass as dispatches on the UHD 770 and the RTX 5080 Laptop GPU and as
regions on lavapipe; the rotated, tile-shadow, two-plane heap and heap-layout lanes pass on the
UHD 770 with each rotated store's rows going back as a dispatched copy of rows.
long_copies_of_any_size_copy_metals_bytes (prime sizes and offsets) passes on the UHD 770, the
RX 7900 XTX, the 780M and the RTX 3090, and the YCbCr, blit, pitched-surface, no-copy,
first-use, fill and frame-cost lanes pass on the UHD 770.
- tests::exit_guard::only_the_listed_modules_keep_the_device_s_functions (the push goes through
the checked functions), bind::rows_copy, the driver_facts tests, owned_divisions, api_surface,
and the runtime unit tests named row_copies, work_counts, functions, copy, shadow, first_move
and ycbcr; clippy in every configuration and Rustdoc.
On a device whose half roundings take the 16-bit float controls (RoundingModeRTE, DenormPreserve
and SignedZeroInfNanPreserve for 16 bits with shaderFloat16: ANV and RADV among the committed
profiles), a half + - * is now the device's 16-bit OpFAdd, OpFSub or Fma(a, b, -0.0), kept apart,
between exact conversions (ops::f16_binary, the form the measured MoltenVK fact already takes).
Where shaderFmaFloat16 is enabled too, a half fused multiply-add is OpFmaKHR on 16 bits (new
fma::Route::F16Khr), under either policy. Elsewhere the f32 operation and its rounding pair, the
round-to-odd routine and native device maths' Fma stay as they were.
Exact: Vulkan's precision table lists OpFAdd, OpFSub and OpFMul for half precision, and OpFmaKHR,
as correctly rounded, to nearest even under RoundingModeRTE, with denormals kept under
DenormPreserve and zero signs under SignedZeroInfNanPreserve, the modes the entry declares where it
computes in 16 bits (narrow::computes_in_16_bits). That is Metal's half arithmetic and Metal's
half fma, which the round-to-odd routine emulated. A NaN's bits are the device's, as the
controlled rounding's already are; Metal's NaN is selected around the instruction where the
profile asks for it. The half fma under native device maths no longer records NativeFma there.
Why: the device's compiler spent most of a large half fragment function's making on the f32 ->
f16 -> f32 rounding pairs, most of which follow a + - * or a fused multiply-add. On ANV a
consumer's largest fragment library made in about 4 s, and about 2.2 s without its rounding pairs.
New: VkFeature::ShaderFmaFloat16 (the Khronos table, enables, the ash and runtime feature chains,
derivation, the codec), OpFmaKHR's feature by its operands' width, the builder's OpFmaKHR on 16-bit
floats, and the owned fixture engine/hfb_filter_bank (a 32-case switch of runtime-sampler tap
loops and half arithmetic chains) with its engine inventory rows. The validation engine's enable
list enables shaderFmaFloat16 from VkPhysicalDeviceShaderFmaFeaturesKHR beside shaderFmaFloat32,
and the opened-chains pin records it for the profiles that list it. Docs: docs/FAST-PATHS.md's half
rounding row, and the NativeFma notice in artifact.rs and docs/API.md.
Verified, as the commits state:
- On the UHD 770 (ANV, Mesa 26.2.4) the fixture's fragment library made in 1.74-1.89 s against
4.64-5.26 s before (3 alternating rounds, no driver caches), SIMD8 instructions 25,902 ->
18,736, translation 0.17 s release; driver_deviations::half_arithmetic_answers_as_metal passes
there.
- On the UHD 770 in the release m2v_gpu build, the groups that failed before the engine enabled
the feature pass: candidate engine runs, platform enables and device, engine_render,
engine_compute, engine_textures, acceptance_pipelines, the runtime lanes kernel_textures,
sparse_textures, renders, argument_buffers and runtime_probe, and the half and fma driver
deviations.
- Debug translator tests: engine_arith, lower::arith, the fma, derivation, device, ash_interop,
cache and fast_paths tests, and the engine inventory's llvm_as parts; engine_native_half
(counting the 16-bit operations and their exact conversions) and engine_spirv_cross_forms (no
NativeFma where the half fma route is F16Khr), with fused and engine_arith, 213 passed.
- clippy of metal2vulkan.
Vulkan enables the SPIR-V capabilities StorageImageReadWithoutFormat and
StorageImageWriteWithoutFormat by shaderStorageImage{Read,Write}WithoutFormat, by Vulkan 1.3, or
by VK_KHR_format_feature_flags2; under the last two each format's own
STORAGE_{READ,WRITE}_WITHOUT_FORMAT bit (VkFormatProperties3) says whether it may be accessed so.
Intel's ANV and SwiftShader lack shaderStorageImageReadWithoutFormat, and the translator took the
feature as the only route, so a storage read the shader cannot declare with a SPIR-V format was
refused there even where the format's own bit grants it. Metal accepts such reads: an A8Unorm
storage texture read, and a fetch of an A8Unorm color attachment through the pixel interlock.
Now:
- VkExtension::KhrFormatFeatureFlags2 joins the Khronos name table, the cache codec, the
runtime's and the validation platform's extension tables and the enable facts (core in 1.3, no
feature member). The runtime enables it below Vulkan 1.3 where the device lists it.
- A module's Requirements list the two capabilities without their feature
(device::requirements::WITHOUT_FORMAT_CAPABILITIES), and DeviceProfile::check and
DeviceDescription::required_enables resolve them on the device: the feature where the device has
it, else nothing at Vulkan 1.3, else the extension. A device with none is refused naming the
feature, as before.
- metal::format: a typed declaration stays preferred wherever SPIR-V names the format; the
declarations SPIR-V cannot name (the storage choice, the fetch's storage form, the depth and
stencil fallbacks, the slot's formatless refusal, the ulong form) go by the features or by the
format's own bit.
- A heap stays on the features: a per-pipeline check of each member's bit is not built, and
docs/FAST-PATHS.md's known gap says what the formats' bits leave refused on ANV.
Effect on the committed profiles, read at the runtime's Vulkan 1.2 with and without the
extension over every PixelFormat: on intel-irisxe-rplp-anv and intel-uhd770-rpls-anv an A8Unorm
storage texture read and read-write, and an A8Unorm color attachment fetch read and written,
single and multisampled, now compile (an A8_UNORM view declared without a format), and an A8Unorm
texture buffer takes the A8_UNORM view in place of R8_UNORM holding alpha in red (both Metal's
texels). On intel-irisxe-anv and swiftshader nothing lifts. Every other changed cell on the four
profiles (1280) keeps its refusal and now names the format's missing bit in place of the feature.
The engine fixture tables do not change on any profile. The validation platform's Vulkan 1.2
device contexts enable the extension where a profile lists it, and the opened-chains pin records
it (32 contexts on 16 profiles, one more extension each).
Verified, as the commits state: the unit tests device::tests::enables (the feature, the version or
the extension), metal::format (access by the format's bits with the extension),
lower::fragment::fetch (an A8Unorm attachment fetched by its own bit, the fetch tests at Vulkan 1.2
with and without the extension), spirv::requirements and spirv::serialize, and the
framebuffer-fetch compile test all pass; public_fixtures_engine parts 1-8 unchanged; the
per-profile census above, run as a temporary test; candidate::platform::enables::tests 21 of 21;
clippy. New lane runtime_lane::alpha_in_red::a8_storage_reads_without_the_feature_go_by_the_format_s_bit
(a device made without shaderStorageImageReadWithoutFormat, as ANV is, reads its own A8_UNORM by
the format's bit under the extension: Metal's (0, 0, 0, 0.6) and 178).