48d7ded3aa1d2f33f08e467052f9869c9d69ae5a
907
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
53dd17e008 |
Translator: delete VkFeature's RobustBufferAccess and RobustBufferAccess2, which nothing reads
The batch deleted the translator's choice between the driver's buffer robustness and the in-shader check: every buffer access is checked in the shader, and no lowering reads robustBufferAccess or robustBufferAccess2. The runtime enables neither (its floor table names neither; robustImageAccess, robustImageAccess2 and nullDescriptor are its robustness features, and robustImageAccess2 stays: memory::contain reads it for images). What still named the two was the enable-set vocabulary around them, so it goes with them: - VkFeature::RobustBufferAccess and VkFeature::RobustBufferAccess2, from the enum, its codec, the exposure table (Vulkan 1.0 core; VK_EXT_robustness2 keeps robustImageAccess2 and nullDescriptor), the Khronos reader's member table, the ash query's feature sources, and required_features (whose Vulkan 1.0 tier held robustBufferAccess alone and goes). - The co-enable rules only they took part in: robustBufferAccess2 needs robustBufferAccess (VUID-...-robustBufferAccess2-04000, a FEATURE_NEEDS row), and the update-after-bind features of buffer descriptor types beside robustBufferAccess without robustBufferAccessUpdateAfterBind (VUID-VkDeviceCreateInfo-robustBufferAccess-10247: device::enables' crate-private BUFFER_UPDATE_AFTER_BIND and BUFFER_UPDATE_AFTER_BIND_VUID, and its branches in co_enable_violation and co_enabled). The multiview rules stay. - DeviceDescription::robust_buffer_access_update_after_bind, which only that rule read, with its Khronos and ash readers and the Device's copy. So a recommendation now keeps every update-after-bind feature a device lists: runtime-floor's, which used to leave its two texel-buffer ones out beside robustBufferAccess, holds them, and a device made from it compiles texture buffers. docs/API.md's section 2 and the enable-set docs say that the recommendation names neither robustness feature, and that a consumer who enables robustBufferAccess itself keeps VUID 10247. The consumer's checkout (reims-vgpu development d80a432f3a, `git grep -n -w ITEM development -- '*.rs'`) names none of the deleted public items: RobustBufferAccess 0, RobustBufferAccess2 0, robust_buffer_access_update_after_bind 0 (BUFFER_UPDATE_AFTER_BIND 0 and BUFFER_UPDATE_AFTER_BIND_VUID 0, both crate-private). It names no VkFeature and no DeviceDescription at all, so no glob import or re-export hides a hit. No module changes: no lowering read either feature. Every committed profile's fingerprint moves (each listed robustBufferAccess, a Vulkan 1.0 requirement), so every golden cell and every key under one moves with it: bless-class, a changed fingerprint, no SEMANTICS bump. The codec names a variant by its tag, so no other feature's encoding moves; an artifact naming a deleted feature would sit under a fingerprint that no longer exists. The tests follow: those of the deleted rules go (recommendations_keep_robust_buffer_access_and_ vuid_10247, a_recommendation_keeps_vuid_10247, both robust_buffer_access_update_after_bind readers' tests); tests that ran every profile "with robustness and without" lose the leg that was the same profile (engine_access, _atomics, _binder, _buffer_table, _copy, _dynamic_roots, _gep_index, _index_words, _kernel_stage_in, _link, _pointer_memory, _pointer_values, _rate_map, _skeleton), and the out-of-bounds cases those tests ran only on the bare leg (short stage-in buffers, far rate-map coordinates, huge copy lengths, 8- and 16-byte leaves past the end) now run on every profile; image robustness lists keep their two image features. Validation maps the two members to no feature (registry names kept), its tier table's robustness-off leg removes the image features alone, and its tests check the two members unset in the chain. The runtime's tests stop naming them. profiles_both_encodings' second leg is now the profile unchanged; the next commit removes it. api_signatures.tsv re-blessed (3 records gone); refusal surface unchanged. |
||
|
|
8ed044f2e8 |
Translator: a replay variant under the identity domains is refused, typed
The commit before this one placed the RootTableAddress a device-replay variant
(VariantKey::replay_bindings) reads its buffer slots' addresses from, so under the identity
domains the variant no longer ends in the internal error "a strategy reads the unplaced push field
RootTableAddress". Its message said the variant then compiles there; it does not. With the field
placed, the plan reaches select::identity_admits, whose admitted push fields hold no
RootTableAddress: the identity domains read no root table, and the variant is refused,
Unsupported{IdentityDomains} (NotImplemented) naming "an encoder value the function reads as
RootTableAddress". That refusal is the true answer: only the binder (bind/replay, bind/dispatch,
bind/graphics) asks for a replay variant, and the runtime, the one consumer of the identity
domains, never sets replay_bindings (no hit in crates/metal2vulkan-runtime/src). The refusal
site and its row are the existing ones, so docs/REFUSALS.md does not change.
So the tests say the refusal:
- pipeline::compile::tests::a_replay_variant_under_the_identity_domains_is_refused_typed (was
..._reads_its_root_entries): icb_render_replay_template, icb_render_stride_template under the
pulled-vertex-buffer variant and icb_replay_template under the identity domains with replay
bindings are each refused, typed, with that feature, need and symbol.
- tests::engine_device_replay::
a_replay_variant_under_the_identity_domains_reads_its_slots_from_their_root_entries goes, with
its module-doc paragraph: no such module is made.
docs/API.md section 5 now says the variant is refused there, and slot_address_field's comment
names the admission that refuses it.
Verified: before this commit, on m3-max-66628 (the product suite at 84c6726dd8, a
card-free host build), both item tests failed with exactly this refusal at the three compile
calls and the engine kernel; without the placement, m3-max-66629 (probe branch
steelbrain/halfmoves-probe-nofix2) failed both with the internal error, so the new test fails
without the placement. This commit's own run is the next compile job.
|
||
|
|
46a9a57522 |
Docs: the runtime binds through no stage table; the validation executor sets its buffer ranges
docs/API.md section 5 said of StageTable::buffer_ranges "The runtime sets it on every table it reads." The runtime builds no StageTable and reads no BindState: crates/metal2vulkan-runtime names no StageTable, BindState, BufferRanges or buffer_ranges, and of the binder it takes only alpha_test_code, SamplerDescriptor and AstcDecode. The tables that set it are the validation executor's: every table its candidate engine builds for a compute, render or mesh case passes through candidate::engine::lengths_classed with BufferRanges::of its profile's limits. The sentence now says so. Verified: grep over crates/metal2vulkan-runtime/src for those four names (no hit) and for metal2vulkan::bind (the three items above); the validation builders read at candidate/engine.rs, engine/graphics.rs and engine/mesh.rs, the one other StageTable there (engine/variants.rs) inside a #[test]. Docs only. |
||
|
|
9df6908e36 |
Translator: a replay variant under the identity domains pushes the root table its slots are read from
Under the identity domains a device-replay variant (VariantKey::replay_bindings) ended in an internal error, "a strategy reads the unplaced push field RootTableAddress": a vertex function's buffer arguments, the attribute of the pulled-vertex-buffer variant and a kernel's buffers alike. The variant reads each buffer slot's address from its replayed command's root entry (access::replay_guest_base, which a replay variant's SlotGuestBase reads route to), and the translator already holds it so: the address is not biased in a replay variant (pointer::biased), and its accesses take no SlotBounds (access::identity_contained). But place_slots pushed every device-address slot's SlotGuestBase under the identity domains, whatever the variant, after plan_replay had replaced the selection's SlotGuestBase fields by RootTableAddress. So nothing pushed the root table's address the derived reads load. The field is placed: a device-address slot's push field is its own address only under the identity domains outside a replay variant (slot_address_field), in place_slots and in the census its spill decision reads, and the root table otherwise. No refusal changes, and no module of a compile that succeeded before changes: the combination never compiled. The branch's one SEMANTICS bump (2273, the half-move commit before this one) covers it. docs/API.md section 5 states where a replay variant's slot addresses come from under the identity domains. Verification: - pipeline::compile::tests::a_replay_variant_under_the_identity_domains_reads_its_root_entries, new: icb_render_replay_template, icb_render_stride_template under the pulled-vertex-buffer variant, and icb_replay_template compile under the identity domains with replay bindings, every buffer slot at its device address, RootTableAddress pushed and no SlotGuestBase or SlotBounds, every stage through L3. - tests::engine_device_replay:: a_replay_variant_under_the_identity_domains_reads_its_slots_from_their_root_entries, new: a kernel compiled so on every committed profile under the identity domains pushes RootTableAddress alone, and on the CPU interpreter reads and writes at the addresses its root entries name (guest plus bind_offset, 16 bytes into one buffer), above 4 GiB. |
||
|
|
4892518700 |
Translator: a half the lowering moves through a containment select or a candidate switch keeps its bits
A half moved without arithmetic must keep its 16 bits, a NaN's payload included: a move is not
the device's arithmetic, so no precision note covers it. bb44847705 fixed the contained load of
device memory. Four more moves the lowering makes itself lost the bits:
- the contained loads of the arenas (lower/access/local.rs) and of the constant blob (blob.rs)
selected the decoded f32 with no bits note;
- the switch-at-use over a pointer's candidate buffers (emit.rs: the device buffers' switch and
the blob-or-buffer switch) merged the arms' decoded f32 by a phi with no note.
A store of the moved half then re-encoded it by the device's narrowing. On the CPU interpreter
2045 of the 2048 all-ones-exponent patterns came back 0x7e00 (0x7c01 to 0x7e00, for example) at
each of the four, on every committed profile under the resident-table domains (job m3-max-66591,
the new test without this change).
One form for every move the lowering makes: the bits move beside the value and are noted for the
result, so a later narrow::to_bits returns them.
- A containment select is leaf::contained (bb44847705's narrow::select_zero) at every
containment select of a leaf: device views and addresses as before, the arenas, the constant
blob, and the pulled fetch's source read. The pulled fetch reads raw integer components and
decodes a half after the select, so its output does not change.
- A switch merge: each arm carries its value's parts and their bits (leaf::carried, the bits
from narrow::moved_bits: the bits noted for the value, else its to_bits), the merge's phis
carry both, and leaf::merged notes each part's bits phi for its value phi
(narrow::note_moved), chunk by chunk for a chunked vector.
Where the moved value is stored unchanged, the f32 select or phi and the decodes are dead and
leave the module; where it is computed with, the bits ones are.
Not changed: a leaf that is no narrow float (carried and merged pass its value alone); the
program's own select and phi of a half, which stay the device's moves under
PrecisionNote::NativeNanEncoding; typed objects, which hold a half widened.
SEMANTICS_VERSION 2272 to 2273 (2272 is lane irisvsimd's, landed first): a module that
stores a half moved through one of these paths changes.
Verification:
- tests::engine_half_moves::our_own_moves_keep_every_half_patterns_bits, new: four kernels move
the patterns through a contained private-arena load, a contained constant-blob load, the switch
over two device buffers (an eight-lane half vector, so chunked) and the switch over a constant
buffer or the blob, each module's path asserted (its census key, or its switch-at-use), on every
committed profile under the resident tables. Without this change it fails at all four (job
m3-max-66591: 2045 of 2048 changed, 5 distinct modules each); with it every pattern keeps its
bits (job m3-max-66584, 2 distinct modules each).
- Compile job m3-max-66584 at this tree: fmt, signatures, refusal surface, clippy plain,
--cfg m2v_gpu and --cfg m2v_cpu_icd, workspace rustdoc -D warnings, api-docs.
- The 252-row hash probe over the two app libraries on validation's runtime description: 252 ok,
0 of 252 module hashes move (job m3-max-66587 against m3-max-66590 at
|
||
|
|
4c21ead93c |
bind: the items nothing outside bind/'s own tests reached go, with the tests of them alone
What goes: every item of the translator's bind/ that no product code, no other crate of the
workspace and no consumer reaches, by rustc's own dead-code answer with bind/'s items made
crate-private (no table is trusted), and the tests that test only them. Six files go whole
(acceleration, chroma_decode, rate_map/regions, replay/rules, sample_interleave, tile_map), and
with them replay/draws, replay/generated, fan_out's tests, the device replay's preprocess and the
host replay (replay.rs keeps the merged draw's reads), the heap element and raw-form readers, the
resident set, the mesh arguments module, the rate-map regions, the sparse tile map, the chroma
decoders and the sample interleave modules. Also the empty `impl Device {}`, and the three Device
calls nothing in the tree made: render_descriptor_key, mesh_descriptor_key and
compile_function_with_report (compile_function keeps its body). The old-key test
(the_old_render_descriptor_key_keeps_its_value) goes with render_descriptor_key: one bless item
fewer at every pin.
What stays: what anything reaches. The consumer-reached ArgumentBufferLayout family, the merged
draw's reads (replay/merged and the helpers replay.rs keeps), ycbcr_convert's and
mesh_arguments' reached items, and every bind item validation, conformance, the runtime, the
harness or the examples name. A CPU oracle, accessor or constructor that only tests call, and
whose tests check kept behaviour, becomes #[cfg(test)] test support where it is (812 lines: the
argument layout's `argument`, the YCbCr read model, YCbCrPlanes and YCbCrInPlace's constructors
and accessors, the rate map's accessors and constructors, FunctionTableWords and the snapshot's
bytes, the ASTC and ETC texel formats and block values, heap_classes and image_classes). The
public types without a constructor (TexelRows, YCbCrInPlace, IndirectRef, ViewMapping,
TileThreadgroupMemory, TileThreadgroupArgument, ArgumentFunctionTable, ResidentRange,
BoundAccelerationStructure) stay: a public field or parameter of the library takes each.
Lines (from the batch's tip): product 9,219 removed and 728 added; test 7,758 removed and 381
added. 137 test functions or helpers outside the deleted ones are edited off a deleted item, the
largest by 22 lines. Validation, conformance, the harness and the runtime change only in doc
comments that named a deleted item.
Docs: docs/API.md says what is true now (no replay, no heap element reader, no has_shape, the
texel-buffer parts rule stated inline), docs/REFUSALS.md regenerated, api_signatures.tsv blessed
(522 records out), the api_surface table drops 79 bind names.
Consumer hits at its development (git grep -n -w ITEM development -- '*.rs'). The consumer
imports from metal2vulkan::bind only ArgumentBufferLayout, ArgumentDescriptor,
ArgumentLayoutError and ArgumentType, with no glob, and the runtime re-exports only
bind::SamplerDescriptor; every non-zero count below is a generic word whose hits are the
consumer's own items (none of their lines names metal2vulkan; its 22 `.argument(`/`.place(`
calls are on its own types).
Device::render_descriptor_key 0, Device::mesh_descriptor_key 0,
Device::compile_function_with_report 0.
Deleted public top-level items (93):
ARGUMENT_BYTES 0, bit_index 0, bit_set 0, ChromaDecode 0, draw_merge_module 0, draw_replay_draw 0,
draw_replay_indexed 0, draw_replay_merges 0, draw_replay_module 0, draw_replay_preprocess 0,
draw_replay_primitive_type 0, draw_replay_slots 0, draw_replay_state 0, draw_replay_vertex_layouts
0, DRAW_REPLAY_WRITES 0, DrawMergeModule 0, DrawReplay 0, DrawReplayLayout 0, DrawReplayModule 0,
DrawReplayPreprocess 0, DrawReplayRule 0, extent_of 0, FORMAT 5, GeneratedLayout 0, GeneratedReplay
0, GeneratedVariant 0, geometry_flags 0, GEOMETRY_NO_DUPLICATE_ANY_HIT_INVOCATION 0, GEOMETRY_OPAQUE
0, geometry_table_offset 0, handle_entry_flags 0, HANDLE_TABLE_CAPACITY 0, heap_element 0,
heap_raw_form 0, HeapElement 0, HeapElements 0, InheritedBytes 0, instance_record 0, InstanceRecord
0, interleave_merge_modules 0, interleave_split_module 0, InterleaveMergeModules 0,
InterleaveSplitModule 0, level_extent 0, MAX_DRAW_REPLAY_TYPES 0, MAX_REPLAY_DISPATCHES 0,
MAX_REPLAY_REGIONS 0, MAX_REPLAY_SLOTS 0, MAX_REPLAY_VARIANTS 0, MAX_SEGMENT_COMMANDS 0,
merge_fragment_typed_module 0, MERGED_CHUNK 0, MERGED_HEADER_BYTES 0, MergedLayout 0, MergePhase 0,
mesh_arguments_module 0, MeshArgumentsModule 0, MeshGridRule 0, MetalInstance 0,
NEUTRAL_HEAP_ELEMENT 0, NO_HOLE 0, PARAMS_BYTES 0, PlanesCopy 0, primitive_wrap 0, RateMapRegion 0,
RateMapRegions 0, REGION_BYTES 0, RegionError 0, RegionLimits 0, replay_preprocess 0,
replay_preprocess_generated 0, replay_preprocess_module 0, ReplayExecution 0, ReplayLayout 0,
ReplayPreprocess 0, ReplayPreprocessModule 0, ReplayVariant 0, resident_view 0, ResidentSet 0,
ResidentView 0, resolve 179, SCRATCH 0, SLOT_TABLE_BYTES 0, SOURCE 7, SparseTileMap 0,
split_typed_module 0, STATUS 42, TEMPLATE_HEAD_BYTES 0, texel_buffer_parts 0, TileMapError 0,
TileMapping 0, typed_module 0, VARIANT_BYTES 0
Deleted public methods and associated items (126; the count is of the member's name):
ArgumentFunctionTable::at_address 0, BindingPlan::heap_elements 0, BindingPlan::instantiate_replay
0, BindingPlan::relisted_sampler_tables 0, BindingPlan::sampler_tables 0,
BindingPlan::unit_axes_variant 0, BindState::has_shape 0, BindState::has_shape_beside_used 0,
BoundBuffer::same_shape 0, ChromaDecode::ALL 62, ChromaDecode::BLOCK_BYTES 0,
ChromaDecode::block_extent 0, ChromaDecode::decode 2087, ChromaDecode::decode_into 26,
ChromaDecode::of 20774, ChromaDecode::TEXEL_BYTES 0, ChromaDecode::texel_format 0,
DrawMergeModule::HEADER_PUSH 0, DrawMergeModule::LOCAL_SIZE 0, DrawMergeModule::PUSH_BYTES 0,
DrawMergeModule::push_constants 0, DrawMergeModule::STATUS_PUSH 0, DrawReplay::new 9170,
DrawReplayLayout::argument_offset 0, DrawReplayLayout::fragment_table_offset 0,
DrawReplayLayout::params_offset 0, DrawReplayLayout::vertex_table_offset 0,
DrawReplayModule::LOCAL_SIZE 0, DrawReplayModule::PUSH_BYTES 0, DrawReplayModule::RECORDS_PUSH 0,
DrawReplayModule::RESIDENT_PUSH 0, DrawReplayModule::STATUS_PUSH 0, EtcDecode::block_extent 0,
ExecutionStatus::WORDS 7, GeneratedLayout::count_offset 0, GeneratedLayout::dispatch_offset 0,
GeneratedLayout::INDEX_OFFSET 0, GeneratedLayout::max_sequences 0, GeneratedLayout::PUSH_OFFSET 0,
GeneratedLayout::sequence_offset 0, GeneratedVariant::new 9170, HeapElements::element 103,
ImageViewDesc::new 9170, InstanceRecord::bytes 7067, InstanceRecord::BYTES 29,
InterleaveMergeModules::SET 43, InterleaveMergeModules::WIDE_BINDING 0,
InterleaveSplitModule::LOCAL_SIZE 0, InterleaveSplitModule::SET 43,
InterleaveSplitModule::SOURCE_BINDING 0, InterleaveSplitModule::WIDE_BINDING 0,
MergedLayout::draw_offset 0, MergedLayout::group_count 0, MeshArguments::ARGUMENT_BYTES 0,
MeshArguments::new 9170, MeshArguments::OBJECT_RECORD 0, MeshArguments::scratch_bytes 0,
MeshArgumentsModule::PUSH_BYTES 0, MeshArgumentsModule::SCRATCH_BINDING 0, MeshArgumentsModule::SET
43, MeshArgumentsModule::SOURCE_BINDING 0, MeshArgumentsModule::STATUS_BINDING 0, MeshGridRule::of
20774, MetalInstance::new 9170, ObjectFold::bytes 7067, PlanesCopy::ALL 62, PlanesCopy::format 3896,
PvrtcDecode::BLOCK_BYTES 0, PvrtcDecode::block_extent 0, PvrtcDecode::decode 2087,
PvrtcDecode::decode_rows 0, PvrtcDecode::level_bytes 0, PvrtcDecode::linear 144,
PvrtcDecode::TEXEL_BYTES 0, PvrtcDecode::texel_format 0, RasterizationRateMap::regions 39,
RateMapRegion::scissor_extent 0, RateMapRegion::scissor_offset 0, RateMapRegion::viewport 45,
RateMapRegions::admits 17, RateMapRegions::admits_planned_layers 0, RateMapRegions::MAX_REGIONS 0,
RateMapRegions::physical_size 4, RateMapRegions::precision 24, RateMapRegions::regions 39,
RegionLimits::new 9170, ReplayExecution::new 9170, ReplayFaults::ACTION 4, ReplayFaults::BARRIER 2,
ReplayFaults::BUFFERS 0, ReplayFaults::ENCODING 0, ReplayFaults::GROUP_COUNT 0,
ReplayFaults::PIPELINE 11, ReplayFaults::RANGE 0, ReplayFaults::RECORD 15, ReplayFaults::REGIONS 0,
ReplayFaults::VARIANT 0, ReplayFaults::VERTICES 0, ReplayLayout::argument_offset 0,
ReplayLayout::params_offset 0, ReplayLayout::region_offset 83, ReplayLayout::table_offset 0,
ReplayPreprocessModule::PUSH_BYTES 0, ReplayPreprocessModule::RECORDS_PUSH 0,
ReplayPreprocessModule::RESIDENT_PUSH 0, ReplayPreprocessModule::STATUS_PUSH 0, ReplayVariant::flat
30, ReplayVariant::new 9170, ReplayVariant::with_imageblock_size 0, ResidentSet::bytes 7067,
ResidentSet::holds 3097, ResidentSet::is_empty 1066, ResidentSet::len 4763, ResidentSet::with 6328,
RootTable::resident_ranges 0, SparseTileMap::byte_len 0, SparseTileMap::is_mapped 4,
SparseTileMap::new 9170, SparseTileMap::tile 141, SparseTileMap::to_bytes 6, SparseTileMap::update
185, StatusWord::ALL 62, TexelRows::elements 50, TexelRows::new 9170, TexelRows::size 3417,
TypedModule::requirements 11
Out of the public API into #[cfg(test)] test support (41; the count is of the last name):
ArgumentBufferLayout::argument 298, ArgumentPlace 0, AstcDecode::block_values 0,
AstcDecode::texel_format 0, EtcDecode::ALL 62, EtcDecode::texel_format 0,
FunctionTableSnapshot::byte_len 0, FunctionTableSnapshot::bytes 7067, FunctionTableWords 0,
FunctionTableWords::byte_len 0, FunctionTableWords::new 9170, heap_classes 0, image_classes 0,
RasterizationRateMap::from_layers 0, RasterizationRateMap::layer 325,
RasterizationRateMap::parameter_data_size 0, RasterizationRateMap::physical_granularity 4,
RasterizationRateMap::physical_to_screen 4, RasterizationRateMap::shader_physical_to_screen 0,
RasterizationRateMap::shader_screen_to_physical 0, RasterizationRateMap::vertical 19,
RateMapAxis::from_tiles 0, RateMapAxis::granularity 24, RateMapAxis::screen_extent 0,
RateMapAxis::tiles 148, ycbcr_read 0, ycbcr_texel 0, YCbCrCodes::units 507, YCbCrInPlace::bits 940,
YCbCrInPlace::element_bytes 0, YCbCrInPlace::elements 50, YCbCrInPlace::format 3896,
YCbCrInPlace::of 20774, YCbCrInPlace::view_bytes 3, YCbCrInPlace::with_planes_image 0, YCbCrPlanes
0, YCbCrPlanes::new 9170, YCbCrPlanesSampler::bits 940, YCbCrPlanesSampler::format 3896,
YCbCrPlanesSampler::matrix 122, YCbCrPlanesSampler::range 1784
|
||
|
|
03e13a12c9 |
Docs: object and mesh SIMD-group functions are a recorded refusal; the vertex quad row says shuffles
- docs/API.md, "Mesh pipelines": an object or mesh function that calls a SIMD-group, quad-group or SIMD-group matrix function is refused on every device, including a device that lists the task and mesh stages in subgroupSupportedStages. The translator models no subgroup facts for those stages (device/subgroup.rs, UNMODELED_STAGE). [[thread_index_in_simdgroup]] alone compiles there (the Linear tier). Until now no doc recorded this open gap where a user reads it. Of the corpus index's 14 object and 32 mesh functions, none calls an air.simd* or air.quad* intrinsic. - fixtures/public/engine/README.md, gsm2_vertex_quad_permutes' row: it said the translation emits Vulkan's quad instructions where the vertex stage takes them. It lowers each one to a subgroup shuffle through the ballot of the live lanes, on every device: a group plan takes quad instructions only in a kernel, as tests::engine_simd's vertex_quad_permutes_shuffle_through_the_live_lanes asserts. The runtime-sources.sha256 move from 032b641117 (device/derive.rs and device/subgroup.rs are runtime inputs) is a hash-only re-pin at landing, with no RUNTIME_VERSION bump. A run's behaviour does not change: the device's enables and caps are the same, and only the translator's subgroup model loses a field. |
||
|
|
e3fbf2ca99 |
PrecisionNote::VertexSimdgroupGrouping: a vertex function's simdgroup and quad operations run over the device's grouping
A vertex function that runs a simdgroup or quad operation (any group operation or AGX multiply-add: the simd plan's observes_lanes) records PrecisionNote::VertexSimdgroupGrouping on every device (lower::simd::finish). Metal's shading language defines its SIMD-group and quad-group functions for kernel and fragment functions (MSL 4.1 sections 6.10.2 and 6.10.3) and names no lane among a vertex function's inputs (Table 5.2), so in a vertex function the groups are the device's own, as FragmentSimdgroupGrouping already says of fragment functions. Validation takes the note as unbounded (a difference is a noted difference) and C3 defers its rows (DEFERRED_NEAR_EQUIVALENTS), as it does the fragment note; conformance names it metal2vulkan-degrade-vertex-simdgroup-grouping; docs/API.md's catalogue states it. SEMANTICS 2272. Why: on the Iris Xe (RPL-P, Mesa 26.2.6) 8 authored vertex cases mismatched the M3 Max while the Radeon 780M and the RTX 3090 matched. A raw Vulkan probe outside the runtime (a SPIR-V 1.5 vertex shader over 64 rasterizer-discarded points, validation layer on, 0 messages; Iris Xe job m3-max-66302, Radeon 780M m3-max-66303, RTX 3090 m3-max-66304) read SubgroupSize 32 in every Iris vertex invocation with lane ids 0 to 7 only: 8 subgroups of 8, in each run of 16 vertices the even ones in one and the odd ones in another, every vote, sum, shuffle and quad broadcast exact over the driver's own groups. The 780M runs one 64-lane group in vertex order, the 3090 two 32-lane groups. Vulkan holds SubgroupSize to subgroupSize for a SPIR-V 1.5 module and promises full subgroups only to stages with workgroups, so the driver answers per its properties, and the translator's tier follows the stage's queries (Iris: vertex not in requiredSubgroupSizeStages, Direct at the API size 32). The 8 cases' outputs on the Iris (m3-max-66342) equal, word for word, Metal's semantics over the Iris's own groups with the partly-live rule's own-value read for a lane that takes no part (0 differing words in each of the 8; the grouping of the 40- and 42-point draws is inferred from the 64-point rule). |
||
|
|
54cd974bae |
Translator: a signalling float NaN constant records NativeNanEncoding
Observation: the RTX 3090 run of the authored case b315adcc (float-operations-decided-by-a-bound-constant-fast, fixture sfold_fast.ll, job m3-max-66255) differs from Metal at words 16-19 and 68-71. That is f[4] = fma(float4(k_snan), x, x) with k_snan bound to the signalling NaN 0x7f800321: Metal stores 0x7f800321 and the 3090 stores 0x7fc00321. The module recorded no precision note, so validation counted it as a mismatch. Cause: no fma reaches the module. canon::sccp's float_fold folds an fadd, fsub, fmul, fdiv or air.fma with a NaN operand beside operands only the run knows to that operand, unquieted, as Metal's compiler does once the constants are bound. So the module stores a float4 constant 0x7f800321, and the device's move of it as a float quiets it. No Vulkan rule forbids that, so the stored NaN's bits are the device's. AGENTS rule 1 counts a NaN's bits among the device's own answers and asks for a static note. Fix: nan::holds_signalling_float, called from the arith family's finish(), records PrecisionNote::NativeNanEncoding where the entry's module holds an f32 constant whose bits are a signalling NaN: every exponent bit set, the quiet bit clear and a nonzero payload (nan::signalling_f32). - The rule is decided from the constant's bits alone, never from a name or a case. - An entry's module holds exactly the constants its function reaches (canon::prune), so the note follows the entry, not its library. - It covers every operation of the fold family, because it keys on the stored constant, not on the operation, and it covers a signalling NaN the program wrote itself. - f32 only. A half constant moves as its bits (narrow::constant_bits): h[2] of the same case matches Metal. double is not measured and not claimed. - The scan ticks the meter once for the table's length. Validation reads the note from the module: the candidate takes the pipeline state's precision notes (candidate/platform/runtime.rs), and the comparison class is derived from them (observation_contract::comparison: NativeNanEncoding is Allowance::Unbounded). b315adcc's difference is therefore expected to count as a noted difference instead of a mismatch. That is expected, not yet run. Docs: docs/API.md's NativeNanEncoding entry and the note's doc comment gain the case. They claim only what was seen: the 3090 quiets an f32 constant on the move, the other cards in the runs so far kept its bits, half constants move as bits, and double is not measured. Test: engine_float_call_notes::a_signalling_float_nan_constant_records_the_devices_nan_encoding. A kernel storing the f32 constant 0x7f800321 records the note. One storing the quiet 0x7fc00321 does not, and neither does one storing the half 0x7c01. Without the finish() call the first assert fails. Bless class at the next pin, expected and not audited: authored compile-census rows of cases whose module keeps a bound signalling f32 NaN beside a run value (the sfold cases binding k_snan, b315adcc among them) gain NativeNanEncoding. The golden tables compile with function constants unbound and hold no NaN literal (no public fixture spells one), so they are expected unchanged. No SEMANTICS bump: the batch's last commit carries it. |
||
|
|
556707ed79 |
Translator: containment is the in-shader check on every profile; Robustness goes
The translator chose a containment form from the device's buffer robustness: with robustBufferAccess or robustBufferAccess2 enabled, a descriptor view's access carried no check and the device bounded it. The runtime enables neither feature (its floor's feature table names only nullDescriptor, robustImageAccess and robustImageAccess2), so that form never ran there; it ran only on validation's committed descriptions, as stated. It goes, with the choice: - Robustness (None, Rba, Rba2), DeviceProfile::robustness() and DeviceProfile::checks_buffers_in_shader(), and contain::encoding. A descriptor view's access is the in-shader check on every profile; Check::None remains only for a device-address access that nothing bounds (AccessPlan::psb_contained false). - A texel buffer is checked in the shader on every profile (it was the device's under robustBufferAccess2). Images keep their device form: device_reads_texels and device_drops_texel_writes still read robustImageAccess2 and robustImageAccess, which the runtime's floor requires. - Vertex input: outside the identity domains every attribute is pulled through a checked view; before, a device with robustBufferAccess fetched in fixed function. Under the identity domains nothing changes: fixed function, or the refusal of what it needs. - The loop hoist loses its robustness parameter and the speculative path only Rba and Rba2 reached: a load in the loop's entry run still moves, other loads stay. - Validation: of_compile states buffers as Unused or Checked, the out-of-bounds contract states Check::Shader for a descriptor view and a texel buffer and Unchecked for a fixed-function attribute. BufferEncoding::Robust and Check::Robust stay as stored vocabulary: committed observations hold them, and no compile states them now. Removed public items, each with 0 hits in the consumer's checkout at bd9d6ae85a and at ad28ebd881 (git grep -w -F over *.rs, *.toml, *.md): Robustness, Rba, Rba2, robustness, checks_buffers_in_shader (DeviceProfile, their owner, has 0 hits too). api_signatures.tsv and api_surface.rs are blessed here; docs/API.md (the bounds bullet, the profile facts list, vertex_input) and the runtime README's not-enabled row for robustBufferAccess change in this commit; docs/REFUSALS.md is regenerated and unchanged. No version moves: the batch's SEMANTICS and ARTIFACT_FORMAT_VERSION bumps are applied last, once for the batch. Tests: the hoist's a_guarded_uniform_load_at_a_fixed_word_leaves_its_loop goes with the speculative path; without_robust_access_only_a_load_every_entry_runs_leaves becomes only_a_load_every_entry_runs_leaves; robustness2_selects_the_rba2_encoding keeps its MoltenVK asserts as moltenvk_m3_derives_its_stride_and_format_usages; engine_texture_interp's contains_texel_buffers helper goes, its tests always running N+3 threads. Rewritten to the one form: engine_texture_oob's texel-buffer classes ([Class::Shader]), engine_texture_ulong, engine_graphics_binder's per-device assert, the coverage tier-table and containment tests, and the out-of-bounds contract's fixed-function test. None was the sole proof of a kept behaviour. Golden: the table's columns are validation's committed descriptions as stated, all with robustBufferAccess and 13 with robustBufferAccess2; no column is the runtime's. Every column's fingerprint moves (ProfileFields loses its robustness field). Bless items: 24 rows, 312 cells, 24 in each of the 13 columns that state robustBufferAccess2 and 0 in moltenvk-m3 and runtime-floor, every one hash to hash, in the 14 texel-buffer fixtures now checked in the shader. The .air.ll half (567 typed-pointer fixtures, which need metal-as) is unchecked per commit; the batch's golden bless on the M3 covers it. Verified: - On unshipped's tip before this rebase (96d953bb0b), the same change: compile job m3-max-66123 green (fmt, signatures, refusals, clippy plain, m2v_gpu and m2v_cpu_icd, workspace Rustdoc, api-docs). - At the batch's top on that base (all four commits, probe job m3-max-66130): the hash probe's 252 rows equal unshipped's arm at 4861c9863d (m3-max-65976); the golden probe's set without buffer robustness (the runtime's state) equals the base arm 96d953bb0b (m3-max-66128), 1855 of 1855 rows; the stated set moves exactly the 312 cells above. - Here: cargo fmt; signatures check; refusal surface regenerated. The compile job follows on the branch tip. |
||
|
|
5e3477e60a |
Translator: a buffer slot takes the storage view on every profile; the uniform view goes
A buffer slot took a uniform view only where containment was the device's (contain::encoding gave Check::None, under robustBufferAccess or robustBufferAccess2): the uniform arm of the slot's view choice and Profile F's per-stage storage-buffer fallback. The runtime enables neither feature, so no runtime module took one. The next commit deletes the robustness choice; memory, lower and spirv are crate-private, so its dead_code would fail that commit on its own. The uniform view goes first, with everything that only it reached: - the uniform forms of a view (UniformWords and UniformVec4) and their reads, and Profile F's fallback (fallback_view, fallback_rank). Profile F (runtime-floor without device addresses, below the runtime's floor) now refuses a stage past maxPerStageDescriptorStorageBuffers as DescriptorCount, where before it read its read-only slots through uniform views, under robust descriptors only; - SlotPlan::lane_read and its planner pass, and Uniformity::among_active_lanes, which only that pass ran; - the storage-view variant: LoweringInputs and VariantKey storage_view_slots, the binder's storage_view_variant and large_view_candidates; - RuntimeFact::UniformViewAliasing and UniformViewRange with UniformViewChoice, and the binder's aliasing check with its refusal BindError::UniformViewAliased (docs/REFUSALS.md regenerated: binder refusals 9 to 8); - SpecKey::RangeAtBindOffset (only uniform views declared it), BindState::view_base_alignment and uniform_views_at_residual, StageTable.at_bind_views and StageTable::class_alignment; BoundBuffer::shape, BoundBuffer::same_shape and StageTable::shape lose their view_base_alignment parameter; - BufferRanges.uniform: BufferRanges::length_class and the binder's offset alignment now read maxStorageBufferRange and minStorageBufferOffsetAlignment alone. Nothing in the runtime crate reads BufferRanges, BindState, BoundBuffer, StageTable or BindShape (git grep: 0 hits); it reaches validation's candidate engine only; - AccessClass::Uniform, DescriptorView (Storage, UniformWords, UniformVec4) and BufferForm::uniform_view; BufferForm::Descriptor loses its DescriptorView field. The loop hoist stays: the argument table's Uniform block (lower::access::table, the spilled push fields) still feeds it. Its docs no longer name a buffer slot's uniform view. Removed or changed public items and the types that own them, each with 0 hits in the consumer's checkout at bd9d6ae85a and at ad28ebd881 (git grep -w -F over *.rs, *.toml, *.md): DescriptorView, UniformWords, UniformVec4, UniformViewChoice, UniformViewRange, UniformViewAliasing, UniformViewAliased, RangeAtBindOffset, storage_view_slots, view_base_alignment, uniform_views_at_residual, at_bind_views, class_alignment, uniform_view, same_shape, AccessClass, BufferRanges, buffer_ranges, BufferForm, StageTable, BoundBuffer, BindState, VariantKey, LoweringInputs, RuntimeFact, SpecKey, BindError. crates/metal2vulkan/tests/api_signatures.tsv and api_surface.rs are blessed in this commit, and docs/API.md (the uniform-view form, the bind-offset key, BufferRanges) changes with it. Stored: VariantKey's storage_view_slots, and the codec tags of BufferForm::Descriptor (no field), SpecKey (RangeAtBindOffset gone), RuntimeFact (two variants gone) and DescriptorView (gone). The batch's ARTIFACT_FORMAT_VERSION bump (590 to 591), applied last once for the batch, covers them; no version moves here. Tests deleted whole, neither a containment proof: engine_storage_view_variant.rs (the variant's fixed point) and engine_lane_reads.rs (the uniform view's lane choice). Deleted with the forms they tested: the uniform-view cases of engine_access.rs and engine_binder.rs, the slots tests of the large-view candidates and the bind-offset range, the variant's cache round trip, and the active-lanes tests of lower/simd/uniform. The kept containment proof, a constant buffer shorter than its window, runs on the storage form (a_constant_buffer_shorter_than_its_window_is_contained_in_shader). Profile F's new refusal has its test (a_stage_past_the_storage_buffer_limit_without_device_addresses_is_refused). Golden: at the batch's top only the stated set's 24 texel-buffer rows moved, the 312 cells commit 2 alone moved before the rebase; no other row moved on either set. The .air.ll half (567 typed-pointer fixtures, which need metal-as) is unchecked per commit; the batch's golden bless on the M3 covers it. Verified: - On unshipped's tip before this rebase (96d953bb0b), the same change: compile job m3-max-66120 green (fmt, signatures, refusals, clippy plain, m2v_gpu and m2v_cpu_icd, workspace Rustdoc, api-docs). Before that rebase, this commit alone (hash probe job m3-max-65979) read 252 rows equal to its base's arm. - At the batch's top on 96d953bb0b (all four commits, probe job m3-max-66130): the hash probe's 252 rows equal unshipped's arm at 4861c9863d (m3-max-65976); the golden probe's set without buffer robustness (the runtime's state) equals the base arm 96d953bb0b (m3-max-66128), 1855 of 1855 rows. - The states-only play at the batch's top (render and compute states made and refused, pipelines_created, made_ahead_variants) is the coordinator's, run on the branch; it is not evidence here. - Here: cargo fmt; signatures check; refusal surface regenerated. The compile job follows on the branch tip. |
||
|
|
4aee2fa9f1 |
Translator: the ordered fetch form goes; its computed writes are refused on every device
The framebuffer fetch had a second form chosen by rasterizationOrderColorAttachmentAccess: over
a rasterization-order input attachment, a fragment function computed writes no Vulkan blend,
write mask or logic operation gives. No runtime enables that feature, so the form ran on no
guest's device. It goes (rule 2: a second form chosen by a query outside the named list; rule 4).
What changes:
- A fetch reads its input attachment ordered between draws alone on every device, noted
UnorderedFetchWithinDraw. Under the identity domains it reads the pushed texture
(PushField::FetchedColor).
- These states are refused on every device: a padded extended-range attachment's blend; a write
of some of the codes one word of an extended-range attachment holds; and a blend no Vulkan
state gives on a rotated (ARGB8Unorm) attachment. Each refusal is FramebufferFetch, not
implemented (lower::fragment::fetch::computed_write_refused).
- A word attachment under a partial mask takes its format's own attachment, and is refused where
the device lacks that format.
- A private logic operation on a device without logicOp is refused naming
PrivateRenderState(LogicOperation) and logicOp.
- Deleted: lower/fragment/input_blend.rs, word_input.rs, the shader logic operation in logic.rs,
lower/arith/extended_range/blend.rs, pipeline/link/fetch.rs, and the arithmetic only they used
(the fma emulation cluster, div_exact, encode_keeping).
- Deleted public items:
- LoweringInputs.framebuffer_fetch and .logic_operation;
- FramebufferFetchInputs, FetchedAttachment, BlendEquation;
- GraphicsState.rasterization_order_attachment_access and
FragmentCaps.rasterization_order_color_access;
- metal::format::extended_range_blend, Feature::ExtendedRangeBlend and the ExtendedRangeBlend
enum;
- RuntimeInput::FramebufferFetch and ::LogicOperation;
- RuntimeFact::ExtendedRangeInputBlend, ::RotatedInputBlend and ::WordInputMerge;
- PrecisionNote::ExtendedRangeBlendSource and ::ExtendedRangeFloatBlendSource.
- The enable-set facts class VK_EXT_rasterization_order_attachment_access as described and never
enabled.
Docs, in this commit:
- rt README: Known gaps of render encoders gets one line per refused state, each built on the
runtime's own fetch form if a guest meets it. The Not-enabled row of
rasterizationOrderColorAttachmentAccess goes, and so does logicOp's mention of the shader form.
- docs/API.md loses the two blend-source notes from the precision-note catalogue, the
rasterization-order form and the word merge.
- REFUSALS.md is regenerated (reach row of ExtendedRangeBlend removed), along with
api_signatures.tsv and the api_surface table.
- The conformance ledger: the 39 rows refused naming rasterization-order access (on llvmpipe and
the UHD 630; on other venues the case read as lacks-feature) become 22 every-venue rows,
refused, needs NotImplemented. The matrix replay on development confirms the scope.
Lines: product sources (crates/metal2vulkan, -air, -runtime src, tests excluded) +238 -4647;
product tests +277 -2279; validation and conformance +61 -182; docs +48 -67.
Consumer search (reims-vgpu at 71573a84c8, git grep -w over *.rs, *.toml and *.md):
- 0 hits: ExtendedRangeBlend, rasterization_order_color_access, BlendEquation,
FramebufferFetchInputs, rasterization_order_attachment_access, framebuffer_fetch,
extended_range_blend, ExtendedRangeBlendSource, ExtendedRangeFloatBlendSource,
ExtendedRangeInputBlend, RotatedInputBlend, WordInputMerge, DualSource.
- Hits that are not these items: FetchedAttachment 2 (rt's DrawKind); logic_operation 8 (its
own structs and rt's private state).
- RuntimeInput: only LinkedFunction is used.
- No glob import or re-export of a metal2vulkan module (only `use metal2vulkan_runtime as rt`).
Verified: cargo fmt; refusal surface and signatures regenerated locally. The compile job and the
host suites follow on the branch.
|
||
|
|
e10fa7ba23 |
Docs: the mesh lowering is only compiled and validated, never compared with Metal on a GPU
The rule keeps the mesh lowering (a sole lowering a supported device could run, and large) with an honest known-gap line. The runtime README's mesh gap said "The translator compiles mesh pipelines"; it now says the lowering is only compiled and validated and has never been compared with Metal on a GPU. docs/API.md's Mesh pipelines section says so before it describes what the lowering emits, and its "Every device runs a grid of up to 2^29 threadgroups" becomes what the lowering takes. Validation's README says a compiled cell of an object or mesh case in the authored compile census means it compiles, not that it draws as Metal does. Searched README.md, docs/*.md (METAL-COVERAGE and CONFORMANCE-COVERAGE included), the runtime, validation and conformance READMEs: METAL-COVERAGE lists mesh render pipelines as missing, and CONFORMANCE-COVERAGE counts Metal-side cases only, so neither reads as mesh working. Docs only. |
||
|
|
c78ff4022c |
Translator: a ulong texture's atomics are refused on every device; the 64-bit image form goes
The rule: a sole lowering under 150 lines that nothing executes is
deleted to a typed refusal. Metal's atomic_min and atomic_max on a ulong
texture lowered to OpAtomicUMin/UMax on an R64ui image, which needs
shaderImageInt64Atomics; no runtime enables it, so nothing ran the form.
texture::atomic::select now refuses the pair as
Unsupported{ImageAtomics} not implemented, on every device. Gone with
the form: TexAtomic.ulong, the R64ui slot declaration and its reads and
writes in the emitter, RuntimeFact::UlongAtomicView with its codec, name
and mechanism rows, the binder's R64_UINT view and neutral,
DeviceProfile::ulong_atomic_gaps, LeafCaps.image_int64_atomics, and
R64_UINT in the queried formats. VK_EXT_shader_image_atomic_int64 is
described and never enabled. Product lines +34 -142.
Tests: the four tests of the 64-bit form and the fact's round trip go;
ulong_atomics_are_refused_on_every_device asserts the refusal on every
committed profile; the legacy-offset test takes the refusal as a gap;
the mechanism table renumbers; the recommendations test lists
shaderImageInt64Atomics as unread. The runtime README's known gap says
the atomics are refused, and its Not enabled row for
shaderImageInt64Atomics goes (the profile reads it no more).
docs/REFUSALS.md and api_signatures.tsv regenerate.
Consumer search (reims-vgpu ad28ebd881): ulong_atomic_gaps 0,
UlongAtomicView 0, image_int64_atomics 0.
|
||
|
|
317613d939 |
Translator: an 8-bit float widens by the integer decode on every device; the native form goes
Where a profile enabled shaderFloat8 an 8-bit float of an OCP encoding (f8e4m3fn, f8e5m2, a tensor's e4m3 and e5m2) widened through the device's own type (OpTypeFloat 8 with its FPEncoding, Float8EXT, SPV_EXT_float8), and a tensor's element recorded PrecisionNote::NativeFloat8. The runtime never enables shaderFloat8 (its README listed it under Not enabled), so on its devices every 8-bit float already widened by integer arithmetic on its fields, as Metal reads them; once validation enables what the runtime enables nothing runs the native form. It goes with what only it reached: Fp8Layout's native field and Fp8Layout::on (every caller takes Fp8Layout::of), fp8_native, native_float8, the crate-private LeafCaps.float8 and its derivation, the IR's Type::Float8 with its type facts, builder, serializer, requirement and interpreter arms (the interpreter's OCP decode with it), and the public PrecisionNote::NativeFloat8 with its cache codec entry (the batch bumps ARTIFACT_FORMAT_VERSION once), conformance's Degradation::NativeFloat8 and validation's allowance arm. The enable-set facts class VK_EXT_shader_float8 as described and never enabled (the matmul2d refusal its comment named is not in the tree). The VkFeature, VkExtension and SPIR-V vocabulary stays. Docs: docs/API.md's precision-note catalogue loses the native-float8 entry; the AIR front end's matmul2d docs and the vocabulary docs say the integer decode; the runtime README's "Not enabled" row for shaderFloat8 goes (tests::feature_enables fails on a row the profile no longer reads). Tests: the widening, matmul2d and SIMD-group matrix 8-bit float tests take the integer decode on every profile, the RTX 50 profile (which lists shaderFloat8) included: no module declares Float8EXT, and the matmul2d sums hold no NaN. Class 1 of the planner's rule (an alternative to what the runtime runs). Public item removed: PrecisionNote::NativeFloat8, here and as the runtime re-exports it (api_signatures.tsv blessed); a consumer that matched it no longer compiles. The consumer's checkout (reims-vgpu at bd9d6ae85a) holds 0 uses of it. Product lines: +23 -190. Modules change only on profiles that enabled shaderFloat8 (their golden rows move, re-stamped at the pin); no SEMANTICS bump (the profile fingerprint changes with the field and is in every cache key). |
||
|
|
58b5fad7f3 |
Translator: reads no VK_EXT_depth_range_unrestricted; a depth comparison notes the range everywhere
Where a profile enabled VK_EXT_depth_range_unrestricted the translator clamped a fragment function's depth output to [0, 1] itself (Vulkan then stores it unclamped) and recorded no PrecisionNote::RestrictedDepthRange for a depth comparison. The runtime never enables the extension (its README: the floor does not require it, and replace_region refuses a float depth upload as Gap::FloatDepthUpload), so on its devices the depth was already Vulkan's own clamp and every depth comparison already recorded the note; once validation enables what the runtime enables nothing runs either arm. Both go: DepthClamp::clamps and clamps_fragment_depth (the [0, 1] selects now run under the depth clamp range input alone, as they did on every profile without the extension), and depth_comparison records the note unconditionally. The enable-set facts class the extension as described and never enabled (the core reads none of it), so recommended_enables no longer names it. The VkExtension vocabulary stays. Docs: PrecisionNote::RestrictedDepthRange's doc and docs/API.md's catalogue entry say the note is recorded on every device, the runtime enabling no VK_EXT_depth_range_unrestricted. Tests: the test that compared a depth output with and without the extension and the test that the extension is read from a description go; the comparison test records the note on every profile, RADV's (which lists the extension) included; the kill and depth-clamp-range tests stay. Class 1 of the planner's rule (an alternative to what the runtime runs). No public item goes (signatures.py --check clean); the consumer's checkout (reims-vgpu at bd9d6ae85a) calls no recommended_enables and names the extension nowhere. Product lines: +34 -57 (most of both are doc lines). Modules change only on profiles that enabled the extension (RADV, lavapipe, NVIDIA golden rows move, re-stamped at the pin); no SEMANTICS bump (the profile's enabled set is in every cache key). |
||
|
|
4ff156420f |
Translator: a float fma is the device's Fma on every device; OpFmaKHR goes
The OpFmaKHR route (Route::Khr, chosen where a profile enabled shaderFmaFloat32) was a second form chosen by a query outside the nine rule 2 allows. The runtime never enables VK_KHR_shader_fma (the owner's fma ruling stands: GLSL Fma with PrecisionNote::NativeFma), so on its devices a float fma was already the device's Fma, and once validation enables what the runtime enables nothing runs the KHR route. It goes with what only it reached: the crate-private LeafCaps field and the routes' float field (a float fma's route is Route::Native on every profile), the IR's Inst::Fma and FunctionBuilder::fma with their arms in every pass, the serializer, the interpreter and the requirement derivation (FMAKHR, SPV_KHR_fma, shaderFmaFloat16/32). The SpirvExtension and VkFeature vocabulary stays. PrecisionNote::NativeFma's doc and docs/API.md's catalogue entry say a float fma is the device's Fma without naming a device that had OpFmaKHR. The runtime README's "Not enabled" row for shaderFmaFloat32 goes (tests::feature_enables fails on a row the profile no longer reads). Tests: the interpreter, builder and derivation tests of OpFmaKHR go; the route, fast-fmod and fused tests take the device's Fma on every profile; the tests that took one profile per float route take the first committed profile (one route now). Class 1 of the planner's rule (an alternative to what the runtime runs). No public item goes; the consumer's checkout (reims-vgpu at bd9d6ae85a) holds no use of the items removed. Product lines: +44 -143. Modules change only on profiles that enable shaderFmaFloat32 (moltenvk-m3's golden rows move, re-stamped at the pin); no SEMANTICS bump (the profile fingerprint changes with the field and is in every cache key). |
||
|
|
a347af5f65 |
Two stage bounds by path: kernels leave the process past 39,014, render stages are refused past 99,109
COMPILED_STAGE_WEIGHT is now 39,014: the heaviest kernel measured to compile in its creating process within 512 MiB of that process's resident growth on every driver measured. Made cold (no pipeline cache, shader cache off) and alone in its own process, the app library's heaviest kernel under the old bound (entry weight 39,014) grew the process by 350 MiB in 6.8 s on the Iris Xe of RPL-P (ANV, Mesa 26.2.6; job m3-max-66048), 148 MiB in 1.8 s on an RTX 3090 (NVIDIA 620.70.06; job m3-max-66050) and 80 MiB in 0.55 s on a Radeon 780M (RADV, Mesa 26.2.6; job m3-max-66049). No real stage between 39,014 and 99,109 is measured (the app's 63-kernel library, job m3-max-65984; the nine standard streams and the app's two recordings, states-only on lavapipe, job m3-max-66001). The older build's 1.76, 2.24 and 3.65 GiB (job m3-max-26147) and the helper's 2,620/2,763 MiB and 3 GiB breaches (job m3-max-65807) stay in the docs as what lies above it. No helper compiles a render stage, so the runtime keeps 99,109 as its own render bound (stage::RENDER_STAGE_WEIGHT): past it a render pipeline is refused (Gap::StageSize, StageGap::RenderStage), at or under it it compiles in the process with no cap. The heaviest real render stage measured (35,063 beside a vertex stage of 431; 39,424 as lavapipe's profile weighs it) grew the process by 316 MiB in 3.8 s on the Iris Xe (job m3-max-66048), 180 MiB in 2.5 s on the RTX 3090 (job m3-max-66050) and 58 MiB in 0.6 s on the 780M (job m3-max-66049). The docs say the two numbers measure two things and become one when a render helper exists. Metrics gains render_makes_past_kernel_bound and render_weight_past_kernel_bound_max: render pipelines translated with a stage past the kernels' bound, and the heaviest such weight. The translator's re-plan keeping the widest pin follows the constant (StageBounds::MEASURED), so SEMANTICS_VERSION 2269 -> 2270. The rt README's stage-bound section, its render-pipeline known gaps (the uncapped range), Gap::StageSize's docs, docs/API.md, docs/REFUSALS.md and the signature table are updated; the "132 s and 3.65 GiB" basis is replaced by today's figures. Test: a_render_state_past_the_kernel_bound_is_made_in_process_and_counted (with the kernels' bound set to 1, a render state is made, not refused, and counted once at its heaviest weight); it fails before this change, where the render check read the kernels' bound. Verified: the figures are the rows of jobs m3-max-66048, 66049 and 66050 (probe branch steelbrain/boundread-probe 7dd5c2f52e, never lands: each make's peak reset before it, VmHWM after it less VmRSS before it). Checks on the branch (f8ed8d8953, the same change on |
||
|
|
dd150e4f46 |
Delete the 14 Feature variants and 3 Needs variants nothing builds
Nothing in the product crates built these 14 Feature variants: SamplePositions, TextureSize,
TextureSampleCount, TextureView, MipmapGeneration, HostMemory, GpuTimes,
ViewFormatReinterpretation, SeparateMultisampledDepthStencil, SparseTextures,
TimelineSemaphores, HeapTextureTiling, UndeclaredTextureUsage and RenderTargetSize. They were
refusals of the runtime this tree cut over from, and so they were docs/REFUSALS.md's last 14 '-'
rows. Nothing built the Needs variants DeviceCapability, MetalGpuFamily and MetalRefuses either,
nor called their constructors Unsupported::device_capability and Unsupported::metal_gpu_family
outside tests. No doc or test showed one to be the vocabulary of a Metal refusal anything
answers: the three Feature docs that said the runtime answers MetalGpuFamily or MetalRefuses
were corrected in the previous commit.
Searches:
- The tree, outside the definitions, the reach rows and the generated tables:
- Feature::SeparateMultisampledDepthStencil in one translator test
(bind/depth_stencil_copy/tests.rs), now Feature::StencilExport, since
depth_stencil_copy_modules refuses with whatever feature its caller names;
- Feature::SparseTextures, SparseNeed and Unsupported::device_capability in one conformance
test of verdict::device_gap_of's DeviceCapability arm. That test pinned a chain from the
runtime's `sparse_refusal`, which no longer exists, so the test and the arm go together;
- Unsupported::metal_gpu_family and the three Needs variants in error/tests.rs
(one_of_each and the retry table);
- the golden and public-fixture tables' refusal cell (golden_hashes.rs, public_fixtures_engine.rs)
named the other Needs through a wildcard arm, now unreachable: the three arms are the cell;
- stale prose naming them in conformance cases/sparse_heaps.rs, probes/bgra4_write_and_mipmap.m,
the engine fixtures README and docs/API.md (its TextureSampleCount sentence now names the
runtime's Limit::TextureSamples, which refuses that texture);
- the payload enums SparseNeed and LinearNeed are used by nothing else, and go too.
The other hits for these names are other enums' variants (the runtime's Limit::TextureSize,
Refusal::TextureSampleCount, Gap::TextureView, ImportHandle::HostMemory, ...).
- The consumer's checkout at bd9d6ae85a: 0 hits for Feature:: with any of the 14, SparseNeed,
LinearNeed, Needs::DeviceCapability, Needs::MetalGpuFamily, Needs::MetalRefuses,
metal_gpu_family or device_capability( (its own `Piece::SamplePositions` and
`Piece::SparseTextures` and its own HostMemory types are unrelated).
Needs is now AnyOf, NotImplemented and NotRepresentable; Needs::basis answers Device, Ours and
Device for them. The script drops the two constructors and their condition texts.
docs/REFUSALS.md: section 1 is 119 variants, every one with a site and a basis (device 51,
ours 68, '-' 0). api_signatures.tsv: 35 records removed, all in metal2vulkan::error; the public
surface table loses SparseNeed and LinearNeed.
Verified (locally, source-reading scripts): refusal_surface.py --check and --selftest pass;
signatures.py --check passes after --bless.
|
||
|
|
7f156bc920 |
Error::basis answers a translation error from what its refusal needs
The runtime's Error::basis answered None for every Error::Translation, so each translator
refusal a guest met sat in a consumer's census unsorted between Metal's own refusal and our
gap, and 36 of the translator's 133 Feature variants showed no basis in docs/REFUSALS.md.
What:
- RefusalBasis moves to metal2vulkan::error; the runtime re-exports it at the same path
(metal2vulkan_runtime::RefusalBasis: its signature records do not move).
- Needs::basis: AnyOf, DeviceCapability and NotRepresentable are Device, NotImplemented is
Ours, MetalGpuFamily MetalDocumented, MetalRefuses MetalMeasured.
- metal2vulkan::error::Error::basis: a refusal's from its Needs; LimitExceeded, Budget and
Internal Ours; InvalidInput, InvalidDescriptor, NeedsInput and Cancelled None. Both matches
are exhaustive in the translator, so a new Needs or Error variant must answer (the runtime
could not match the translator's #[non_exhaustive] enums without a wildcard arm).
- The runtime's arm is `Error::Translation { error, .. } => error.basis()`.
- refusal_surface.py follows the helper a site hands its feature to (a front-end reference is
NotImplemented; the feature argument of a construction; a helper's argument; the enclosing
function's computed construction; a function that returns the feature, through its calls in
its file). Its kind-to-basis table is read from Needs::basis's arms. --check fails on a
variant with a site whose basis is not settled.
- docs/REFUSALS.md: the 22 variants with a site and no basis are settled, and their Where
cells filled; no other row's Where or Basis moved. Section 1's totals: device 51, ours 68,
'-' 14 (the 14 variants nothing builds).
- The docs of SimdgroupMatrix16x16x16, IndirectRenderState and GlobalBuiltinInFragment (and
three comments that repeated them) said the runtime answers them as Metal's own refusal; no
code does, and the translation refuses them NotImplemented on every device, so they say that.
Size, past the 200-line mark (hand-written lines, generated tables excluded): 272 added, 50
removed. The script +147/-12 (helper following and its call scan about 60, the Needs table and
derived basis 20, scan bookkeeping 25, the unsettled check 12, selftest cases 20, doc text 10);
the translator +63/-7 (21 of them RefusalBasis moved from the runtime, -23/+8 there); the
runtime test +44; docs/API.md +6.
Verified (locally, source-reading scripts): refusal_surface.py --check and --selftest pass;
with unsettled() emptied the selftest fails; signatures.py --check passes after --bless added
7 records, all on metal2vulkan::error.
Verified: compile m3-max-65442 (fmt, refusal_surface.py --check and --selftest, signatures.py --check,
clippy plain / --cfg m2v_gpu / --cfg m2v_cpu_icd, workspace Rustdoc -D warnings, scripts/api-docs);
host suites m3-max-65443 (metal2vulkan, -air, -runtime: 3969/3969, the golden hashes and the old
render key among them; doctests); before-run m3-max-65444 (development plus the new test alone):
a_translation_error_answers_the_basis_of_what_it_needs fails as expected (None against Some(Device)).
|
||
|
|
6c1dff3f09 |
Translator: under the identity domains, constexpr samplers a lane chooses among beside an argument buffer's texture are one sample through the set-1 sampler array (SEMANTICS 2265)
Some kernels sample a texture their argument buffer holds through a sampler that the run picks
among constexpr samplers with consecutive handles: a program-scope table of samplers read at an
index only the run knows. Under the identity domains, the runtime's, each such sampling was a
switch over the candidates: one arm per candidate, each a NonUniform sample of the heap element
through that candidate's set-1 sampler, and a null arm. RADV wraps each NonUniform sample in its
own waterfall loop (read_first_invocation). The 780M library's heaviest kernel holds 284 such
switches of eight arms, so 2,272 samples and 2,272 driver loops. Its cold create on a 780M peaked
at 7.8 GiB.
select_heap_array now takes the identity domains too. Where every candidate is a constexpr sampler,
their handles are consecutive, the use is not tangled (no fragment implicit level), and every
candidate's sampling is the same but for its sampler, the sampling is one sample. It reads the
set-1 sampler array of its use, NonUniform, at the pushed index (PushField::ConstexprSampler) of
the candidate the handle names. emit::identity_element selects that index among the candidates'
at run time. A handle outside the array still reads zero. finish pushes each candidate's index
and records the use in SamplerPlan::heap_array_identity in place of a binding. Sampling::words
counts each candidate's selection (Source::HeapArray::pushed, 0 outside the identity domains, so
the resident-table domains' weights are unchanged).
Under the identity domains the switch stays where the sampling compares, reads an integer class,
or reads pixel coordinates. Metal's bicubic filter on an argument buffer's texture is refused
before this (bicubic::check). Raw-texel states do not arise here, because the element is read in
its declared class. The resident-table domains keep their form unchanged.
One form for every device: the runtime's floor requires
shaderSampledImageArrayNonUniformIndexing (floor.rs), every committed profile reports it, and a
heap image sampled at all already needs it (texture/slot.rs).
The form is ported from 4b7d9d48ef (steelbrain/privarena-sampler-b, unlanded) and narrowed to the
ruled domain.
SEMANTICS_VERSION 2264 -> 2265. The golden table and the old render descriptor key get
re-blessed at the pin: m3-max-65203 shows "bless due" with exactly 16 cells changed, all
engine/sampler_table.ll sampler_table_held, one per committed profile.
Tests:
- engine_identity's
chosen_constexpr_samplers_beside_an_argument_buffer_texture_are_one_sample_where_alike
(replaces ..._is_a_switch_over_them). On every committed profile under the identity domains, a
kernel's float sample through three chosen constexpr samplers is one sample: one sampled image,
no switch, one ConstexprSampler pushed per candidate, and L3 passes. The switch stays, with a
sampled image per candidate, for pixel coordinates (two linear pixel samplers that differ only
in their border color), an integer texture, a comparison and a fragment's implicit level. The
resident-table domains take their set-0 array for all but the fragment case, which shows the
candidates' samplings are alike and only the identity domains' rule keeps the switch.
- argument_sampling's
every_device_samples_an_argument_buffers_texture_through_a_table_of_constexpr_samplers now reads
the module the device's translator gives sampler_table_held, asserts 1 sample and 0 switches,
and prints that, then compares each of the 20 texels with Metal's answer as measured on an
Apple M3 Max. The fixture has four candidates. The form is the same for any count of two or
more, so it covers the eight-arm sites, and its texels are M3-measured.
Verified:
- Compile: m3-max-65200 (fmt, signatures, refusal surface, clippy plain / m2v_gpu / m2v_cpu_icd,
workspace Rustdoc -D warnings), m3-max-65203 (translator suite 3210 passed, lavapipe runtime
suite 625 passed).
- The execution test passed on llvmpipe (65203), RTX 3090 (65223), RX 7900 XTX (65224) and Iris
Xe (65225).
- Rows: development
|
||
|
|
b20dc87d22 |
Translator: the outline pass goes; a repeated region is written in line again (SEMANTICS 2263)
What: spirv::outline (a repeated region of 500 or more instructions written once, as a kept routine declared DontInline) is deleted with its tests, its call in the stage bound and in pipeline::testing, its notes in weights.rs, ir::Function::kept, ModuleBuilder::kept_routine and the serializer, docs/API.md and docs/ARCHITECTURE.md. roll's items and its spine take back their own visibility and signature (the loop-body sequences only the outline search read). The bounded-growth test's chain is all one group again: no pass now folds a repeated graph. cache::SEMANTICS_VERSION 2262 to 2263. The sampling and texel routines stay kept routines, DontInline as before. Why: a regression on NVIDIA. Job m3-max-64837 (RTX 2080, 620.70.06, um790, exclusive) made k7 (610e4b3d of the Iris capture's library, weight 320,401) cold through the runtime's helper, arms A |
||
|
|
7e92b1d0fa |
Translator: a repeated region of 500 or more instructions is written once, as a kept routine
What: a new pass, spirv::outline, runs on every module after rolling and hoisting. It finds a set of regions of one function that are the same code (one sequence of the function's spine, loop bodies included; entered only at the start and left only at the end), each of at least 500 instructions with a call of a kept routine counting one, writes the first as a new kept routine (Function::kept, declared DontInline, the form ModuleBuilder::kept_routine makes) and replaces every region with a call of it, then looks again, at most 64 times. Values from before a region are parameters (one per distinct set of the regions' values; a constant that differs only where any value may stand); a pointer parameter is a Function, Private, Workgroup or UniformConstant variable itself or a PhysicalStorageBuffer pointer; values read after a region are the routine's results (several in a struct). A Function variable only its region uses becomes the routine's own where the region is in no loop or its first use stores the whole variable in a block the region always runs; otherwise it is passed. Anything else that differs keeps the regions in line. Candidates come from the spine's keys (16-item windows hashed, extended both ways); a set whose exact comparison fails at an operand or result is compared again without that item. The spine (roll::spine) takes a flag to walk loop bodies as sequences; rolling passes false and is unchanged. SEMANTICS_VERSION 2259. API.md and ARCHITECTURE.md say the routines exist. Why: NVIDIA's driver compiles a DontInline routine once and Mesa's drivers inline it either way. On the RTX 3090 (620.70.06, job m3-max-64453) a generated kernel calling a 1,984-instruction function from 50 places was created in 21.5 s inlined and 52 ms as a kept routine (51.8 s and 75 ms with 64 values live across every call); its dispatch GPU time was the same with few values live and 20.6% lower as a routine with 64 live. A 497-instruction function: 0.1% and 19.7% lower. 500 is the smallest size measured within 3%. RADV and ANV (Mesa 26.2.6) compiled identical code for the call, DontInline and inlined forms (jobs m3-max-64357, m3-max-64379). How verified: spirv::outline::tests build kernels with three equal regions (a variable, a selection's phi, a counting loop), a chain where each region reads the previous one's result, a middle region that differs, and two regions in a loop whose accumulator is read before it is written; each checks the routine and call counts, the module through the verifier and spirv-val, and the words the interpreter writes against the unrewritten module's and the expected ones. |
||
|
|
19620c6f4d |
API.md: the fractional viewport's accepted difference names the devices measured
What: section 10's Draws entry on a filled primitive past a viewport edge that crosses a pixel. It said a Vulkan device covers such a pixel where its sample lies in the clipped primitive; it now says what was measured: RADV (RX 7900 XTX, two Radeon 780Ms, RX 550) and NVIDIA's driver (RTX 3090, RTX 2080, RTX 5080) cover every pixel the viewport overlaps, as Metal on the M3 Max does; lavapipe covers such a pixel only where its sample lies in the clipped primitive; the Iris Xe (ANV) covers every pixel the near edges cross and none the far edges cross, the accepted difference where that pixel's sample is outside or on the edge and a driver bug (the runtime README's known gap) where it is inside. Why: the entry claimed more than was measured; seven GPUs show no difference at all. How verified: replays of fractional-viewport-coverage through the runtime, each differing pixel printed against Metal's recording: m3-max-64279 (XTX), 64288 (780M 1002:15bf), 64280 (780M 1002:1900), 64323 (RX 550), 64286 (3090), 64287 (2080), 64282 (5080): 0 differing pixels; m3-max-64281 (Iris Xe): 120 pixels, all far columns and rows; lavapipe's 344 elements from its ledger row. The entry's bold lead-in (the allowance slug) is unchanged. |
||
|
|
339d8f05c7 |
Runtime docs: a waiter on a signal held for room reads Committed until it is staged; the 2019 MacBook Pro's order as job 64081 shows it
A wait for an event's value is met once a signal of it is submitted (staged); a signal its queue holds for room is not yet staged, so its waiter reads Committed for as long as the signaller's queue takes to reach it. The Scheduled doc, newSharedEvent's and docs/API.md's accepted difference now say so: within the M3 Max's own hold, which keeps a shared-event waiter at Committed until the value lands. The README's 2019 MacBook Pro sentence now states what job 64081 showed and no more: on the Radeon Pro 5300M an unrelated read of a second process completed 0.99 to 1.97 ms after its commit beside about 160 ms of another process's submitted work; a dependent read completed after its writer and 19.06 to 19.26 ms before the first of 4 command buffers committed after the write (committed, not shown submitted); the UHD 630 ran both processes first in, first out in all 18 rounds, so its reader-after-writer is not told apart from that order. Docs only. |
||
|
|
7911c011a0 |
Runtime: a queue keeps on the VkQueue only what it has room for, and another queue's later command buffer passes the rest
A queue sends a group only while it has room (submit::room): with fewer than two submissions not seen complete always, and with fewer than IN_FLIGHT while the expected runs behind the oldest, the group's with them, stay within GROUP_RUN (16 ms). Without room, a command buffer the held group does not take (by GROUP_RUN, UNSEEN_JOINS or GROUP) waits in its queue's list, not staged, with the queue's later commits behind it; the submit thread skips that queue and other queues' later commits go on. Each held command buffer is scheduled as it would be in a group, in commit order once its waits are met, its scheduled handlers run: only its vkQueueSubmit2 waits for room (WorkState::hold). One that presents a drawable, has nothing for the GPU, or ended sends its queue through to it, as its group would go at once. Everything that sent a group still sends it: a signal as staged, a host wait or send_now, stop, a busy completion thread, an empty command buffer, a conflict with a texture copy. A group no longer goes at its sixteenth command buffer: the seventeenth finds it full and waits for room. A queue whose expected run is not yet known has room for two. Fences: a wait on another queue also goes after an update in a command buffer held for room there, scheduled before the waiter was; that queue goes through to it first. A held head with no group is staged before any other command buffer, the earliest held first, so the order of holds is the order fences read. abandon ends the queue's command buffers not yet scheduled in place, in the queue's order behind those held for room, which go at once. Metrics::held_for_room counts the command buffers scheduled while held for room (api_signatures row). Why: one queue's backlog no longer delays another queue's command buffer by more than about GROUP_RUN of that queue's expected GPU time. |
||
|
|
6da9a2bca2 |
Fractional viewport coverage is an accepted difference beside a point's
The planner's ruling on Metal's recorded answer (fractional-viewport-coverage, m3-max-64012): MTLRenderCommandEncoder.h's setViewport: states only that fragments outside the viewport are clipped, not which a pixel the viewport's edge crosses is; the M3 covers every pixel the viewport overlaps, a partly held pixel included, and a Vulkan device covers a pixel where its sample lies in the clipped primitive. Rule 1 does not emulate what Metal leaves unstated, and a static note would be decided by a viewport's value at the draw, so docs/API.md's Draws list gains the entry beside the point's and the lavapipe row's reason becomes it. The GPU venues' rows come with the next round's replays. |
||
|
|
3a6d244ae2 |
Translator: runtime-floor's recommendation leaves out its texel-buffer update-after-bind pair, and a device made from it refuses texture buffers naming the feature
Texture buffers (
|
||
|
|
0f2067150f |
rt: a draw of lines carries DeviceLineRasterization on every device; the raster test holds the diamond-exit rule's cells
What:
- RenderCommandEncoder::LINE_NOTE (PrecisionNote::DeviceLineRasterization)
is the static note of a draw of lines or a line strip, and of a draw of
triangles under the Lines fill mode, on every device.
- A render pipeline state no longer carries the note; it carried it only
under alpha to coverage or alpha to one.
- The note's text (artifact.rs, docs/API.md's catalogue, its items list
and the accepted difference on a line's tie-break, the runtime's README)
names its grounds, and keeps what it said of a state with alpha to
coverage or alpha to one: there the device's default line rule draws,
not Bresenham's mode. One note, both facts.
- The conformance side announces LINE_NOTE for each line draw and each
Lines fill mode set. The note is among replay's NATIVE_NOTES, so it
loosens the notices site alone.
- known-gaps-rt.tsv: the 12 primitive-type-restart-indices rows (NVIDIA,
RX 550, Iris Xe) cite the note. Their lines run through the boundary
point (3.5, 1.0).
- api_signatures.tsv gains the const's two rows
(scripts/api-signatures/signatures.py --check passes).
- Tests:
- raster.rs's Lines pass draws the triangle (-0.65, -0.675), (3, -0.675),
(-0.65, 3) through the target's own viewport. Its edges at x 1.4 and
y 6.7 lie inside the target with a pixel on each side, and strictly
inside the clip volume and the viewport.
- The pass holds the diamond-exit rule's cells exactly, column 1 and
row 6, on every device. A device that draws another cell fails with
the target drawn. It does not read the corner where the two lines'
ends meet.
- draw.rs's alpha-to-coverage test now holds that no state carries the
note, and that LINE_NOTE is it.
Why the note: a card draws a line pixel that differs from Metal's. The 12
ledgered rows are lines through the boundary point (3.5, 1.0): Metal on an
Apple M3 Max covers the lower pixel there, NVIDIA's driver the upper. The
runtime draws lines with VK_LINE_RASTERIZATION_MODE_BRESENHAM. Its diamond
is open, so no Vulkan control decides that pixel. The Vulkan
specification's section "Bresenham Line Segment Rasterization" also lets an
implementation's fragments "not deviate by more than one unit in either x or
y framebuffer coordinates from a corresponding fragment produced by the
diamond-exit rule", with a fragment count within one. Rule 1: a line's pixels
are the device's answer, so the operation carries a static note.
Why the test changed: the old Lines pass put its bottom edge at y 7.7 through
a viewport of y -0.3 and height 8. The Iris Xe drew none of row 7 there
(m3-max-63429 at
|
||
|
|
895b3f845a |
PrecisionNote::NativeHalfQuantize: a zero may round to the other zero
What: the note's text (its doc comment and the docs/API.md catalogue)
says what may differ: where a half rounding's input is a zero or too
small for a normal half, the result may be either zero, so a negative
zero may come out positive; and what a program sees of it: a
reciprocal's or atan2's sign, the bits written to a half target or
buffer. The catalogue names the form not taken (copying the input's
sign bit into the result by integer operations, about 4 instructions
per half rounding on every device without shaderFloat16) and its cost.
No code changes; the planner ruled the note (11-21).
Why: the 11-21 round at
|
||
|
|
418494f380 |
rt: a texture's image accessor no longer shadowed by TextureObject::image; the texture buffer's docs
TextureInner's Option-returning image() lost method resolution to the TextureObject trait's image() -> vk::Image on Arc<TextureInner>, so ae747745df did not compile (compile job m3-max-63551 on msi: E0599 at nine call sites). It is image_of() now. texel_form asked supports_format with the ash format; it takes the translator's. Docs for the texture buffers of ae747745df: RESOURCE-ID.md's arrays paragraph names set 1's bindings 5 and 6 (uniform and storage texel buffers, 65,536 each) and the null elements of the other kind; API.md's identity forms list texture buffer reads, writes and atomics, slots and members alike, and keep refusing the parts or rows forms; the runtime README's known gaps of textures add the swizzle, the view and blit copies, and the both-usages format rule. Verified: rustfmt; the compile job follows on the rebased tip. |
||
|
|
d245bab9d1 |
rt: an execution over a range the GPU writes counts its parts with a kernel; parts bounded at 2 MiB of preprocess bytes
What: an execution of an indirect command buffer runs in parts of the most commands whose preprocess bytes, as vkGetGeneratedCommandsMemoryRequirementsEXT answers with the inherited pipeline, stay at or under 2 MiB (indirect::PART_BYTES), one rule on every device, in place of parts of 64 commands. The device is asked from one command up, doubling while the answer stays at or under the bound, then again at fewer in proportion to the last answer until it is, so no answer at far more commands than a part takes is trusted (lavapipe's grows with the square of the count and wraps at 32 bits). An execution over a range a buffer holds (executeCommandsInBuffer: indirectBuffer:indirectBufferOffset:), location 0 included, ends the rendering, runs the translator's new count kernel (pipeline::own_kernel(OwnKernel::ExecutionCounts), one workgroup a part, its parameter block pipeline::ExecutionCounts in the ring), one global barrier, and begins the rendering again; each part's vkCmdExecuteGeneratedCommandsEXT reads its count at sequenceCountAddress: its commands through the range's last, none past it or wholly before its location. A CPU-given range runs no kernel. While a visibility result's query counts the draws, the execution is refused (Gap::Draw VisibilityResultInterrupt, counted), as the rendering cannot end inside the query. The runtime makes its own kernels once a device, at first use, through the pipeline cache and layout (runtime src/own.rs), and destroys them with the device. The idle preprocess pool's bound goes from 128 to 64 MiB: one frame of the sample now takes about 27 MB of commands' bytes plus at most one part an execution. Why: an execution over a GPU range ran the buffer's whole capacity, every command past the range costing its vertex work. Parts of 64 commands cost 61 times one execution's GPU time on the 2080. RADV fails past about 4 MiB of generated commands in one execution (draws nothing on a 7900 XTX, loses the device on a 780M): it chains by sequence count, not bytes. The 2 MiB bound is half that. Verified: on the probe branch (d59701c670), jobs 63460 and 63481 measured the frame of Apple's rendering sample: at the 2 MiB bound 931.8 us of GPU time on the 2080 (920.0 at whole capacity) and 588.5 on the XTX. This commit: compile job and the lavapipe rt suite, reported with the sha. Tests: the count kernel against a brute-force count on the interpreter and valid on every committed profile; held ranges at 0, past a part, past the commands, and a CPU range across parts; a held range in a Boolean visibility mode before and after its first draw; the widest layout's part at or under the bound on every device. |
||
|
|
b5ac9fd07b |
rt: visibility results, one precise occlusion query per mode, copied into the buffer at the pass's end
What: `setVisibilityResultMode:offset:` builds `Boolean` and `Counting`. Each such mode set is one segment counted by one precise occlusion query (`VK_QUERY_CONTROL_PRECISE_BIT`), begun in the pass's rendering before the segment's first draw and ended there at the next mode set or the encoder's end; a segment with no draw begins and ends its query as it ends, so its word is 0. After `vkCmdEndRendering` the pass copies the counts (`vkCmdCopyQueryPoolResults`, 64-bit, WAIT) straight into the visibility result buffer's `VkBuffer` at place+offset, one copy for each run of consecutive offsets in one pool, before the pass's second barrier (recorded or owed), which orders them before every later command; a Shared buffer's segment end barrier reaches the host, and a Managed buffer's write and a texture over the buffer in an image of its own are kept as a blit's write is. `Boolean` writes the count too, nonzero exactly where a sample passed (Metal documents a nonzero word; the M3 Max writes 1): an accepted difference in docs/API.md section 10, and the conformance cases compare a `Boolean` word as nonzero alone. A command buffer takes its queries from occlusion pools of 256 the device lends it (`crate::visibility`), each query reset on the host (`hostQueryReset`) as the command buffer retires or drops uncommitted; the device keeps at most 16 pools free and destroys the rest (`Gauges::occlusion_pools`). `occlusionQueryPrecise` joins the floor's required features (every venue's profile reports it; Roadmap 2022 requires it), with the README floor table, the runtime-floor profile's `m2v_runtime_floor` block and the regeneration script's list. Refusals: Metal's own, each where the mode is set, the encoder's mode unchanged: `Refusal::NoVisibilityResultBuffer`, `Refusal::VisibilityResultOffset` (not a multiple of 8, or past the buffer), `Refusal::VisibilityResultOffsetTaken` (Apple documents each offset as set once per pass; Metal's validation stops it), and `Refusal::ArgumentPlace` at alignment 8 for an offset at an allocation byte off a multiple of 8 (VUID-vkCmdCopyQueryPoolResults-flags-00823). Gaps, each counted and a README known gap: `DrawKind::AccumulatedVisibilityResults` (a mode in an `Accumulate` pass; `Metrics::accumulated_visibility_refused`) and `DrawKind::VisibilityResultInterrupt` (a command that would end the rendering while a query counts: a memory barrier after a writing draw, a draw that moves an attachment to the feedback layout, pays an owed barrier before an attachment read or copies into a shadow, and, bounded, a draw that looks at textures over a buffer in an image of their own or reaches a Managed buffer with textures over its device copy; `Metrics::visibility_interrupts_refused`). Every refusal is checked before the encoder changes state; a segment's first draw may still end the rendering, before its query begins. `DrawKind::VisibilityResults` is gone. `RenderPassDescriptor::visibility_result_type` (`VisibilityResultType`, Metal's `visibilityResultType`) is a field now. Translator: `PrecisionNote::DeviceOcclusionCount`, the static note of a `Boolean` or `Counting` result (`RenderCommandEncoder::VISIBILITY_NOTE`), quoting Vulkan's "Occlusion Queries" (precise counts differ between implementations: fragments killed before rasterization, counts multiplied per colour output) and "Fragment Operations" (`earlyFragmentMultisampleCoverageAfterSampleCounting`); its codec tag, ARTIFACT_FORMAT_VERSION 588, validation's allowance (unbounded, no tolerance), the conformance degradation `device-occlusion-count` among the native notes, and docs/API.md's catalogue. The dead `Feature::CountingVisibility` (no construction site) is removed with its reach row. The old runtime's `Device::new` is untouched; the runtime-floor test profile now states `occlusionQueryPrecise`, which re-keys that profile's fingerprint. Why: the visibility-cut ruling. A guest that sets a mode got a refusal; it now gets its results, or a typed, counted refusal where the cut does not build the shape (continuations and a combine are not built). Verified: cargo fmt; scripts/api-signatures --bless/--check, refusal_surface (0 without reach or basis), metal-coverage and conformance-coverage regenerated, check_device_profiles (0 findings). The compile job (fmt, signatures, clippy plain / --cfg m2v_gpu / --cfg m2v_cpu_icd, workspace Rustdoc -D warnings) and the lavapipe rt suite, with tests/visibility.rs (Boolean and Counting against the CPU's counts, pool reuse and the 16-pool bound past 17, Metal's refusals, Accumulate, the barrier and attachment-read interrupts), are named in the lane's report. |
||
|
|
c3f9f55e63 |
rt: a kernel past the stage bound is made from its helper's compile alone, never compiled in the process
A driver's compiler takes memory that grows faster than the stage, in the process that creates the pipeline. The translator refused every stage past COMPILED_STAGE_WEIGHT (99,109, the heaviest measured to compile within host-sized memory, ANV on the Iris Xe of RPL-P), where Metal makes it. Now the translator states the weight and the runtime compiles such a kernel only in a helper process the consumer starts, caps and times. Translator: the stage bound refuses nothing. stage_bound::emit still plans a kernel again keeping its widest-mode pin where only that emulation passed the bound, and returns the module with its entry weight, now ModuleStats::entry_weight (codec and serde carry it). COMPILED_STAGE_WEIGHT is public in pipeline. Feature::StageSize and Needs::StageBound are gone. SEMANTICS_VERSION 2257, ARTIFACT_FORMAT_VERSION 588. Runtime (new stage.rs): - Floor: pipelineCreationCacheControl, required and enabled (Vulkan 1.3 requires it), for VK_PIPELINE_CREATE_FAIL_ON_PIPELINE_COMPILE_REQUIRED_BIT. - A kernel's VkPipeline of a module past the bound is made from a VkPipelineCache of its own entry in the cache directory's stages/ alone, with the fail-on-compile-required flag, the cache destroyed when the create returns; the device's shared cache and blob never hold it (Metrics::pipelines_from_stage_fills). - With no entry the make is refused with Error::StageUnfilled(StageRequest), at the state's creation, at prepare_dispatch (which now returns Result and reports only this refusal) and at the dispatch. A StageRequest is Clone, Send, Sync, Eq and Hash by its stage key, the entry's name, so a consumer joins the makes and dispatches of one pipeline into one fill. - Device::fill_stage writes the request to the helper's pipe, reads its reply and keeps the cache data as the entry (Metrics::stage_fills); serve_stage is the helper's main: it opens the device of the request's deviceUUID and driverUUID with the parent's options, checks the enables, compiles through an empty cache and writes its data. A wire frame is the magic m2vstage, the wire version, the length and a checksum. - Device::record_stage_breach keeps what the consumer ended its helper for (memory, time) as the entry; fill_stage keeps a failed compile; a create answered compile-required keeps that. Each refuses the pipeline (Gap::StageSize, StageGap::Breach) with no helper asked again, until the driver's header changes the key. - stages/ holds at most 256 MiB and 32 entries, breaches among them, least recently used out first (a hit touches the file). An entry that does not check, of another key or another driver's header is a miss and is removed. Nothing of an entry stays in memory past the call that reads or writes it. - A device with no cache directory, or whose driver writes no pipeline cache header (lavapipe), and a render stage past the bound are refused typed (Gap::StageSize with its StageGap). The validation runtime executor reports a refused prepare_dispatch; the replay prepass ignores it as the dispatch reports it again. Docs: the runtime README's "Kernels past the stage bound" and its known gaps, the stages/ directory, prepare_dispatch's one error, the floor row; docs/API.md's entry_weight; docs/REFUSALS.md regenerated; the api signature and surface tables. Tests: tests/stage.rs: the directory past capacity on both bounds, oldest use out first, a hit outliving older entries, a breach under the same bounds; cut, foreign-key, other-header and unknown-breach entries a miss and removed; the wire's version and cut frames; the request's joinable bounds; and on a device (m2v_gpu, m2v_cpu_icd), with the bound lowered for the test, the refusal with no directory, lavapipe's NoPipelineCache, and elsewhere refused unfilled, filled by serve_stage over two pipes, made from the entry alone with the shared cache's data unchanged, then refused by a recorded breach. |
||
|
|
20ae73f152 |
Translator: the resident-table domains' encoder-operation lowering goes; object words stay
What: lower/access/encode.rs goes. It lowered a function's indirect-command encoder operations
under the resident-table domains, writing the binder's records and their written flags. What it
held that is still used moves to lower/access/object.rs:
- an argument buffer's command-buffer or pipeline-state member read as its word (ObjectWord);
- the plan that admits such a load only as an encoder operand.
Every encoder operation is now refused, `Unsupported{GpuEncodedIndirectCommands,
NotImplemented}`, except those the identity domains' icb.rs lowers: a render command's buffer
setters, its indexed triangle draw and a reset. icb.rs is selected first, as before. The other
deletions follow from that:
- indirect_commands.rs drops CommandEncoderOperation's per-operation policy table;
- lower/access/dynamic.rs drops the resident-set search and address helpers only encode.rs
called (plan_search, plan_address, search_start, plain_base);
- the error doc of the depth-stencil argument names the setters' refusal;
- engine_indirect_commands.rs keeps two tests: every encoder operation refused under the
resident-table domains on every committed profile and Profile F, and a depth-stencil member
compiled unread and refused read. engine_handles.rs expects the refusal where a pipeline-state
member is a command's operand;
- the command-writes interface test now takes icbcut's indexed kernel (icb_indexed_16) under the
identity domains, plus the template that takes no command buffer;
- the authored census integration test expects the encoding case's refusal on both forms;
- docs/API.md's indirect-command section says which domain refuses what;
- docs/REFUSALS.md is regenerated.
Why: rule 4 (small) and rule 2 (one form). The runtime compiles under the identity domains, where
this lowering never ran. Under the resident-table domains, the validation executor's alone, it was
a second form of GPU-encoded commands that no consumer path takes.
No public item changes (indirect_commands is pub(crate); api_signatures.tsv is unchanged).
Versions: SEMANTICS_VERSION 2255 -> 2256 (a placeholder; the landing sets the number), because the
resident-table domains refuse what they lowered. Under the identity domains no output changes.
Verified (jobs at this commit's tree less the runtime README edit below it, 4606692494, or at the
next commit's, the runtime-sources pin, 4e9e857f8c):
- m3-max-63058 at the pin: fmt, clippy, clippy --cfg m2v_gpu, clippy --cfg m2v_cpu_icd, Rustdoc
-D warnings and scripts/api-docs, all rc 0 (peak 7.5 GiB);
- m3-max-63040, the validation suite at this commit: 1359 of 1360 passed, the one failure the
runtime guard, which the next commit pins;
- m3-max-63057, the metal2vulkan and metal2vulkan-runtime suites and doctests at the pin: 3349 of
3360 passed. The failures are the render key, the AIR printout and the golden table (bless due
at development's next pin) and the engine inventory's 8 parts: 2,142 cells moved, 0 rows new or
gone, of which 1,342 are the storage forms' removal below this commit (ilock, m3-max-63032) and
800 are this commit's, the resident-table encoder operations now refused: m3-max-63151, the
parts with every difference printed, names them as 50 entries on all 16 profiles, each
ok -> Unsupported{GpuEncodedIndirectCommands; NotImplemented}, in 31 fixtures, every entry a
kernel that encodes indirect commands (26 engine/icb_* and 3 kernel_icb_* fixtures,
resident_draws.ll's rd_encode and mesh_commands.ll's six enc_* kernels); the other 1,342 are
ilock's, class for class. The inventory compiles under RESIDENT_TABLES
(spirv::testing::committed_profiles), and its bless runs on macOS only (bless_engine_inventory
refuses without every assembler, m3-max-63084);
- docs/REFUSALS.md regenerated by scripts/refusal-surface/refusal_surface.py;
- no states-only play: the runtime compiles under the identity domains, whose output this commit is
expected not to change. That is read from the code: icb.rs, the identity lowering, is untouched
and still selected first. It is not measured, because the golden table's every cell is re-keyed
until development's bless. ilock and this commit report the same staleness: 29,792 cells,
m3-max-63032 and 63057.
|
||
|
|
7e8b93d953 |
Fetch: the interlocked storage forms go; one input-attachment form, ordered by ROA where the device has it
What. The pixel interlock's storage forms of framebuffer fetch, of the fragment imageblock and of
the shadow stencil are deleted, with their snapshot reads, the sample planes' split and merge
modules, the stencil shadow's copies and the binder, pipeline and runtime items that served them.
A color input now has one form on every device: its input attachment, ordered by
rasterization-order attachment access where the device has it, and elsewhere ordered between
draws alone, noted `PrecisionNote::UnorderedFetchWithinDraw`. The pixel interlock serves raster
order groups only; on a device without rasterization-order access a group on a color input or a
read output does not interlock. What had no other form is refused, typed:
- a fragment function's imageblock use, `Unsupported{Imageblocks, NotImplemented}`;
- a `[[stencil]]` output on a device without `VK_EXT_shader_stencil_export`, naming
`StencilExport`;
- a merge, a rotated blend or a logic operation that reads the attachment, on a device without
rasterization-order access, naming `FramebufferFetch` and
`RasterizationOrderColorAttachmentAccess`.
Why. Rule 2 (one form per Vulkan capability) and rule 4 (small): the storage forms were a second
form of fetch, imageblocks and stencil output chosen by the interlock feature, outside the eight
allowed second forms. The runtime never took them under the identity domains.
Versions: ARTIFACT_FORMAT_VERSION 586 -> 587 (a placeholder; the landing sets the number).
SEMANTICS_VERSION moves in this stack's fourth commit and the runtime-sources pin in its fifth.
RUNTIME_VERSION is not bumped.
Removed public items (crates/metal2vulkan/tests/api_signatures.tsv): pipeline::StorageAttachmentUse,
ShadowStencilUse, FragmentImageblock, ImageblockMechanism, SnapshotForm, SnapshotRefusal,
StorageAttachmentView; bind::PlanesSplitModule, PlanesMergeModules, StencilSplitModule,
planes_split_module, planes_merge_modules, stencil_split_module, CopySource, FragmentTests;
RuntimeFact::{FragmentImageblock, InterlockedFramebufferFetch, MovableStorageWrites,
ShadowStencil, TestedStorageWrites}; PushField::{ShadowStencilState, SnapshotPhase,
StorageKeptChannels}; ResourceKind::SnapshotTexels, BindingSource::SnapshotTexels,
WriteSource::{ShadowStencil, SnapshotTexels}, PushHole::SnapshotPhase,
DrawReplayRule::{FragmentImageblock, ShaderStencil}, PlanesCopy::Alpha8,
ExtendedRangeBlend::OneColorChannel, PrivateRenderField::SampleMask,
PrecisionNote::UnmeasuredFetchBlend (translator and runtime), runtime
RenderPipelineKind::{Imageblock, ShaderStencil}. Changed: FramebufferFetchInputs::of(read, colors),
DepthStencilCopy::{StencilExport, StencilPlane}, WriteSource::TileAttachment.
Runtime README, known gaps: a new bullet names a fragment function with imageblock data (an input
or output declared [[imageblock_data]]) as refused on every device, and the stencil output bullet
says the runtime has refused it on a device without the extension all along. Both say why: the
forms deleted here bound a storage image through a descriptor, which the identity domains the
runtime compiles under hold none of. The raster order group bullet already names its refusal.
docs/REFUSALS.md is unchanged (scripts/refusal-surface/refusal_surface.py leaves it as it is).
Consumer check (~/.cache/m2v-orch/consumer-uses.sh, consumer development e76e2ffeb4 plus its 49
steelbrain/* tips younger than a day): 0 code hits on development for every removed name above
(Imageblock appears there only in rt_platform/diag.rs comments); UnmeasuredFetchBlend and
OneColorChannel hit only crates/reims-vgpu-vulkan on unlanded lane branches, none on development.
This commit does not build crates/metal2vulkan-validation alone: its executor still names the
removed pipeline items until the next commit, which removes its storage-form arms.
Verified: in the stack's second commit, which states every job; this commit alone does not
build the validation crate.
|
||
|
|
7503407108 |
Binder: the identity domains' texture, sampler and runtime-owned push fields are refused typed
What: the translator's binder (bind/plan/compute.rs, bind/graphics.rs) now answers
Unsupported{IdentityDomains; NotImplemented} for every push field that only the identity domains
emit and that no binding state holds:
- a texture's or sampler's resource ID, PushField::SlotGuestBase of a Texture or Sampler slot;
- PushField::ConstexprSampler;
- on the render side also PushField::FetchedColor, TessellationFactorAddress, IndirectRange,
IndirectSequence and IndirectBase, and PrivateArenaAddress beside ZeroAddress and BicubicTexels.
Before this, a compute plan of an identity pipeline that samples a texture failed with the internal
invariant "a compute push field SlotGuestBase(SlotRef { stage: Kernel, class: Texture, index: 0 })".
Why: one of (b)'s reds, api_preview_example::the_api_preview_example_runs. The example planned
an identity-domain pipeline through the binder, which plans only the resident-table domains.
Can rt's make reach it: no. metal2vulkan-runtime never calls the binder: it has no
pipeline.plan, BindState or BindShape call; it pushes these fields itself. The refusal is reached
only by a consumer of the translator's binder who plans an identity-domain pipeline. That is why
the form is in docs/API.md, the binder's guide, and not in the runtime's known gaps.
The example and the guide:
- examples/api_preview.rs opens a runtime_device, the default policy, and prints its profile.
- Its tour device, committed_device, takes DevicePolicy::RESIDENT_TABLES, because its binding plans
are the binder's.
- docs/API.md says so after the Device paragraph and lists the refused fields.
The golden storage pair: golden_hashes_match_the_table's check_storage_pair reads the observed
cells, so a bless alone does not satisfy it. Its rule changes to what the identity domains answer.
On the 7 profiles whose bgra8 is not storage-capable (amd-rdna2-apu-radv, intel-arl-anv,
intel-irisxe-anv, intel-irisxe-rplp-anv, intel-uhd770-rpls-anv, nvidia-pascal-linux,
runtime-floor):
- The bgra8 cell is Unsupported{IdentityDomains; NotImplemented} on all 7. Its choice is
StorageImageClass::SwizzleBgra, state of the bound texture beyond its resource ID. This is not
the formatless storage row.
- The rgba8 cell is that refusal on 4: intel-irisxe-anv, intel-irisxe-rplp-anv,
intel-uhd770-rpls-anv and runtime-floor. These lack shaderStorageImageReadWithoutFormat, so the
read-write choice there declares the format, a storage image the identity arrays hold no
element of.
- On amd-rdna2-apu-radv, intel-arl-anv and nvidia-pascal-linux, which read and write storage
without a format, the rgba8 choice declares none and compiles.
Both refusals have the symbol "texture argument S: a type the identity arrays hold no element of,
or state of the bound texture beyond its resource ID", a form the runtime's known gaps list. Each
cell arises only because the golden table supplies a storage_images input that names the bound
format. The runtime never gives one: its slot stays the write that the floor's
shaderStorageImageWriteWithoutFormat takes. So a guest meets neither refusal.
Tests (engine_identity.rs), each failing without the change:
- the_binder_refuses_a_texture_and_sampler_slots_resource_ids_typed: sample_level on moltenvk-m3
under the identity domains, planned with a buffer, a texture and a sampler bound, answers
BindError::Unsupported (IdentityDomains, NotImplemented), not an internal error.
- a_storage_choice_the_identity_arrays_hold_no_element_of_is_refused_naming_the_texture_argument:
on every committed profile, for bgra8 and rgba8, the storage_texture_write compile under the
identity domains, given the format's storage choice, compiles where the choice is the format's
own image declared without a format. Elsewhere it is refused naming the texture argument and
"beyond its resource ID". It asserts at least one compiled, one swizzled and one declared case.
Runtime sources re-pin: the binder is a runtime input of the validation crate's guard, so
runtime-sources.sha256 moves from 47fe413580a9... to 38223c0cc84f17c0bc78a52f216dba49f5bf27655911b528c9cde82d6dcff0b6. The value is
the one the guard test computed at this tree's inputs (m3-max-62914), and development's commits
since then touch none of them. No run's behaviour changes and RUNTIME_VERSION stays:
- the new arms answer only fields that identity-domain compiles push;
- the validation executor plans through the binder only on its own context, under
RESIDENT_TABLES (candidate/platform/compute.rs), whose compiles hold none of them.
Verified, at the same change on
|
||
|
|
2bbf157668 |
DevicePolicy::default() is the identity domains; the resident-table domains become RESIDENT_TABLES
What: DevicePolicy::default() now returns the identity pointer and handle domains, the policy
metal2vulkan-runtime compiles under. DevicePolicy::UNTRUSTED is renamed RESIDENT_TABLES. It stays
for the validation executor's own context (candidate/platform/compute.rs and the engine tests
that build a resident root and a handle table themselves) and for the translator's tests of that
lowering, which name it where they took default() before. The runtime takes default() instead of
setting the two fields itself.
Every tool that took default() now compiles under the runtime's policy:
- the command line's --profile;
- the compile worker;
- the authored compile census, the corpus translation audit and corpus-pipeline;
- acceptance, the tier table and specialization attempts;
- the golden table, whose devices take default() (its policy field goes).
Why: the planner's ruling (b), one policy constructor, so a tool and the runtime agree on the
policy. The description can still differ: --profile takes the profile's description, while the
runtime takes the device's, restricted to the features it enables. repro.rs and README say so.
Docs:
- README's --profile paragraph and the command's help text.
- API.md section 1: the identity domains are listed first, as the default; the resident-table
domains are the validation executor's.
- device/mod.rs, policy.rs and profile.rs.
- api_signatures.tsv renames the const.
- api_preview's buffer carries a device address equal to its gpuAddress, as the runtime makes it.
No SEMANTICS bump. For a given description and policy, the translator's output is unchanged. The
profile fingerprint covers the policy, so every cached artifact and golden cell whose output moves
does so under a changed key; the golden check reads those cells as re-keyed, a bless due. No bless
here.
Consumer search (consumer-uses.sh) at the consumer's development e76e2ffeb4 and 46 lane refs
younger than a day:
- UNTRUSTED, RESIDENT_TABLES, PointerDomain, HandleDomain and from_queries: 0 hits.
- DevicePolicy: 13 lane refs only, all in the deleted runtime's policy struct (fields this tree no
longer has); none on development.
Expected census at this commit, not yet rerun: m3-max-62608's identity column, taken at
|
||
|
|
d9ba8d0e72 |
Translator: GPU-encoded indexed triangle draws into indirect command buffers under the identity domains
What: the first cut of Metal indirect command buffers, the translator's half.
- pipeline::IndirectDrawLayout (public): the record contract the runtime and the lowering share.
A 24-byte header (capacity, vertex and fragment slot counts and stride as u32, then the reset
index address as u64 at 16), then command i at 24 + i * stride, stride = 8 (Nv + Nf) + 40:
the slot words (the buffer's address less 2^31, the word an execution pushes as the slot's
SlotGuestBase), the index token's data, the sequence index and VkDrawIndexedIndirectCommand.
- lower/access/icb.rs: under the identity domains, a function's render_command
set_vertex_buffer, set_fragment_buffer, draw_indexed_primitives of triangles and reset write
the records through the gpuResourceID an argument buffer's command_buffer member holds, each
only where the command's index is below the capacity (and a slot below its stage's count).
Every other indirect-command operation stays Unsupported{GpuEncodedIndirectCommands,
NotImplemented}; a vertex or fragment function without its stage's store feature and a device
without device addresses refuse by name.
- LoweringInputs::indirect_range with PushField::IndirectRange, PushField::IndirectSequence and
PushField::IndirectBase: a vertex function of a state made with supportIndirectCommandBuffers
reads the execution's range and its command (the sequence index plus its part's first command)
in its first block and draws nothing for a command outside the range, so an execution over a
range a buffer holds runs at full capacity (one SEQUENCE_INDEX token), in parts. Such a state's
vertex function pulls every attribute it reads.
- Fixture engine/icb_indexed_extras (MSL we wrote, regenerated by scripts/regen-air-fixtures):
a reset kernel, a vertex function that reads before its buffer's address, and one of fourteen
vertex buffers (a state of more tokens than lavapipe's 16). Inventory rows added by hand (the
fourteen-buffer vertex function's thirteen constant buffers pass the runtime floor's twelve);
the golden hash rows, the air_input printout and the old render descriptor key come with
development's bless.
- SEMANTICS_VERSION 2252 and ARTIFACT_FORMAT_VERSION 586 are placeholders one above
development's (2251 and 585); the lowering's emission and the encoded lowering inputs change.
- docs/API.md states the forms; docs/REFUSALS.md regenerated; api_surface and api_signatures
carry IndirectDrawLayout.
Why: the cutover's guests encode indexed draws into indirect command buffers from kernels, which
the identity domains refused.
Verified: see the lane's report (compile gate and test jobs, the states-only play).
|
||
|
|
52ee4de509 |
rt: a commit takes the Managed ranges named since the last, with commands or none
Before this change, a commit captured the Managed buffers' named ranges only if its command buffer had commands. A command buffer with nothing for the GPU (no commands, or only dispatches the runtime elides: a kernel that writes no memory, or a grid with no thread) took no submission. So its copy-in waited for the next command buffer that did submit, and a program's "upload now" commit uploaded nothing: the upload slid into its next, timed commit, and the wait on the upload commit covered no copy. Now every commit captures. In the submit thread, a command buffer with nothing for the GPU that a copy-in waits for (Captured::waits_for: the oldest captured at or before its commit number, the taker rule) leads a group as one with commands does. The copy-in becomes its submission, and it completes after it. Elided dispatches stay elided. One with nothing named still takes no submission. Its other answers keep Metal's empty shape: - It is scheduled as it joins, with its scheduled handlers run before the submission. - It retires in flight order, with its completed handlers, Completed status and the wait. - It writes no timestamp, so its GPU start and end are one time (command::retire's empty branch). - The copy-in counts in runtime_command_buffers with its own timestamps. This is within documented Metal: a named range may be taken at any commit after the naming. On an AMD Radeon Pro 5300M, Metal takes it at the first commit whose encoder binds the buffer. The runtime takes it at the same commit where that commit binds the buffer, an earlier one where it binds nothing, and never a later one. Docs: did_modify_range, the runtime README (the Managed section, the empty command buffer, GPU times) and docs/API.md's accepted difference. The internal docs in capture.rs and submit.rs are updated too. Tests: the two device tests of the previous commit, and a host check of waits_for. |
||
|
|
d00c32ecf6 |
translator: the identity domains push the draw's viewport count to a vertex function that selects its viewport
Under the identity domains a vertex function that writes [[viewport_array_index]] was refused
as IdentityDomains (an encoder value the function reads as ViewportCount): the field was not
among the encoder values those domains push. The runtime fills it per draw (the encoder's
viewport count,
|
||
|
|
73ce142afc |
Bind: a vertex function that chooses its slice writes Layer in every pass; the dropped-Layer variant goes
A vertex function that writes [[render_target_array_index]] had two forms:
- in a pass of at most one layer (BindShape::render_target_array_length 0, Metal's default, or 1),
the plan asked for VariantKey::dropped_vertex_layer, a variant compiled without the Layer
output;
- in a longer pass it ran the pipeline that stores Layer as `index < length ? index : 0`, the
length each draw pushes (PushField::RenderTargetArrayLength).
The second form already answers the short pass exactly. At a length of 0 or 1 it stores 0 for
every index, the slice Metal renders, so a one-layer framebuffer is never written an out-of-range
Layer. The dropped variant's one gain was a pipeline that needs no shaderOutputLayer. The floor
requires that feature, and every committed profile has it. The runtime never asked for the
variant: it compiles every render pipeline under VariantKey::new() and pushes the pass's layers,
at least 1.
After this change the one form draws every pass, and its plan states no variant at any length.
The binder pushes the pass's length as at least 1, as the runtime does; at 0 and 1 alike the
function stores 0 for every index.
Drawn one amplification at a time in a pass of one layer, a vertex function still writes no
Layer (LoweringInputs::amplification_draws, not layered). RuntimeFact::RenderTargetArrayLength's
layer_dropped now states that case alone.
Size: 24 files, +360/-381.
Removed:
- VariantKey::dropped_vertex_layer, with its is_empty term and its per-stage lowering bit;
- LoweringInputs::dropped_vertex_layer and the function key's "dropped-vertex-layer" bytes. A
function compiled without the input keeps its key;
- the binder's choice of the variant, and its term in the check that answers
BindError::NeedsVariant;
- the cache's round trip of the variant, and the variant's cases in the function key test.
Rule 1: no precision note changes.
The evidence gate (validation's candidate/platform/device.rs, fails_row) fails a row on every
ERROR the validation layer reports and on every WARNING of the validation type. Without the
variant the layer warns on each such draw into the render executor's one-layer framebuffer:
WARNING (validation) Undefined-Value-Layer-Written (0x1fc55805): "vkCmdDraw(): Shader stage
VK_SHADER_STAGE_VERTEX_BIT writes to Layer (gl_Layer) but the framebuffer was created with
VkFramebufferCreateInfo::layer of 1, this write will have an undefined value set to it."
It warns of the write whatever its value: VK_LAYER_KHRONOS_validation 1.4.363 reports it for a
minimal draw that writes Layer = 0 (job m3-max-61934). The spec leaves the framebuffer undefined
only where "the Layer value is less than 0 or greater than or equal to the number of layers in
the framebuffer" (Layered Rendering, vkspec 1.4.366). This pipeline pushes the length 1 there and
stores 0. As the planner ruled, the gate now withholds that message, under five conditions:
- Exact: a WARNING of the validation type with that id name, number and whole text
(CLAMPED_LAYER), for a row whose pipeline states RenderTargetArrayLength without layer_dropped,
drawn in a pass of at most one layer. The render executor sets this per row on the sink
(MessageSink::clamped_layer), so it is keyed on structure, never on a case.
- Counted: the row's environment records withheld_validation_messages
{"Undefined-Value-Layer-Written": n}, and corpus-vulkan prints it.
- Proved by our own tests: candidate::tests::engine_render's
an_index_past_a_one_layer_pass_renders_the_pass_s_slice draws rt6_layered_vertex writing index
3 in a pass of length 0 and reads Metal's answer: the slice holds the fragment's word
1 << 8 | 3 (the conformance case layered-render-target-array-length, recorded on an Apple M3
Max). rt's tests::layered::on_device::every_device_renders_metal_s_layers checks the same for
the runtime at lengths 0 and 1.
- One definition: rt's own device tests run under the layer and fail on any message, but they do
not get this one, because rt renders through dynamic rendering:
every_device_renders_metal_s_layers, index 3 in passes of length 0 and 1, passes under the layer
on RADV's RX 550 (m3-max-61553).
CLAMPED_LAYER is the only list.
- It cannot outlive its cause: the same device test asserts that the row withheld exactly one
such message. When the layer stops reporting it, the test fails, and the exception goes with
it. The sink's unit test the_clamped_layer_warning_fails_no_row_of_a_clamped_store_alone checks
the match: the message for another row, another number, an error, or another draw's text still
fails the row.
The executor version stays: a row the gate passed before draws and records as it did. The layer
bug's minimal repro and the issue text are staged for the owner to file.
Validation: two authored cases write [[render_target_array_index]] from a vertex function. Both
are vertex-stage cases into one 1x1 target, so both ran the dropped variant:
- 013406ac01b7 (public, vertex_amplification_id_layer) now runs the form that stores Layer;
- 434e73e03189's index is not shown the same across a primitive, so the commit below already
refuses it on every leg.
Qualified on lavapipe at this tree's content (m3-max-61968, at dvl-5 1fa4aed963, which differs only
by a test's needless borrow): 013406ac01b7 matches Metal with robustness on and off (candidate
output e9eec98c138165bb), and each record states the gate's exception ran:
withheld_validation_messages {"Undefined-Value-Layer-Written": 1}.
The candidate engine's graphics tests now expect an empty variant for every case. The case that
chooses its slice in a one-layer pass declares Layer, with layer_dropped false.
Tests:
- engine_render_target_slice: every_pass_runs_the_vertex_function_that_writes_its_layer replaces
the variant tests. On the 780M and lavapipe, each of three pipelines, at the lengths 0, 1 and 4:
- states no variant;
- declares Layer and reads the length, which the draw pushes as 1, 1 and 4;
- draws.
An amplified draw in a one-layer pass still draws one amplification at a time.
the_dropped_variant_needs_no_output_layer goes.
- engine_target_indices loses its compile of the variant on the device without
shaderOutputLayer.
- validation: an_index_past_a_one_layer_pass_renders_the_pass_s_slice (lavapipe, under the
layer) and the_clamped_layer_warning_fails_no_row_of_a_clamped_store_alone, above.
Bless due: nothing new. Every golden compiles without a variant.
SEMANTICS_VERSION 2248 -> 2249 and ARTIFACT_FORMAT_VERSION 584 -> 585 are placeholders that main
renumbers.
SEMANTICS: a slice-choosing vertex function in a pass of at most one layer now compiles to the
module that stores Layer. ARTIFACT: VariantKey and LoweringInputs each lose a field.
RUNTIME_VERSION stays, and runtime-sources.sha256 keeps development's (land-pkt re-pins it). api_signatures drops the two
fields. API.md's layered-rendering bullet states the stored 0 in place of the variant.
Consumer check (consumer_check.sh, consumer development b76d6ac4a9): dropped_vertex_layer,
layer_dropped and NeedsVariant have 0 hits.
Verified (jobs read):
- m3-max-61968: the lavapipe device suite at dvl-5 (dvl-6 without the clippy fix), 1483 of 1483,
qualify 013406ac01b7 Match, the withheld count {Undefined-Value-Layer-Written: 1} under both
robustness settings.
- At the stack's tip over this change (dvl-5 1fa4aed963 and dvl-6 92fe40c38f): 61978 and 61987,
fmt, clippy in every configuration, Rustdoc, each feature alone, the API docs and the Windows
clippy, green; 61891, the suites at dvl-4: 13 failures, each a bless-due golden above or
development's own (the raster state test, the inventory's sample_fill rows); 61968, the lavapipe
device suite of metal2vulkan-validation, 1483 of 1483, and public case qualification Match;
62042, the metal2vulkan-validation suite at dvl-5, 1378 of 1378 passed.
- States-only play of this change's player (p-dv.zst) over 35 distinct streams on ms01 (61971),
gem10 (61980), um790 (61991) and um870 (62110): 456,384 render and 91,972 compute states made,
0 refused, every stream exit 0; 62073 (um790) and 62105 (ms01) repeat those nodes' streams with
the same counts. The msi stream (windrag-780m-b2) is not played: msi had no memory free.
Rebased onto the rebased geomdel over development
|
||
|
|
57855c6097 |
Link: the synthesized geometry stage goes, both forms (the barycentric weights and the rate map's fan-out)
The translator built geometry stages in two forms that no Metal function asks for: - the barycentric weights: a fragment function's [[barycentric_coord]] read as varyings, which a generated geometry stage of each topology class wrote, on a device without fragmentShaderBarycentric; - the rate map's fan-out: a draw of a rasterization-rate-mapped pass's triangles once, a geometry stage emitting a copy of each per region, with its probe and its region-copy vertex variant. Neither form reached a guest. The runtime enables no geometryShader, so it refused the weights form already. It never sets BindShape::region_fan_out, and draws a rate-mapped pass region by region (the regions route, RateMapRegions, and region_viewports, which stay). Validation never set region_fan_out either. After this change, one form is left for each: - A fragment function that reads [[barycentric_coord]] reads the device's own BaryCoordKHR/BaryCoordNoPerspKHR. Without fragmentShaderBarycentric it is refused as Unsupported(Barycentrics) needing that feature alone; geometryShader is no longer offered. - A rate-mapped pass draws through the regions route. Rule 1: no precision note stops being raised. The fan-out's copies were a near-equivalent of the regions route, which carries its own note (RateMapRegions::precision), and the weights form raised none. The catalogue is unchanged. Removed: - pipeline::link::geometry (GeometryStages, the three classes' stages) and pipeline::link::fan_out, with their tests (link/tests/geometry.rs, link/tests/fan_out.rs) and tests/engine_region_fan_out; - bind::fan_out (the region table, the probe's word layout and its constants); - RegionFanOut and FanOutState; - the region_fan_out fields of GraphicsState, BindState, BindShape, VariantKey and RenderLinkInputs, and LoweringInputs::region_copies; - the region copy's lowering: StageIoPlan::region_copy, RegionCopy and the region table's declaration; - PushField::RegionBox and RegionProbe; - SyntheticBinding::RateMapRegions and RateMapFlags, and WriteSource::RateMapRegions and RateMapFlags; - RuntimeFact::SynthesizedGeometry, RenderPipeline::runs_stage and Linked::geometry; - IoRole::Barycentric with VaryingKey::barycentric and its key tag; - VkProperty::SubgroupGeometryStage; - the SPIR-V IR's geometry execution model, which only these stages produced: ExecModel::Geometry, OpEmitVertex and OpEndPrimitive, the InputPoints, InputLines, OutputLineStrip, OutputTriangleStrip and Invocations modes, ModelNeed::Geometry, EntryRule::GeometryModes and the builder's geometry ops; - from scripts/regen-spirv-grammar/items.txt, the opcodes EmitVertex and EndPrimitive, the execution model Geometry and those five execution modes. spv.rs is regenerated: the opcodes and the model stay as test-only values, which the test parser reads, and the modes go; - in validation, the census's geometry stage filter, the draw's runs_stage filter and the candidate's GEOMETRY stage arm. The census test that read three geometry stages from engine/bary_weights goes with them. The SPIR-V builder now marks only Position Invariant; ClipDistance was the fan-out's. band::plan loses its geometry flag, and takes the four SPIR-V helpers it shared with the geometry module. The binder's stage map takes a geometry stage as no render stage. Validation cases that executed either form: none. - Fan-out: no validation code sets region_fan_out. - Weights: two authored cases read [[barycentric_coord]], fa8b920d3cf3 and ae0a7e39b12f. Neither has a stored Vulkan observation on a profile without fragmentShaderBarycentric. fa8b920d3cf3 is observed on Metal and MoltenVK, and moltenvk-m3 has the feature. ae0a7e39b12f is observed on Metal only. Fourth user of GeometryStages: none. It was used by link, the compile API's splice, the binder's selection (through RuntimeFact::SynthesizedGeometry and GraphicsState::region_fan_out) and its own tests. Tests: - engine_stage_io_tail's weights test is now without_the_feature_the_weights_are_refused: on lavapipe, ANV's Iris Xe, NVIDIA's Pascal (each with geometryShader) and runtime-floor (without it), both barycentric entries are refused needing fragmentShaderBarycentric. - engine_target_indices checks each pipeline's stages valid where it counted geometry stages, and loses the_weights_stage_beside_a_vertex_layer_is_not_implemented: that combination is now the plain refusal above. - engine_amplification no longer counts geometry stages. - The binder's render stage test refuses a geometry stage. - The builder's invariant test refuses ClipDistance. - engine_rotated_weights' rotated draw runs on moltenvk-m3 and RDNA3's RADV, each with fragmentShaderBarycentric, where it ran on lavapipe through the weights form. - The fact mechanism test numbers its 100 RuntimeFact variants densely again (PrivateArena, which development added, takes 99). Bless due until the next named pin, where the M3 bless job takes them; nothing is blessed here: - tests::public_fixtures_engine (the inventory): every [[barycentric_coord]] cell on a profile without fragmentShaderBarycentric becomes Unsupported(Barycentrics) needing it alone, where it compiled through the geometry stages (with geometryShader) or offered GeometryShader as the alternative; - tests::golden_hashes, and pipeline::compile::tests::the_old_render_descriptor_key_keeps_its_value (the render key), as under the commit below: the profiles' fingerprints change; - the authored compile census. SEMANTICS_VERSION 2247 -> 2248 and ARTIFACT_FORMAT_VERSION 583 -> 584 are placeholders that main renumbers. SEMANTICS: a fragment function's weights and every rate-mapped variant change form. ARTIFACT: the codec loses the RegionFanOut, FanOutState, GraphicsState::region_fan_out, IoRole::Barycentric, RuntimeFact::SynthesizedGeometry, PushField, SyntheticBinding and VkProperty tags. RUNTIME_VERSION stays: the runtime's render-pipeline kind no longer reads region_fan_out, which it never set, and its SynthesizedStages doc names the bands alone. runtime-sources.sha256 keeps development's (land-pkt re-pins it), api_signatures and api_surface drop the removed items, and docs/REFUSALS.md is regenerated. API.md drops the geometry stages from RenderPipeline's stages, its barycentric bullet and its band bullet. ARCHITECTURE.md's link line drops pipeline::link::geometry, and the runtime README's Barycentrics gap names the feature alone. Consumer check (consumer_check.sh, consumer development b76d6ac4a9): region_fan_out, RegionFanOut, FanOutState, region_copies, region_copy, RateMapFlags, RegionBox, RegionProbe, SynthesizedGeometry, FEW_COPIES, PROBE_DRAW_WORDS, RegionCopies and runs_stage have 0 hits. GeometryStages appears in crates/reims-vgpu-c/link-order.txt only. fan_out's hits are the consumer's own event fan-out in crates/reims-vgpu/src/graphics/decode/cmdbuf.rs, not this module. Verified (jobs read): - m3-max-61801: the suites at this change's work in progress (4f1f934423); its real reds were the mechanism numbering and the rotated weights on amd-rdna3-radv, both fixed here; the render key reads bless-due. - At the stack's tip over this change (dvl-5 1fa4aed963 and dvl-6 92fe40c38f): 61978 and 61987, fmt, clippy in every configuration, Rustdoc, each feature alone, the API docs and the Windows clippy, green; 61891, the suites at dvl-4: 13 failures, each a bless-due golden above or development's own (the raster state test, the inventory's sample_fill rows); 61968, the lavapipe device suite of metal2vulkan-validation, 1483 of 1483, and public case qualification Match; 62042, the metal2vulkan-validation suite at dvl-5, 1378 of 1378 passed. - States-only play of this change's player (p-gd.zst) over 35 distinct streams on gem10 (61919), um870 (61924), ms01 (61967) and um790 (62004): 456,384 render and 91,972 compute states made, 0 refused, every stream exit 0. The msi stream (windrag-780m-b2) is not played: msi had no memory free. Rebased onto development |
||
|
|
4f6dc912f3 |
Identity domains: a plain ulong texture slot is the RG32 element its resource ID names
A `ulong` texture slot that no `ulong` atomic updates is an `RG32` unsigned image whose two words
the shader joins and splits (`TexelClass::Uint64`), declared `Rg32ui` where it is a storage image
(`ulong_format`, under the floor's `shaderStorageImageExtendedFormats`). Under the identity domains
identity_class refused every `ulong` declaration, so such a kernel was
`Unsupported{IdentityDomains}` ("a type the identity arrays hold no element of"). It now admits it:
its class is the unsigned integer class of its shape, as its declared image is, and a storage
declaration of `Rg32ui` is the class `StorageFormatClass::Format(R32G32_UINT)`, whose variable is
the storage-image array's (set 1, binding 1, which every storage class aliases), as Metal binds
only an `RG32Uint` texture there. A slot a `ulong` atomic updates (an `R64ui` image) and an
argument buffer's `ulong` texture stay refused. The default domains are unchanged.
Docs: RESOURCE-ID.md's arrays name the `RG32Uint` storage class of a `ulong` texture; API.md's
identity forms name a `ulong` slot's reads and writes.
Test: engine_identity's ulong_texture_slots_are_rg32_elements_their_resource_ids_name: the owned
fixture unk_ulong_access (a sample-access and a read-access `texture2d<ulong>`, a write-access
`texture3d<ulong>`) under the identity domains on lavapipe, moltenvk-m3 and moltenvk-m3 without
robustImageAccess2: each passes L3, its classes are the sampled array's unsigned 2D class and the
storage array's 3D `R32G32_UINT` class, and on the CPU interpreter each of 20 threads reads its
elements' two words joined as `(v, 0, 0, 1)`, `(0, 0, 0, 1)` outside the textures, and writes the
sum's two words inside the texture alone.
SEMANTICS_VERSION 2246 -> 2247: a refusal becomes a module.
Evidence:
- The 9 public conformance cases on the plain ulong slot (unk_ulong_rw x7, unk_ulong_access
x2): before, at
|
||
|
|
3ecf606aa8 |
Stage io: an index not shown the same across a primitive is refused; the selected index store goes
Metal's shading language leaves a primitive whose vertices write different indices undefined:
"You must return the same value of [[render_target_array_index]] for every vertex in a primitive.
If values differ, the behavior and value passed to the fragment function are undefined." The same
sentence covers [[viewport_array_index]]. The selected index store answered that case with the
first vertex's index, through the synthesized geometry stages, and MoltenVK's profile could take
DriverDeviation::MetalFirstVertexIndices to store it as written. Both reproduced undefined Metal.
The runtime never reached either: it enables no geometryShader, and no profile takes the
deviation.
After this change every profile has one form. An index that the function's structure shows to be
the same at every vertex of a primitive is stored to Layer or ViewportIndex where
shaderOutputLayer or shaderOutputViewportIndex is enabled. Without that feature it is refused as
Unsupported(LayeredRendering), or as Unsupported(VertexAmplification) for an index the
amplification's offset alone sets. The refusal needs the output feature only; geometryShader is
no longer offered. An index not shown the same is refused as NotImplemented(LayeredRendering) on
every device. index_store's comment cites the two spec sentences as the reason for that refusal.
It cites Vulkan's same-value rule (VUID-VkPipelineShaderStageCreateInfo-stage-02596 for Layer,
-02597 for ViewportIndex) as the reason the index is not stored as written. A device without
multiViewport still stores no viewport index.
Removed:
- IndexStore::Selected, indices_selected, selected_index;
- StageIoPlan::indices_selected and first_vertex_indices_by_device, and the compile layer's
requirement;
- IoRole::SelectedLayer and SelectedViewport, with their codec tags;
- VaryingKey::selected_layer and selected_viewport, with their key tags;
- GeometryStages::layer and viewport, the stages' Layer and ViewportIndex stores, and the
Reason's index half;
- RuntimeFact::SynthesizedGeometry's layer and viewport fields;
- DriverDeviation::MetalFirstVertexIndices, its last variant, and with it the DriverDeviation type
and DeviceProfile::takes_driver_deviation;
- VkProperty::MetalFirstVertexIndices and its codec tag.
The geometry stages keep the barycentric weights and the fan-out. A fan-out stage past the
geometry limits is now refused as RasterizationRateMap needing the limit. Before, it was refused
as LayeredRendering with an empty alternative, because the stage's reason held neither weights
nor an index.
Rule 1: no note stops being raised. The first-vertex form raised none. The input it served is now
a typed refusal, so no difference goes silent. The catalogue is unchanged.
The command line: no code there names a removed item. Translating a vertex function whose index
is not shown the same now prints FALLBACK (NotImplemented LayeredRendering) on a geometryShader
profile, where before it compiled with the stages. Validation: four authored cases compiled on
every profile-leg but moltenvk-m3 through the stages: 07f125464dac, 434e73e03189, 7ce6dea0475e
and a013a2bcbe56. On moltenvk-m3 they were refused needing geometryShader. They are now refused
on every leg; the authored compile census takes them at the next named pin, not in this change.
The coverage census test that read three geometry stages from engine/rt6_first_vertex now reads
them from engine/bary_weights on the 780M profile without fragmentShaderBarycentric.
Fixture: engine/vertex_amplification's amp_vertex and amp_vertex_layer now take their viewport
and slice from the instance (iid & 1) instead of the vertex (vid & 1). The amplification and
render-target-slice tests then still compile them, and engine/rt6_first_vertex carries the
per-vertex case. The fixture was regenerated by scripts/regen-air-fixtures (Apple metal
32023.922, llvm-dis 21.1.8).
Tests:
- engine_selected_indices becomes engine_target_indices, covering:
- a uniform slice or viewport takes the output or nothing else;
- no multiViewport stores nothing;
- per-vertex indices are refused on every device;
- the floor's zero reads;
- the weights' stage beside a vertex Layer is not implemented.
- link/tests/geometry.rs loses its two selected-index tests.
- engine_amplification, engine_render_target_slice and engine_stage_io now expect the builtin and
the output-only refusal.
- runtime-floor now requires shaderOutputLayer, so the tests that need a device without it
withhold the feature from the floor's description (engine_target_indices, engine_amplification,
engine_stage_io).
Bless due until the next named pin, where the M3 bless job takes them; nothing is blessed here:
- tests::air_input::engine_fixtures_match_their_golden_printout: vertex_amplification's printout;
- tests::public_fixtures_engine (the inventory):
- rt6_first_vertex and rt6_first_vertex_point become NotImplemented(LayeredRendering) on every
profile;
- amp_vertex and amp_vertex_layer become ok on moltenvk-m3;
- each LayeredRendering cell that offered GeometryShader loses that alternative;
- tests::golden_hashes, and pipeline::compile::tests::the_old_render_descriptor_key_keeps_its_value
(the render key): the profiles' fingerprints change with VkProperty's codec;
- the authored compile census.
SEMANTICS_VERSION 2245 -> 2246 and ARTIFACT_FORMAT_VERSION 582 -> 583.
SEMANTICS: an index store changes form. ARTIFACT: the codec loses two IoRole tags, a VkProperty tag
and two RuntimeFact fields. RUNTIME_VERSION stays; runtime-sources.sha256 takes the new hash, and
api_signatures is blessed. docs/REFUSALS.md is regenerated. The runtime README's known gap for a
differing index names the refusal as not implemented and drops the geometry stage form. API.md's
layered-rendering bullet, its RenderPipeline stage list and its profile accessors, and
ARCHITECTURE.md's link line drop the selected index.
Consumer check (consumer_check.sh, consumer development b76d6ac4a9):
- MetalFirstVertexIndices, SelectedLayer, SelectedViewport, selected_layer, selected_viewport,
SynthesizedGeometry, driver_deviations and DriverDeviation: 0 hits.
- GeometryStages and takes_driver_deviation: in crates/reims-vgpu-c/link-order.txt only.
- DriverDeviation and takes_driver_deviation are named in crates/reims-vgpu-vulkan/src/gpu/rgbx.rs
and encode_render/tests/metal_tests.rs on some of the consumer's steelbrain/* branches, for
MetalSampler, MetalHalfConversion and MetalVertexSimdgroups, which the stack below already
removed. development has neither file.
Verified (jobs read):
- m3-max-61766: lint in every configuration and the suites at this change on the earlier stack
(eeef281428); its reds were the bless-due goldens above.
- At the stack's tip over this change (dvl-5 1fa4aed963 and dvl-6 92fe40c38f): 61978 and 61987,
fmt, clippy in every configuration, Rustdoc, each feature alone, the API docs and the Windows
clippy, green; 61891, the suites at dvl-4: 13 failures, each a bless-due golden above or
development's own (the raster state test, the inventory's sample_fill rows); 61968, the lavapipe
device suite of metal2vulkan-validation, 1483 of 1483.
- m3-max-62042: the metal2vulkan-validation suite at dvl-5, 1378 of 1378 passed.
- States-only play of this change's player (p-si.zst) over the 36 streams on um870 (61909),
gem10 (61912), ms01 (61958), um790 (61990) and msi (62045): 502,920 render and 108,189 compute
states made, 0 refused, every stream exit 0.
|
||
|
|
c034220175 |
Private memory past the 16 KiB floor lives in the runtime's arena, one slot an invocation; a dispatch past its budget splits
A kernel whose private arrays (indexed at run time) passed the translator's 16 KiB floor was
refused as Unsupported{PrivateMemory}. The app's 780M library holds 7 such kernels (19,792 to
34,736 bytes a thread), and the Iris walk refused one at 28,704. Metal holds that memory itself.
The runtime now holds it in device memory it owns.
Translator, under the identity domains only (the default domains' binder supplies no such
memory, so they refuse as before):
- memory::plan::private_memory: a kernel with no call stack whose private bytes pass the floor
places every alloca it indexes at run time in its private arena, and marks the arena
ArenaLayout::device. The arena then leaves the private bytes. The kernel's own bytes decide;
no device fact does.
- Such an arena has no Private variable. Its words are PhysicalStorageBuffer words (Aligned 4)
at the invocation's slot. The slot is PushField::PrivateArenaAddress (a u64) plus
i * slot_bytes, with i = ((wz*ny + wy)*nx + wx)*n + LocalInvocationIndex in 32 bits. It is
computed once in the entry block (dispatch::KernelDecl::arena_slot, Invariant::ArenaSlot).
RuntimeFact::PrivateArena { slot_bytes } states the slot: the arena's bytes rounded up to 16.
- A tile kernel's arena past the floor stays refused (PrivateMemory). A slot past u32 is
LimitExceeded(PrivateArenaBytes).
Runtime (crate::arena):
- The arena is one Private pool block, never zeroed: Metal's private memory is undefined until
the thread writes it. The device keeps a Weak to the last block. Each command buffer that
dispatches into a block keeps it (keep_block), and a dispatch that needs no more than a block
still kept takes it again.
- A dispatch's slots take at most 1/16 of the largest DEVICE_LOCAL heap, capped at the longest
block, or one threadgroup's slots where those are more. A dispatch past that budget runs in
pieces of whole threadgroups through the existing split loop, each piece's DispatchRegion
carrying its first threadgroup. There is one split form; vkCmdDispatchBase is not used.
- A barrier (the encoder's owed barrier, so it merges with a hazard barrier) comes before each
arena piece, except the first piece in a block the dispatch took new. Dispatches of kernels
without an arena take no new barrier.
- An indirect dispatch of an arena kernel is Gap::IndirectPrivateArena: its counts are the
GPU's, so the runtime can neither size the arena nor split it.
- Metrics::private_arena_dispatches, private_arena_pieces and private_arena_blocks count the
path, and private_arena_allocations counts the block takes.
- The budget a device test splits with is Core::arena_budget's test override (cfg(test) with
m2v_gpu or m2v_cpu_icd), never a DeviceOptions field.
Docs: docs/API.md (the field, the fact, the slot formula), the runtime README (Compute
encoders: the arena, its budget, its order, the indirect gap), docs/REFUSALS.md (regenerated),
api_signatures.tsv (blessed).
SEMANTICS_VERSION 2244 -> 2245, ARTIFACT_FORMAT_VERSION 581 -> 582, RUNTIME_VERSION 2549 -> 2550.
Tests:
- engine_private_memory's
a_kernel_past_the_floor_keeps_its_private_memory_in_the_runtimes_memory_under_identity:
7176, 9216 and 51,200 words on the 780M's, the Iris Xe's and an RTX 50's profiles. Each compiles,
passes L3, pushes the address, states the fact, holds 0 private bytes and records no note.
The default domains refuse as before.
- rt private_arena's
every_device_holds_private_memory_past_the_floor_in_its_arena_split_or_whole: 28,704, 36,864
and 204,800 bytes a thread, 8 groups of 64, under the device's budget (1 piece) and a test
budget (4 and 8 pieces). Every answer matches a CPU reference. It counts 2 arena dispatches,
their pieces, and exactly 2*pieces - (blocks taken) barriers beyond a plain command buffer's.
Four plain dispatches take the barriers one does.
The kernel interface declares the arena's slot (Interface::private_arena, the slot bytes of
RuntimeFact::PrivateArena); the compute test's interface sets it to None.
|
||
|
|
83bde8268f |
docs: under the identity domains, constexpr samplers a lane chooses among are a switch, not a refusal
API.md still listed "an array of samplers" among the forms the identity domains refuse, which the previous commit made a switch over the candidates. The refusal list drops it, and the sampler array paragraph says the identity domains always take the switch, each candidate sampled through the constexpr sampler the consumer pushes (their stages bind no set-0 sampler). Docs only. |
||
|
|
305d85a2a2 |
Sampler: Metal's own sampler and the cube-gradient routes go
DriverDeviation::MetalSampler, CubeGradientRoute and GraphicsCubeGradientTangents, with VkProperty::MetalSampler and its codec tag, were never taken: Device::from_queries enables no Metal* property and always inserts VkProperty::DeviceSampling, and no committed profile carries a Metal* property. ProfileFields::cube_gradients, with CubeGradients and CubeGradientRoute, had one reachable value (Vulkan's rule for both stages), so it goes too. The forms only they reached go with them: - Cube gradients: CubeFootprint::Metal and ::Projected (MoltenVK's gradientcube and its graphics fixup); a cube's explicit gradients take Length, Face or Word by the sampler's anisotropy alone, and CubeGradientFootprint is raised wherever the shader does not take Metal's level and taps itself. - The sampler requirement: SamplerFamily::metal_sampler merges into device_sampling. Every sample, gather and LOD query, the hoisted no-bias samples and BiasReach::Metal's included, requires VkProperty::DeviceSampling and records DeviceSampling, as on every real device. - The half-texel routine (lower/texture/half.rs) and everything only it read: HalfClass, half_class and heap_half_class, TexelLanes and TexelOrigin, the texel argument of texel_value and held_value, sample_lanes and word_reads_one, Sampling::one_texel's word forms (one_texel now answers whether an access may read one texel, which float_texel_notes reads) and half_texel, SamplerSlot::texels, SlotPlan::half_format and unmeasured, TexturePlan::heap_half, the declarations half_format, half_routine and plain_half, the module's table of heap texel classes (AccessPlan::heap_class, declare_heap_classes, heap_texel_class, HEAP_CLASS_WORDS, and texel_format::heap_classes, whose tests now read the layout itself), texel_round::f32_to_half_from_even, NoteOn::Unmeasured, SpecKey::UnmeasuredTexels and PlainHalfTexels with their plan answers, TexelFormat::YCBCR_8192, MEASURED_ON_METAL_SAMPLER, unmeasured_on_metal_sampler and plain_on_metal_sampler, and the identity-domain refusal of a heap half sample that only a Metal-sampler profile met. - The Metal sampler's YCbCr filter note (linear::filter_note and metal_filtered_ycbcr), with NoteOn::HeapYCbCr and ArgumentSamplers, SpecKey::HeapYCbCrTextures and FilteringArgumentSampler, their plan answers and TexelFormat::two_plane_ycbcr. - The anisotropic not-mipmapped clamp [0, 0] (vk_sampler's own_anisotropic) and its note's source (anisotropic::own_not_mipmapped); PrecisionNote::NotMipmappedAnisotropicFilter, its codec tag, conformance Degradation and validation allowance go with its only source. - The rest: device_texels, device_decode's and fragment/color.rs's Metal decode, bind::plan::resources' swizzled_packed profile test, and border_read's metal_sampler (and device_opaque_black's format argument, which nothing then read). Rule 1, per note the commits stop raising: every one is case (b), no difference goes silent. - filter_note's HalfSampleFilter and FloatSampleFilter (slot clauses on a bound two-plane YCbCr format and the bound sampler word, heap clauses on HeapYCbCrTextures and FilteringArgumentSampler): raised only on a profile with VkProperty::MetalSampler, so on no real device. Such a filtered sample goes to the device's own sampler, and every sample, gather and LOD query sets device_sampling, so the stage records DeviceSampling, whose entry covers the device's filter of a two-plane texture. The in-place Y'CbCr model's HalfSampleFilter and FloatSampleFilter stay as they were. - NotMipmappedAnisotropicFilter: raised only under own_not_mipmapped, which needed MetalSampler. An anisotropic sample on a device with samplerAnisotropy goes to the device's sampler (DeviceSampling, its not-mipmapped clamp [0, 0.25] the device's footprint), and one without it keeps AnisotropicFilter or DeviceAnisotropicFilter, as on every real device. - The rest only widen: HalfTexelConversion (now outright at every half read, sample and gather, where the Metal-sampler profile tested the bound class), DeviceTexelConversion, SrgbTexelDecode and CubeGradientFootprint, each withheld only on a Metal-sampler or Metal-route profile. The precision-note catalogue loses NotMipmappedAnisotropicFilter alone; the docs of GradFromBias, HalfTexelConversion, HalfSampleFilter, SrgbTexelDecode, FloatSampleFilter, DeviceSampling and DeviceTexelConversion lose their Metal-sampler clauses (docs/API.md's entries already stated the one rule). Validation: comparison.rs's allowance list loses NotMipmappedAnisotropicFilter (unbounded), which no device raised; its HalfSampleFilter and FloatSampleFilter reasons now name the in-place model, their class unchanged (unbounded). No validation file names a deleted DriverDeviation. Also, from the planner: the citation of VUID-RuntimeSpirv-NonUniform-06274, which spec 1.4.366 no longer has, becomes VUID-RuntimeSpirv-None-10148 and VUID-RuntimeSpirv-subgroupSize-10149 in spirv/builder/ops/memory.rs, spirv/ir/module.rs (twice), spirv/serialize/mod.rs and the doc of non_uniform_elements_are_decorated_through_what_carries_them. Comments only. Tests: each deleted form's tests go with it: lower/arith/tests/half_texel.rs (the routine, its plain arm, and the steps that bounded the Metal-sampler note) with arith/tests.rs' quantize_flush_of, which only it read, f32_to_half_from_even_is_exact_on_every_tie, the projected-footprint test and the swizzle helper of face/tests/anisotropic.rs, texel_format's ycbcr_8192, wide16 and metal_sampler_s_read_bits tests, the format version 326 round trip, and the routes' asserts in engine_handles, engine_heap_binder and engine_sampler_unk. The rest assert the device's sampler on every profile: half_reads_round_their_texel_to_nearest_even (was half_reads_convert_by_the_bound_format), heap_half_texels_round_the_device_s_texel (was heap_half_texels_convert_by_the_handle_s_class), heap_linear_samples_are_the_device_s (no FloatSampleFilter, outright or specialized), engine_sample_coordinates' requires_the_sampler, engine_bias_reach, engine_graphics_binder's border test, engine_srgb_decode, engine_sampler, the routines test, the merged-members round trip, and metal/sampler.rs' and format/tests.rs' opaque-black calls. SEMANTICS_VERSION 2239, ARTIFACT_FORMAT_VERSION 577 (placeholders; main renumbers). SEMANTICS: the profile's fingerprint and the notes of the same input change form. ARTIFACT: the codec loses the VkProperty, the PrecisionNote and four SpecKey tags. RUNTIME_VERSION stays: the pinned sources' edits (device/, bind/plan/resources.rs and slots.rs, metal/sampler.rs, cache/codec.rs) remove forms and keys no profile reached, so no run changes; runtime-sources.sha256 takes the new hash. api_signatures is blessed; docs/REFUSALS.md and the coverage are unchanged. Consumer check (consumer-uses.sh, consumer development 2040502291, 62 refs): CubeGradientRoute, GraphicsCubeGradientTangents, CubeGradients, cube_gradients, FilteringArgumentSampler, HeapYCbCrTextures, PlainHalfTexels and UnmeasuredTexels 0 hits (code). MetalSampler and NotMipmappedAnisotropicFilter: 0 hits on development (its answer.rs names neither, and it has no gpu/rgbx.rs); named in crates/reims-vgpu-vulkan/src/answer.rs and gpu/rgbx.rs on 36 of the consumer's steelbrain/* branches younger than a day. Verified: m3-max-61441 (msi-laptop, this tree): fmt, clippy (all features, --cfg m2v_gpu, --cfg m2v_cpu_icd), Rustdoc green; tests 5861 of 5863 passed. The two failures: golden_hashes_match_the_table, every one of its 29536 cells under a changed profile fingerprint (re-blessed on development at a named pin), and the_old_render_descriptor_key_keeps_its_value, left unpinned until the next named pin. Rebased onto development |
||
|
|
5db3215260 |
Rotated blends: every blend not exact by construction announces its rounding
The planner's ruling on the rotated blend: the note no longer follows a measured table. A blend on an attachment held with its channels rotated (ARGB8Unorm) raises PrecisionNote::RotatedBlendRounding unless it is exact by construction: a minimum or a maximum, which takes no factor, or a blend whose chosen Vulkan factors are all ZERO or ONE, whose result is the source, the destination, zero, or their sum or difference, a whole code half a code from any tie. rotated_blend's MEASURED table and measured() go; unmeasured() becomes inexact(), which reads the state rotated_blend() chooses: a Synthesized state (SRC1 factors) is inexact, and a Direct one is inexact unless its four factors are ZERO or ONE. Newly announced, the nine states of the old table that are not exact by construction, each Metal's color pair and alpha pair under the one operation: - DestinationColor over Zero, DestinationAlpha over Zero, Add; - SourceColor over OneMinusSourceColor, SourceAlpha over OneMinusSourceAlpha, Add; - BlendAlpha over OneMinusBlendAlpha for both, Add; - the two straight-alpha pairs: SourceAlpha over OneMinusSourceAlpha with the alpha the same, and with the alpha One over OneMinusSourceAlpha, Add; - One over OneMinusSourceAlpha for both, Add and Subtract; - SourceAlpha over One with the alpha Zero over One, Add; - SourceAlpha over One for both, ReverseSubtract. One over Zero and One over One (Add) stay unannounced, now as exact by construction. Newly unannounced: blends outside the old table whose Vulkan factors are all ZERO or ONE, which Metal gives with one Zero or One factor for both its color and alpha sources and one for both its destinations, under Add, Subtract or ReverseSubtract (One over One under ReverseSubtract, Zero over One, and the like). Minimum and maximum stay unannounced. StageIo::rotated_blends and LoweringInputs::rotated_blends stay: they are now the attachments whose blend is not exact by construction. The stage raises the note from the latter, and color_writes::check reads the former to refuse a fragment compiled for another set than the pipeline's (NeedsInput(ColorWrites)), so the set still has a reader; its docs lose "measured". The docs/API.md catalogue entry, PrecisionNote::RotatedBlendRounding's doc, LoweringInputs' and StageIo's docs, rotated_blend's module doc, and validation's c3 deferral doc, its bound string and comparison.rs's allowance doc state the one rule. The validation files use the note to defer a row in C3 (c3.rs) and give it an unbounded allowance (comparison.rs); both follow the note, so more rows on rotated attachments are deferred, by the note alone. Tests: rotated_blend's measured-forms test becomes the_lane_s_blends_store_metal_s_rotated, over the old table kept as test data (LANE): every state stores Metal's blend rotated alike on MoltenVK and lavapipe, and all but one over zero and one over one are inexact. inexact_blends_are_announced adds a difference by ones and a held destination, exact. engine_rotated_colors expects the note on its product and its two second-output blends, and not on its minimum or its reverse subtraction of ones. SEMANTICS_VERSION 2237 (placeholder; main renumbers): the rotated blends' set, which the key carries, and the stage's notes change for the same descriptor. ARTIFACT_FORMAT_VERSION and RUNTIME_VERSION stay. api_signatures, docs/REFUSALS.md and the coverage are unchanged. Consumer check: unmeasured and MEASURED were pub(crate); no public name changes. Verified: m3-max-61259 at this tree (a5396ea291 before the colour commit's message was filled, msi-laptop): fmt, clippy (all features, --cfg m2v_gpu and --cfg m2v_cpu_icd) and Rustdoc rc 0; nextest over metal2vulkan and metal2vulkan-validation, 4719 run, 4718 passed, 23 skipped, 1 failed: the render key test (the_old_render_descriptor_key_keeps_its_value), left unpinned until the next named pin. Rebased onto development |
||
|
|
4d17e4593b |
Colour writes: the Metal colour-write deviations and the premultiplied rotated blend go
DriverDeviation::MetalColorWrites, MetalFloatColorNans, MetalSmallFloatColorWrites and MetalNorm16ColorWrites, with their VkProperty values, were never taken. Device::from_queries enables no Metal* property, and no committed profile carries one. Their forms go: - lower/stage_io/color_write.rs: the Metal conversion (Conversion, conversion()), the skip of a half-float channel on a Metal device, and nan_kept's profile read; - pipeline/color_writes.rs: lowered()'s small-float and 16-bit norm arms, metal_color_writes and metal_stored; - the rotated blend's premultiplied form, which only MetalColorWrites reached: rotated_blend::premultiplied, the measured table's premultiplied factors, RotatedBlendForm::Premultiplied, PlannedOutput::premultiplied and stage_io's premultiplied_blue. RotatedBlendForm kept one variant, Unmeasured, so it goes too. LoweringInputs::rotated_blends and StageIo::rotated_blends become a BTreeSet<u32>: the rotated attachments blended in none of the measured forms. rotated_blend::rotated_form becomes unmeasured(). Notes: RotatedBlendRounding stays, since the unmeasured form raises it; its doc and its docs/API.md catalogue entry lose the premultiplied clause. DeviceColorConversion and DeviceNanEncoding stay, since the device's forms raise them. On Apple's own blend the two straight-alpha pairs may round one code apart in the search's form, unannounced; rotated_blend's module doc says so. Tests: color_writes' tests lose their Metal branches; api_surface's with_color_writes loses its device argument; engine_rotated_colors loses the Apple-blend expectations and premultiplies(); rotated_blend's tests read unmeasured(); engine_fragment's profile filter and api_tests follow. SEMANTICS_VERSION 2236, ARTIFACT_FORMAT_VERSION 575 (placeholders; main renumbers). SEMANTICS: the rotated blends' key bytes change form. ARTIFACT: the codec loses RotatedBlendForm and four VkProperty values, and StageIo's field changes type. RUNTIME_VERSION stays; no binder source changes. api_signatures is blessed; docs/REFUSALS.md is regenerated (DualSourceBlending loses rotated_blend's premultiplied site). Consumer check (consumer-uses.sh, consumer development 415d453172, 58 refs): MetalFloatColorNans, MetalSmallFloatColorWrites, MetalNorm16ColorWrites, RotatedBlendForm and rotated_blends 0 hits (code). MetalColorWrites: 0 on development; used in crates/reims-vgpu-vulkan/src/gpu/encode_render.rs (ties_as_metals) on 36 of the consumer's steelbrain/* branches, a crate its development no longer has. Premultiplied and Unmeasured: the consumer's hits are its own (a comment in display.rs, its RefusedWait::Unmeasured), not these items. Verified: m3-max-61229 at this commit (homelab-um790-xtx-1): fmt, clippy (all features, --cfg m2v_gpu and --cfg m2v_cpu_icd) and Rustdoc rc 0. m3-max-61208 on the same change before its rebase onto |