10d00d44b49ef21a98dbb37f30e41ded1b69f2bb
1939
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
10d00d44b4 |
player: each pipeline state's making split into the translator's, the driver's and the rest
What: the replay report gains a `pipeline makes N states: ...` summary line and up to ten
`pipeline make slowest K #ID KINDS ...` lines, documented in docs/REPLAY-STREAM.md. KINDS is
kernel, vertex or post-tessellation vertex, plus +fragment.
How: each render and compute state's making is read from metal2vulkan-runtime's own Metrics on
the player's thread before and after it, with the wall time on rt::host_time (the counters' own
clock): translation_nanos against pipeline_creation_nanos, and the rest as "other". No runtime
counter is added. rt makes every state on the calling thread, and the only other thread that can
run beside a making is the player's own pre-pass. So the pre-pass pool now tallies its
prepare_dispatch calls begun and ended. A making that ran while one of them ran is counted
("beside a pre-pass call") and marked, since its figures include that call's work. The compute
states' `pipeline I wall_nanos=` lines take their wall time from the same clock.
Why: the next cold number needs its cause beside it: per pipeline, the translator's work against
the driver's vkCreate*Pipelines.
Verified: replay::rt_replay::each_pipeline_state_s_making_is_split_into_the_translator_s_and_the_driver_s_time
on lavapipe (m3-max-60980, with fmt, clippy plain, m2v_gpu and m2v_cpu_icd, and workspace
Rustdoc green). Without the line it fails at the summary-line find. On a real card: the cold and
warm states-only plays of one recorded stream on an RTX 3090 (m3-max-60954).
|
||
|
|
47d782f3a5 |
Fix forward of 14dca89bf9: lint, a float depth stays on the executor's context, a format the device lacks is not_enabled
What: the compile gate m3-max-60907 at 14dca89bf9 failed clippy twice and Rustdoc twice:
- `usage = usage | ...` becomes `usage |= ...`;
- `dispatched` takes its dispatch and threadgroup size as one argument;
- the public docs of `runs_through_runtime` and `RuntimeKernel` named private items as links.
The family's public proof (m3-max-60908, 218 cases on lavapipe against committed Metal, before
and after) showed 17 rows failing through the runtime:
- 15 bind a Depth32Float texture, whose bytes the runtime takes no upload of
(Gap::FloatDepthUpload). The executor cannot fill one, and a guest fills one by drawing.
`runtime_texture` now keeps such a texture on the executor's own context, where these rows
ran before.
- 2 bind R8Unorm_sRGB, which lavapipe's format query lacks. The runtime refuses it as
Gap::TextureFormat; before, the executor's own context recorded not_supported{not_enabled}.
`runtime_error` now maps that gap to NotSupported::NotEnabled with the gap's text. Every
other runtime gap still fails the row.
ENGINE_EXECUTOR_ABI is now vulkan-engine-v188. docs/VALIDATION.md's "Through the runtime" now
names textures and samplers, what keeps a case off the runtime, and the not_enabled mapping.
Tests: the routing test adds a Depth32Float texture, which is not routed. A new unit test
covers runtime_error's two mappings.
Verified: in the lane's report (compile gate and the focused rerun of the 17 rows).
|
||
|
|
81ced9a1cb |
Extended-range fetch and blend refused: what needs Metal's tile half is NotImplemented(Format)
Metal's tile memory holds an attachment of Apple's extended-range formats (BGR10_XR, BGRA10_XR,
RGB10A8_2P_XR10 and their _sRGB twins) as half through a render pass and rounds it to the codes
only at the store. A fetch of such an attachment, or a blend onto it after an earlier draw of the
pass wrote it, sees that draw's half. The attachment holds the codes. With the half shadow gone
(the commit before), such a read or blend would take the stored codes, which is wrong but valid
output. Both are now a typed refusal, NotImplemented(Format) at Attachment::Color(n), on every
device and in either fetch form. This is the same boundary as the runtime's own refusal of every
extended-range texture: Gap::TextureFormat (crates/metal2vulkan-runtime/src/error.rs:1011),
raised in texture.rs's form() (texture.rs:2416, `if !viewed(mapping.emulation)`), so rt never
makes such an attachment.
Where (lower::fragment::fetch::codes_round_the_tile names the forms: an extended-range form that
is neither padded nor bfloat):
- A fetch: color::select_param, beside the bfloat fetch's refusal. It runs for the storage form
and the input attachment alike. An integer read stays Metal's pipeline error
(InvalidDescriptor(ColorAttachment)).
- A blend into one the function writes, under any write mask:
- fetch::blended_extended_range, which both ordered devices' plans call (the interlocked storage
form, and input_blend over rasterization-order input attachments);
- stage_io::extended_color::plan, on a device that orders fetch in neither form. It is checked
before the orderings' refusal, since no device would make the blend.
- The public door metal::format::extended_range_blend answers NotImplemented(Format) for those
forms on every device.
Unchanged: an unblended write and a masked merge (a kept code is the encode of the half the tile
keeps there). Padded forms (R10Unorm_X6, RG10Unorm_X12, their _sRGB twins, RGB10A2Unorm_sRGB):
their fetches and blends are built as before. Bfloat: its fetch is refused as before, and its
blend is Metal's error.
Dead with it: the source-range clamp only those blends took. Every caller of
extended_range::blend::native now passes a padded form's None. Removed: blend::extended_ranges,
clamped_lanes and native's ranges parameter, extended_range::source_range, and blend_color.rs
(SOURCE_RANGE, SRGB_SOURCE_RANGE). The validation build script's runtime inputs list
blend_color.rs no more, and the runtime pin moves. In the CPU-model tests: the XR forms' blend
cases and EVERY_FORM; the padded blends keep their model.
Docs: fetch's module docs (the extended-range paragraph, plus one on Apple's forms in place of the
"across draws" one), color's and stage_io::extended_color's, input_blend's, ExtendedRangeColor's,
PrecisionNote::ExtendedRangeBlendSource and ExtendedRangeFloatBlendSource (now padded only), the
door's, and docs/API.md (section 4's framebuffer fetch, and the two notes' catalogue entries).
docs/REFUSALS.md regenerated, api_signatures blessed.
Conformance (crates/metal2vulkan-conformance/known-gaps-rt.tsv), by expectation: the next round's
conformance replay on every card confirms them. 260 rows change their answer from "unsupported:
FramebufferFetch; needs AnyOf([[Feature(FragmentShaderPixelInterlock)],
[Feature(RasterizationOrderColorAttachmentAccess)]])" to "unsupported: Format; needs
NotImplemented", at the same metadata and color attachment. Their explanation now names the
refusal:
- xr-blend-* (108);
- xr-gamut-* (108);
- xr-gradient-*-blended (24);
- xr-masked-*-over (20).
The unblended masked rows (xr-masked-bgr10xr-red, -blue-green and their sRGB twins) keep the
orderings' refusal. The runtime's floor orders fetch in neither form, so its stage_io refusal is
what these rows record. docs/CONFORMANCE-COVERAGE.md is regenerated.
Tests:
- fetch::tests: the door's case splits Apple's forms (NotImplemented) from the padded blended
ones; on runtime-floor, R10Unorm_X6 keeps the orderings' refusal and BGRA10_XR is
NotImplemented; the moltenvk-m3 FragmentStoresAndAtomics case takes R10Unorm_X6.
- engine_extended_range::blended_pipelines: a `refused` helper (Format, NotImplemented,
Color(0)); the wide-gamut client pipelines are refused on every venue and runtime-floor; the
unwritten and masked test expects the refusal for every written blended shape.
- engine_extended_range::targets: a blended attachment, and lavapipe's fetch, expect the refusal.
- engine_fragment: a_fetched_extended_range_attachment_is_refused (every Apple form on every
committed profile, exf_fetch_three, and the whole pipeline on moltenvk-m3) replaces the made
fetch; the fast source-alpha-over sRGB XR blend and the input-attachment XR blend go, as they
covered refused forms only; the premultiplied blend test and the blend note's test move to
padded forms (RG10Unorm_X12 and its sRGB twin). con_fetch_coverage, the second-source blend and
tsw_fetch_discard keep their storage-form and coverage mechanics on RGB10A2Unorm_sRGB, the
four-channel padded form, where the guests' pipelines had RGB10A8_2P_XR10; their docs say so.
- lower::arith::extended_range::tests: the padded forms' blend model alone.
SEMANTICS_VERSION 2225 (after guestgaps' 2224, on development
|
||
|
|
a950689934 |
Extended shadows go: no variant reads and writes an extended-range attachment's half shadow
Metal's tile memory holds an extended-range color attachment (BGR10_XR, BGRA10_XR, RGB10A8_2P_XR10 and their sRGB twins) as half through a render pass and rounds it to the codes only at the store. The binder offered a variant for a draw whose render pass instance held a half shadow of such an attachment (BindState/BindShape::extended_shadows, VariantKey::extended_shadows, LoweringInputs::extended_shadows). Its fragment function read and wrote an Rgba16f storage image beside the codes (ResourceKind::ExtendedShadow), either in the interlocked storage form or, on a device that fetches through rasterization-order input attachments, beside the input attachment (lower::fragment's input_shadow). metal2vulkan-runtime never asks for the variant and makes no extended-range texture (Gap::TextureFormat), so nothing reached it. Now no such variant exists. A function compiled with no shadow (every function, as before for every rt draw) is unchanged: a blend or fetch onto an earlier draw's write reads the codes that draw stored (extended_range::tile_value). Those differ from Metal's half where it is not a code's value, and fetch's module docs say so. Removed: - lowering: lower/fragment/input_shadow.rs (InputShadow and its plan, read, store and words), FragmentPlan::input_shadows, Declared::extended_shadows, the storage form's shadow (StorageColor::shadowed, declare_shadow, shadow_and_texel, shadow_read, the shadowed branches of texel, value, the write and its blended and merged forms, and their word estimates), and the input-attachment blend's, color read's and stage_io write's shadow branches. The loop over covered samples no longer has a shadow refusal. The blend's doc, which sat above merged_extended, now sits on blended. - pipeline: LoweringInputs::extended_shadows and its key bytes, VariantKey::extended_shadows, ResourceKind::ExtendedShadow, BindingSource::ExtendedShadow and its link arm, the fetch inputs' shadowed reads and writes and their tests and coverage (the input-attachment form passes no depth, stencil or coverage state, as before for an unshadowed draw), and the requirements trace's ExtendedShadow arm. MovableStorageWrites' doc loses the shadow. - binder: BindState::extended_shadows, BindShape::extended_shadows, WriteSource::ExtendedShadow, and the graphics binder's choice of the shadowed variant (its refusals of a mesh, layered, amplified or multisampled plain writer's shadow included). - tests: engine_fragment's four shadow tests and their helpers (image_accesses, shadow_image_types, execution_modes, interlocked); engine_moved_writers' shadow move (its Move enum goes, and the writers are checked with the interlocked move alone); the shape round-trip, the variant round-trip fixtures, the compile-key test's shadow arm, and the requirements test's ExtendedShadow kind. No SEMANTICS_VERSION bump: an input without shadows (every input a consumer can now state) lowers to the same words. Removing the shadowed branches leaves the instruction order of the unshadowed paths as it was, and the key appended shadow bytes only when the set was non-empty. ARTIFACT_FORMAT_VERSION 569 (after guestgaps' 568 on |
||
|
|
fd924dd9c8 |
Census: a requirement the runtime refuses is the runtime's limit, closed without a candidate run
The authoring-capability census stayed open on 66 rows, every one a
requirement whose shape metal2vulkan-runtime refuses: seq_cst_fence (14),
texture_buffer_member (6) and mesh_render_pipeline (46). Each was a tooling
gap (Limit::Tooling), which keeps a row unresolved, though no tooling the
executor could build would run them: the product refuses them.
The ruling is a third limit beside Limit::Metal. Limit::Runtime is the limit
of a requirement whose shape the runtime answers with a typed refusal, or for
which it has no call and the consumer refuses it itself. Its rows are closed
without a candidate run and counted apart: runtime_refused beside
metal_refused, in the summary line and in each executor's stops line. They
stay unresolved only where a tooling gap of their own keeps them open. What
the runtime runs and the executor cannot drive stays Limit::Tooling. This
replaces the first lane's "no new Limit" ruling.
- seq_cst_fence: the runtime refuses the pipeline at its make as
Unsupported{IdentityDomains}. Both ways on lavapipe: the existing
a_seq_cst_fence_is_refused_through_the_runtime_as_its_requirement_says,
and the new a_fence_of_another_order_is_made_through_the_runtime (the same
two stores around an acq_rel fence, made and run, its words checked).
One-off over the census's 14 rows (m3-max-60840, a probe that never
lands): each row's own make through the runtime on lavapipe, with no
input, is the named refusal, not_implemented IdentityDomains, 14 of 14.
- texture_buffer_member: two device tests, each both ways.
a_texture_buffer_is_refused_where_a_2d_texture_is_made: new_texture
refuses a texture buffer as Gap::TextureBuffer and makes a 2D texture of
the same format.
a_texture_buffer_member_is_refused_at_the_make_where_a_2d_member_is_made:
the make of a kernel reading an argument buffer's texture buffer is
refused as Unsupported{IdentityDomains}, and the same read of a 2D member
is made.
- mesh_render_pipeline: the runtime has no mesh call, and the consumer
refuses mesh itself (the runtime README's known gap). Without a call there
is no device test; that README sentence is the guard. The requirement's doc
says the limit flips when a guest's mesh pipeline is built.
- The new owned fixture rlm_runtime_limits (regenerated with
scripts/regen-air-fixtures on the M3, m3-max-60866) holds the acq_rel
fence and the two member reads. A triage test checks the classifier
takes each shape and not its pair.
- The platform's runtime device opening is factored out (opened), so the
device tests can make a texture or a pipeline alone under the validation
layer (on_runtime_device, make_kernel; both test-only).
- The analyzer version is now structural-triage-v85. docs/VALIDATION.md
states the closure. AGENTS.md's census bullet stays true as written.
Verified: the compile gate and the census, both named in the lane's report.
|
||
|
|
7bbc00287d |
DeviceFragmentRuns names what follows the run count; section 10's intro admits notes
The note's doc and docs/API.md's entries (section 9's note, section 10's Draws entry) said only that a memory-writing fragment's writes repeat as the device's runs. Whatever the function derives from its own writes across runs follows the same count, its stored colours and its [[sample_mask]] output included: the conformance fixture coverage_outputs' cvo_masked writes the mask 1 << run, so at pixel rate on a device that runs once only sample 0 keeps its colour. Section 10's intro said its entries carry no degrade notice; the SIMD-group order entry and this one each name their static note, so the intro now says most carry none and an entry whose answer is the device's own names its note. Docs only: no emitted word or key changes. |
||
|
|
3ba18a4b19 |
A memory-writing fragment runs as the device runs it, noted DeviceFragmentRuns
What: a fragment function that writes memory no longer counts as per-sample under
multisampling. The coverage loop's memory-writes trigger goes: the loop stays for
`[[sample_id]]` and sample-qualified varyings beside `[[sample_mask]]`, and its refusals
(early fragment tests, attachments, the interpolation functions, discard, quad operations)
no longer reach a memory writer that reads neither. Such a function takes the plain form and
runs as many times per pixel as the device runs it. `GraphicsState::sample_shading`, the
`sampleRateShading` requirement in `multisample_features`, and validation's candidate read of
the field (graphics_pipeline.rs) go with it. consumer-uses.sh: `sample_shading` 0 hits (code)
over the consumer's development a48b3984af and 68 refs.
The new static note `PrecisionNote::DeviceFragmentRuns` goes on the fragment stage of a
pipeline of more than one sample whose function writes memory, recorded by the compile layer
beside `MultisamplePosition`. Its conformance code is
`metal2vulkan-degrade-device-fragment-runs`, and validation's table makes it `Unbounded`.
docs/API.md section 9 lists it, and section 10 adds the accepted difference: "Metal's GPUs
were measured to run a memory-writing fragment once per covered sample; documented Metal names
no count; here the count is the device's."
Why: documented Metal names no run count for a memory-writing fragment. MSL 5.5 makes a
function run per sample only for a sample-qualified input, `[[sample_id]]` or `[[color(m)]]`.
Vulkan without sample shading runs at least one invocation per fragment, and "Multiple
fragment shader invocations may be executed for the same fragment for any number of
implementation-dependent reasons" (vkspec 35.5). One form now covers both classes of guest:
the replay count of 36 streams found no multisampled memory-writing fragment. History: the old
runtime, deleted in
|
||
|
|
2628c03fb2 |
player: a Windows host's video surfaces through an NT handle (--video-handle opaque-win32)
The Windows plays of boot-idle-780m-1 stopped at frame 212, the stream's first video surface: "error newTextureWithDescriptor:iosurface:plane:: the device exports no DmaBuf" (60780). The video stand-in knew only the Unix routes, a dma-buf (the default) and an opaque fd, while the runtime exports a surface on Windows through an NT handle (ExportHandle::OpaqueWin32), and answers NoExport for a dma-buf there, correctly. VideoHandle gains OpaqueWin32 (`--video-handle opaque-win32`): the surface is exported as an NT handle at the opaque fd's layout, pitch multiple 4, start multiple 1, no rows below. The runtime lays both opaque handles alike, each plane's LINEAR image at the driver's own pitch (its guide, the surfaces' handles), and its own Windows surface tests make the surface at those multiples (tests/surface.rs: the NVIDIA row and BUSY_ROWS on Windows). command-replay and docs/REPLAY-STREAM.md name the route. Test: new_runtime::tests::each_video_handle_names_its_export_and_layout. |
||
|
|
f6da64ab5d |
Compare no raced lockstep word: the two lockstep cases keep their notices, two validation cases go
Under the identity domains the runtime gives the threads of a SIMD-group no order between barriers, and the planner ruled form A: no order, the static note SimdgroupAccessOrder announced, the order not rebuilt. The words the two lockstep kernels race on are therefore no observation of Metal's that the runtime owes. - conformance simdgroup-lockstep-divergent-loop and -until record no output leaf any more, and the case/output allowance that left it unchecked is gone. Both keep their status and notices sites, with the access-order and the device-reconvergence notice declarations; the divergent loop keeps its counts-half site (what no thread writes, which no order changes), compared exactly. The two recordings lose their output leaf (the 26 lines of it, the rest byte for byte as recorded). The lockstep model and the tests over the recorded words go with the leaf; the two stub tests now prove the cases announce under either note, compare no raced word, and still read a moved counts-half byte as divergent. - validation 129666ac and 4b74b854 (the two authored cases whose observation is a raced word) are deleted with their Metal and MoltenVK observations. authored-compile.tsv keeps their rows until development's re-bless. - docs/CONFORMANCE-COVERAGE.md regenerated: simdgroup_lockstep compares every field. Verified: the compile job named in the lane's report. |
||
|
|
b90e0565da |
The floor: from_queries refuses a push window below 256 bytes, the runtime's floor requires 8 fragment outputs, and runtime-floor replaces the profiles below it
What: Device::from_queries refuses a description whose maxPushConstantsSize is below the 256
bytes every stage's push window is lowered for, with a typed Unsupported{PushWindow} naming the
MaxPushConstantsSize limit (crates/metal2vulkan/src/device/derive.rs, the floor checks of
from_queries). The runtime's floor (metal2vulkan-runtime's floor list) requires
maxFragmentOutputAttachments >= 8. All 15 committed device profiles report 8, and so does every
matrix card.
The committed profile set keeps only devices at or above the floor:
- roadmap-2022 and lunarg-desktop-baseline-2023 are deleted;
- vk12-floor and swiftshader move to profiles/below-floor/, inputs of the from_queries refusal
test only;
- runtime-floor, derived from the runtime's floor by scripts/regen-device-profiles and held
equal to it by a test, is the floor every test compiles on.
A test of a below-floor form now runs on runtime-floor without the feature that form stands in
for, labelled "below the runtime's floor" (pipeline::testing::profile_without, PROFILE_F,
device_f, FORMATLESS_FLOOR). The validation tests name runtime-floor, or derive the device they
need from it (no tessellation, no formatless writes, robustImageAccess alone, no device
addresses).
Why: the runtime refuses every device below its floor, so translating for those profiles tested
forms no device the runtime opens can ask for. A push window below 256 bytes cannot hold what
the lowering puts there.
Consumer check: no public item of a published crate is deleted. The one removed constant,
FORMATLESS_FLOOR's old value, is in the crate-private pipeline::testing.
Not in this change, re-blessed on development: the golden hashes table
(tests::golden_hashes) and the public fixture expectations (tests::public_fixtures_engine). The
runtime-sources pin (candidate::engine::artifact) follows from the test run at this tree.
Verified: cargo fmt. The suites, clippy and the CPU-ICD run are potluck jobs on this tree, named
when the branch is handed over.
|
||
|
|
75c9d080a3 |
YCbCr writes go: a function's writes to a 4:4:4 two-plane YCbCr texture are refused
Metal stores a function's writes to an unpacked 4:4:4 two-plane YCbCr texture into both its planes. The translator held such a slot through an R32G32B32A32_UINT write shadow (StorageImageClass::YCbCrWrite), and a heap's float storage class held such a member through an R32G32B32A32_SFLOAT view of its shadow, flagged in its handle-table entry (FLAG_YCBCR_WRITES). The consumer then encoded the shadow into the planes with bind::ycbcr_write_module. The same module's second mode stored a render pass's YCbCr attachment (FormatEmulation::YCbCrRendered) into the planes. metal2vulkan-runtime refuses every YCbCr texture (Gap::TextureFormat), so neither mode ever ran, but every heap write of a float or half texel through a 2D handle carried the flag's test and select under its own specialization constant. Now a slot that writes such a texture keeps the format's refusal (storage_choice, NotImplemented(Format)), as the other 4:4:4 formats' writes did, and a heap member of one has no storage choice, so the heap refuses it (ArgumentBufferTextures, NotImplemented). A heap write no longer tests the flag, and its handle-table search no longer carries it. FormatEmulation:: YCbCrRendered stays as the pipeline's form: a pipeline into such an attachment is made as before, so no new pipeline-state refusal appears. Its doc now says the pass's store into the planes is not implemented and that the runtime refuses such textures. Removed: - lowering: StorageImageClass::YCbCrWrite (slot.rs's write-only check, emit's ycbcr_write_texel and YCBCR_WRITE_WORDS), the heap mark (heap_ycbcr_mark, HEAP_YCBCR_WRITE_WORDS, Write::heap_ycbcr, lower::texture::heap_ycbcr_writes), AccessPlan::heap_ycbcr_writes, and the YCbCr element mask in heap_element_index. - memory::handles: FLAG_YCBCR_WRITES, HANDLE_YCBCR_WRITES, Lookup's ycbcr field in Flagged and Indexed, carries_ycbcr, ycbcr_writes_spec, ycbcr_flag_mask, ycbcr_element_mask, ycbcr_writes_set, k32_const, and Table's stage (only the YCbCr carry read it). carry takes the form alone. The search tests lose the YCbCr forms and a_search_carries_the_ycbcr_flag_only_under_its_constant. The test tables keep an unused bit 15. - pipeline: SpecKey::HeapYCbCrWrites; HeapStorageReads' doc loses the write shadow. - binder: plan/resources' write-shadow choice, bind::heap's shadow view, its entry flag and the reads_unmeasured case, plan::slots::heap_ycbcr_writes and its two specialization arms (compute and graphics). bind::ycbcr_write goes whole: ycbcr_write_module, YCbCrWriteModule, and the CPU models ycbcr_write and ycbcr_store, along with their tests. bind::ycbcr_convert loses words_buffer and scalar, which only the write module used. - metal::format: ycbcr_writes_stored. The YCbCr, YCbCrRendered, writes_dropped, ycbcr_renders and held_storage_choice docs say what holds now. - tests: engine_heap_ycbcr_writes, engine_extended_range's ycbcr_write_slots_store_each_texel_s_bits_and_mark, and engine_handles' word allowance for the mark (100 words). owned_divisions loses the write module; api_surface loses five rows. SEMANTICS_VERSION 2223 is in this commit (placeholder; main renumbers): every heap write of a float or half texel through a 2D handle loses the mark's code, and the plans of such slots change (a refusal). ARTIFACT_FORMAT_VERSION 566: SpecKey loses HeapYCbCrWrites in the codec. RUNTIME_VERSION 2545: bind::heap's handle-table entry flags lose bit 15. The runtime pin is updated. api_signatures is regenerated, and so is docs/REFUSALS.md (one site fewer for ArgumentBufferTextures and one for Format). Consumer check (consumer-uses.sh, consumer development 12b87d3d6b, 64 refs): YCbCrWriteModule, ycbcr_store, ycbcr_write, ycbcr_write_module, HeapYCbCrWrites, YCbCrWrite, FLAG_YCBCR_WRITES, WRITTEN_BINDING: 0 hits (code). ycbcr_writes_stored: 0 hits on development. It is used on 39 consumer lane branches (steelbrain/quiesce and others, the newest 17 hours old), in crates/reims-vgpu-vulkan/src/gpu/ycbcr/sampling.rs:2527, a test of the old runtime's YCbCr write path. That directory is not on the consumer's development. Verified: nothing yet (a check job is owed). |
||
|
|
1fc878dc12 |
player: count every creation it does not attempt, by selector, reason and root
A call that makes an object on a skipped receiver, or naming a skipped object, made its result skipped without a line: such a pipeline state counted only in skipped_objects or skipped_calls, so a stream's 494 render pipeline states against the play's 493 passed unseen. Each such creation is now counted by its selector and reason (its receiver is skipped, or it names a skipped object), the reason naming the selector that made the chain's first object skipped; each skipped object keeps that root, inherited along the chain and removed at release. The report prints a `not attempted SELECTOR N: WHY, the first #ID (its root #ROOT)` line for each, the counter `not_attempted`, and a line that adds up the pipeline states: render states made, refused and not attempted, and the compute states the same. The existing counts are unchanged. Test: new_runtime::tests::creations_not_attempted_are_counted_by_kind_and_root (a library from source skipped, a function of it, two render states of that function, one refused state). |
||
|
|
f7279104ae |
Emulated meshes go: a device without VK_EXT_mesh_shader refuses mesh and object functions
The planner's ruling: a mesh render pipeline is native or refused. With VK_EXT_mesh_shader and
meshShader (taskShader for an object function), the stages are task and mesh shaders, as before.
The emulation was a second form for devices without them: the object and mesh functions ran as
compute entries, which wrote each threadgroup's vertices and primitives as records into a
per-draw buffer or the command buffer's records pool, and a synthesized vertex stage drew those
records. The runtime never takes that path. Now a mesh or object function on such a device is
refused at lowering (Unsupported{MeshShading}, needing VK_EXT_mesh_shader and the stage's feature
where the profile lacks them), and so is its pipeline. The command line compiles no mesh pipeline
and answers FALLBACK for a mesh or object function on every device, as before.
Removed:
- lowering: lower/mesh/work.rs (the work buffer layout), lower::mesh::emulates, the emulated
compute entries and their wrappers, the record stores, Layout/layout/records/emulated_payload,
the RECORDS/WORK/OBJECT_* slots; MeshPlan's emulated and payload_words. Also dispatch.rs's
WrapperGroups and the wrapper_groups field, emit's GLCompute arm for meshes,
stage_io::flat_primitive_inputs, and the requirement trace's record writes. The payload is
always TaskPayloadWorkgroupEXT (memory::arena::declare_payload). lower::mesh::mesh_stages states
the native test that folds_object_grids reads. The mesh builtins are a const.
- pipeline: MeshRecords, RecordField, RecordValue; GraphicsState::mesh_records and mesh_corners;
StageInterface's mesh_records, mesh_corners and emulated_payload (vk_stage loses its COMPUTE
arm); the synthesized vertex stage (link::mesh keeps the payload check) and link's record
slots and push-range hull; SyntheticBinding::MeshRecords and MeshWork;
RuntimeFact::MeshLastFirst; VariantKey::mesh_last_first. Varyings hold mesh outputs to
maxMeshOutputComponents only. The link contract's compute-entry records check goes, and
compile/api's mesh_info reads the task and mesh limits only.
- binder: bind/mesh_scan (mesh_scan_module, mesh_object_arguments_module, MeshScanModule; its
div_ceil and for_range move to mesh_arguments, their one other reader), MeshDispatch,
MeshGroups, MeshRecordsRegion, DrawCommands::mesh_dispatch, MeshTemplate::records and
RecordsTemplate, GroupStage::Compute (GroupLimits.total is a plain u32), the emulated mesh
stage flags, BindState and BindShape's mesh_last_first, WriteSource::MeshRecords and MeshWork,
and DrawReplayRule::DispatchesFirst. Status: StatusBits::MESH_RECORDS_OVERFLOW,
StatusReport::mesh_records_overflow, MeshRecordsFault, and the words MeshRecordsCursor and
MeshFault{Draw,Objects,Groups}. The buffer keeps its 32 bytes, with SeqCstFences at word 7:
words 3 to 6 are not written, and bit 5 is unreported.
- runtime: the synthesized-stage test no longer reads mesh_records; the SynthesizedStages doc
loses "mesh records".
- tests: engine_mesh's emulated tests (the compute entries, the records pipeline and its object
draws, the last-first variant) are replaced by two refusal tests, one per function and one per
pipeline. The tests that also ran the emulating profiles run the profiles with the extension.
engine_mesh_barriers loses its interpreter run of the emulated object entries; the
round-trip, link and module-sweep fixtures and api_surface lose the rows.
- validation: build.rs's runtime inputs lose lower/mesh/work.rs; a companion test's comment.
The 15 authored mesh and object cases stay untouched. The authored compile census is
re-blessed on development.
Docs: API.md's mesh section states the refusal and loses the emulation's paragraphs, and two
lists lose "an emulated object or mesh function". Varyings docs lose a stale emulated
post-tessellation mention. docs/REFUSALS.md and api_signatures are regenerated. README and the
command's help name no mesh pipeline and need no change.
SEMANTICS_VERSION 2221 is in this commit (placeholder; main renumbers): what the translator emits
for a mesh or object function on a device without the extension changes (a refusal), and the
mesh draws' plans change. ARTIFACT_FORMAT_VERSION 565: the codec loses MeshRecords,
RecordField, RecordValue, StageInterface's three fields, GraphicsState's two, two
SyntheticBinding variants and RuntimeFact::MeshLastFirst. RUNTIME_VERSION stays at this series'
2543. The runtime pin is updated.
Consumer check (consumer-uses.sh, consumer development 12b87d3d6b, 70 refs):
MeshDispatch: 0 hits (code); link-order lists only.
MeshGroups, MeshRecordsRegion, mesh_scan_module, mesh_object_arguments_module, MeshScanModule,
MeshRecordsFault, mesh_dispatch, MESH_RECORDS_OVERFLOW, MeshRecordsCursor, MeshFaultDraw,
MeshFaultObjects, MeshFaultGroups, DispatchesFirst, mesh_last_first, MeshRecords, RecordValue,
mesh_records, mesh_corners, emulated_payload, MeshWork, MeshLastFirst, POOL_WORDS, DRAW_OFFSET,
DISPATCH_OFFSET: 0 hits (code).
mesh_records_overflow: 0 hits on development. It is used on consumer lane branches
(steelbrain/quiesce and others), but only as the name of a local function in
reims-vgpu-vulkan/src/gpu/command.rs, which answers the old runtime's
CommandBufferError::MeshRecordsOverflow. It does not read this field.
Verified: nothing yet (a check job is owed).
|
||
|
|
b14c6a7101 |
Emulated tessellation goes: a device without tessellationShader refuses the function
The runtime's floor requires tessellationShader, so on every device the runtime opens a
post-tessellation vertex function runs through the device's tessellation stages. The emulation
was a second form: it ran the function as a plain vertex stage that drew Metal's tessellator's
triangles itself, from the draw's records, which a compute scan wrote before each patch draw. Now a
device without tessellationShader refuses the function (Unsupported{Tessellation}, needing
VkFeature::TessellationShader), and the command line answers FALLBACK there.
Removed:
- lowering: lower/tessellation/{emulated,tessellator,work}.rs, wrap_entry, Emulation, emulates;
EvalPlan's base_instance and emulated; Declared's emulated globals; the emulated
[[base_instance]] source; PushField::TessellationChunk; stage_io::primitive_id_varying.
- pipeline: EmulatedTessellation, GraphicsState::emulated_tessellation, TessellationStage::emulated,
LoweringInputs::tessellation (and InputsFrom::Vertex's tessellation field and its key bytes),
link's emulated_state, RuntimeInput::TessellationDescriptor, SyntheticBinding::TessellationWork
and TessellationRecords; primitive_id_carried_on is primitive_id_varying_on again.
- binder: bind/tessellation_scan (tessellation_scan_module, TessellationScanKernel,
TessellationScanModule), TessellationDispatch, TessellationRecords,
DrawCommands::tessellation_dispatch, WriteSource::TessellationWork and TessellationRecords,
StatusBits::TESSELLATION_RECORDS_OVERFLOW and RECORDS_FAULTS, StatusReport's
tessellation_records_overflow and TessellationRecordsFault. FactorTemplate keeps only the
control stage: FactorSite goes, and its fields are push_offset and factor_binding, with the
patch index binding always present. The mesh scan's first-fault test reads its own bit. Bit 8
of the status word is unreported.
- tests: tests/tessellator (the emulated tessellator against its model), the emulated tests in
engine_tessellation (now asserting the refusal on profiles without the feature), the emulated
fixtures in api_tests and graphics tests, owned_divisions' scan sweep, and api_surface rows.
The key test keeps its native half: a vertex function's key is the same for every
tessellation state.
- validation: build.rs's runtime inputs lose tessellator.rs and work.rs (factors.rs stays: the
binder sizes factor ranges by factor_bytes). The acceptance and coverage tests expect the typed
refusal on roadmap-2022, vk12-floor and swiftshader.
Docs: README and the command's help say a post-tessellation function needs tessellationShader;
API.md's tessellation section states the refusal; the two tessellation precision notes no longer
mention the emulation; docs/REFUSALS.md and api_signatures regenerated (Tessellation now names
VkFeature::TessellationShader instead of MaxStorageBufferRange).
SEMANTICS_VERSION 2220 is in this commit (placeholder; main renumbers): what the translator emits
for a post-tessellation function on a device without tessellationShader changes (a refusal), and
the vertex key loses the tessellation state. ARTIFACT_FORMAT_VERSION 564: the codec loses
EmulatedTessellation, TessellationStage::emulated and three enum variants. RUNTIME_VERSION stays
at this series' 2543. The runtime pin is updated.
Consumer check (consumer-uses.sh):
consumer: development 7ea4edc2fb; 72 refs (development + steelbrain/* younger than a day)
TessellationDispatch: 0 hits (code); link-order lists only
TessellationRecords, TessellationRecordsFault, tessellation_scan_module, TessellationScanKernel,
TessellationScanModule, TESSELLATION_RECORDS_OVERFLOW, RECORDS_FAULTS, tessellation_dispatch,
TessellationWork, EmulatedTessellation, emulated_tessellation, TessellationChunk,
RuntimeInput::TessellationDescriptor, scan_kernel, max_patch_triangles, wrap_entry, FactorSite:
0 hits (code)
tessellation_records_overflow: 0 hits on development. It is USED on consumer lane branches
(steelbrain/quiesce and others), but only as the name of a local function in
reims-vgpu-vulkan/src/gpu/command.rs, which answers the old runtime's
CommandBufferError::TessellationRecordsOverflow. It does not read this field, and this tree's
runtime has no such error.
Verified: nothing yet (a compile job is owed).
|
||
|
|
158d918e91 |
Flat dispatch goes: a flat or folded variant's indirect dispatch outside a device replay
flat_dispatch_module read an indirect Metal dispatch's arguments on the device and wrote the
record and VkDispatchIndirectCommand a flat (or folded) variant then ran at, for a dispatch
outside the device replay. The runtime never takes a binding plan, and no consumer records the
module. The plan now builds a flat variant's direct Threads dispatch alone (its record is
DispatchCommands::region_record, as before); its indirect dispatch, and any dispatch of a folded
variant, whose records only the device replay's preprocess writes, is
Unsupported{GpuEncodedIndirectCommands, NotImplemented}, already the answer for the variant's
other forms. The device replay keeps its flat and folded variants and flat_dispatch, the
derivation its preprocess shares.
Removed: bind/replay/flat.rs (flat_dispatch_module, FlatDispatchModule, FlatIndirect,
FlatArguments), its tests, and the folded variant's read_records in instantiate_dispatch_into;
the dispatch test now asserts the flat variant's indirect dispatch is refused; the replay
modules' overflow test reads the preprocess alone (its want of 26 already counted the shared
derivation's 23). Records' docs say what they hold now (the Binder doc lost its clamp too).
RUNTIME_VERSION stays at this series' 2543 (the plan's answers change); runtime-sources
re-pinned, api_signatures and REFUSALS.md regenerated.
Consumer check (consumer-uses.sh):
consumer: development 7ea4edc2fb; 68 refs (development + steelbrain/* younger than a day)
flat_dispatch_module: 0 hits (code)
FlatIndirect: 0 hits (code)
FlatArguments: 0 hits (code)
FlatDispatchModule: 0 hits (code)
Verified: nothing yet (compile check owed).
|
||
|
|
53e1535ee3 |
Indirect clamp goes: an indirect dispatch reads Metal's group counts from its buffer
The runtime reads an indirect dispatch's group counts where Metal wrote them (its README: a count above maxComputeWorkGroupCount is the GPU's to read, which Vulkan leaves undefined), and its path never takes a binding plan's clamp prepass. The plan now does the same: an indirect region reads IndirectArgs::Buffer on every device, its use is the 12 argument bytes vkCmdDispatchIndirect reads in DRAW_INDIRECT, and IndirectGroupCount's mechanism is None. Removed: bind/indirect_clamp.rs and its tests (IndirectClamp, IndirectClampModule, indirect_clamp_module), DispatchCommands::indirect_clamp, IndirectArgs::ClampScratch, the template's storage_alignment, Mechanism::IndirectClamp, StatusBits::OVERFLOW (bit 0 stays unused) and StatusReport::overflow. The validation executors lose their clamp checks (compute.rs, replay.rs, device_replay.rs), which valexec confirmed only refused the clamp, and the engine's overflow verdict. The engine_binder harness runs an indirect dispatch from its buffer at counts within the test device's limit. ARTIFACT_FORMAT_VERSION 563 (Mechanism's codec list loses a variant), RUNTIME_VERSION 2543 (the dispatch plan's indirect region and uses change), runtime-sources re-pinned, api_signatures and REFUSALS.md regenerated. Consumer check (consumer-uses.sh): consumer: development e6414dd601; 70 refs (development + steelbrain/* younger than a day) IndirectClamp: 0 hits (code) IndirectClampModule: 0 hits (code) indirect_clamp_module: 0 hits (code) ClampScratch: 0 hits (code) indirect_clamp: 0 hits (code) OVERFLOW: 0 hits (code) StatusReport: 0 hits (code) StatusBits: 0 hits (code) SEMANTICS_VERSION 2219 is in this commit too: the artifact records IndirectGroupCount's mechanism, which moves from IndirectClamp to None (the planner's rule: an emitting commit carries its own bump); main renumbers it at the landing. Verified: nothing yet (compile check owed). |
||
|
|
193a9a6e95 |
Builders, batch 3: the resolve draws, the visibility combine and the texture shadow's modules go
color_resolve.rs (color_resolve_modules and its format, channel, rule and source types), depth_stencil_resolve.rs (depth_stencil_resolve_modules, DepthPick, ResolveWrite and the draw types), visibility_combine.rs (visibility_combine_module, VisibilityCombine, ContinuedResult) and the texture shadow's four files (shadow_merge_module, shadow_merge_image_module, shadow_merge_kept_image_module, shadow_copy_back_module, shadow_copy_in_module and their types): no non-test code outside them names any of their items (the runtime, the harness, validation and conformance included; test items stripped one by one, wherever they lie), and no plan, variant key or lowering input asks a consumer to run them. They go with their tests, re-exports, api_surface rows and owned_divisions builds. Metal's sRGB resolve tables (SRGB_RESOLVE_LINEAR, SRGB_RESOLVE_THRESHOLDS) move into the tile test, their one reader, as private constants with their measured docs. depth_stencil_copy's binding map loses the resolve draws' arm. bind's module map, metal/format/word.rs and the msaa_word_formats probe's note no longer name the resolve. The runtime-sources table drops lower/arith/extended_range.rs, which only the color resolve reached, and its SPIR-V builder row no longer names the visibility resolve. No run or translation changes (nothing called them): the versions stay; api_signatures, REFUSALS.md and the runtime pin are regenerated. Consumer check: ~/.cache/m2v-orch/consumer-uses.sh, consumer: development b7929d6936; 73 refs (development + steelbrain/* younger than a day), 0 hits for color_resolve_modules ColorResolveFormat ColorResolveModules ResolveChannel ResolveRule ResolveSource SRGB_RESOLVE_LINEAR SRGB_RESOLVE_THRESHOLDS depth_stencil_resolve_modules DepthPick DepthStencilResolveDraw DepthStencilResolveModules ResolveWrite visibility_combine_module ContinuedResult VisibilityCombine VisibilityCombineModule shadow_copy_back_module ShadowCopyBackModule ShadowTexelView shadow_copy_in_module ShadowCopyInModule shadow_merge_module ShadowMergeModule ShadowMergeStores shadow_merge_image_module shadow_merge_kept_image_module ShadowMergeImageModule ShadowMergeRead (ColorResolveFormat, ResolveSource and DepthPick appear in link-order lists only). |
||
|
|
46cd581525 |
Builders, batch 1: thirteen bind files no code names go with their tests
dynamic_views, extended_canonical, extended_shadow, icb_reset, pages_copy, plane_bytes_copy, plane_copy, plane_words, rotate_texels, rows_copy, tiled_texels, ycbcr_refresh and ycbcr_sample: no non-test code outside each file names any of its public items (the runtime, the harness, validation and conformance included), so each file goes whole, with its tests, its re-exports, its api_surface rows and its owned_divisions builds. The docs that named them say what is true now: bind's module map, the depth clamp's tiled-texel note, the written-flag docs (a consumer may reset only the flagged records), the input shadow's runtime file, conformance's two-plane note. The runtime-sources row of lower/arith/extended_range.rs names the color resolve, which still reaches it, in place of the deleted half-shadow load. No behaviour of a run or a translation changes (nothing called them), so neither RUNTIME_VERSION nor SEMANTICS_VERSION moves; api_signatures, REFUSALS.md and the runtime pin are regenerated. Consumer check: ~/.cache/m2v-orch/consumer-uses.sh, consumer: development 62b3227c74; 67 refs (development + steelbrain/* younger than a day), 0 hits for DynamicViewsModule dynamic_views_module ExtendedShadowModule extended_shadow_module IcbResetModule icb_reset_module PagesCopyModule PagesCopy pages_copy_module PlaneWordsModule plane_words_module RotateTexelsModule rotate_texels_module RowsCopyModule rows_copy_module TiledTexelsModule TiledLevelMove tiled_texels_module YCbCrRefreshModule ycbcr_refresh_module YCbCrSampleModule ycbcr_sample_module; consumer: development 62b3227c74; 68 refs, 0 hits for ExtendedCanonicalModule extended_canonical_module extended_range_canonical PlaneBytesCopyModule plane_bytes_copy_module PlaneBytes PlaneSource PlaneCopyModule plane_copy_module. PlaneRows: its hits are the consumer's own `struct PlaneRows` (reims-vgpu-video's vaapi/va/frame.rs:333, re-exported from vaapi.rs), none of them ours. |
||
|
|
13dc7d47fc |
DriverWorkaround goes: its two every-device variants are the static notes they named
Every profile took both variants (Device::from_queries listed ClippedCoverageNotMetals and TessellatorNotMetals for every device, since no query tells Apple's rasterizer or tessellator apart), so the enum, ProfileFields::workarounds and DeviceProfile::workarounds() carried no choice. The two notes are recorded unconditionally where the workarounds gated them: PrecisionNote::ClippedCoverageSplit for a multisampled read of the coverage or a centroid varying at the pixel (lower::fragment::coverage), and PrecisionNote::TessellationTriangleOrder on every tessellation evaluation stage (link::tessellation::note_evaluation_stage, which no longer takes the profile). The notes' docs, derive.rs's and API.md's say every device records them because no query tells Apple's apart. The tests that asserted the list go; validation's identity test compares the two drivers' profile fingerprints instead. api_signatures.tsv is regenerated (four rows go); REFUSALS.md unchanged; the api_surface row goes; the runtime sources' pin follows. Emitted code is unchanged; the profile's fingerprint moves with its fields. Consumer check: ~/.cache/m2v-orch/consumer-uses.sh at reims development 62b3227c74, 66 refs (development + steelbrain/* younger than a day). DriverWorkaround: 0 hits (code). ClippedCoverageNotMetals: 0 hits (code). TessellatorNotMetals: 0 hits (code). note_evaluation_stage: 0 hits (code). A fixed-string grep for `.workarounds()` over the same 66 refs finds 0. Verified: nothing yet; the gate follows. SEMANTICS_VERSION 2218 is in this commit: the two variants become static precision notes and the profile loses its workaround list, so notes and keys move (the planner's rule: an emitting commit carries its own bump); main renumbers it at the landing. |
||
|
|
f6b9aa2a3d |
docs: CONFORMANCE-COVERAGE.md re-derived for the line ties' ledger rows
python3 -I scripts/conformance-coverage/coverage.py at this branch: the ledger's count goes from 7478 to 7490, and the twelve primitive-type-restart-indices rows join its table. |
||
|
|
107dba0b33 |
runtime: lines by Bresenham's rule, bresenhamLines on the floor
Metal covers the pixels whose diamond a line exits. Vulkan's default line rule is the device's own: on a device whose strictLines is set (lavapipe, NVIDIA's driver), the rectangle of the line's width. The new runtime chained no line state, so primitive-type-restart-indices' four Line and LineStrip cells differed from Metal on lavapipe (m3-max-60347) and on the RTX 2080, 3090 and 5080 (round |
||
|
|
83ca8337dc |
Fix forward of 74080bbaed: the lockstep cases declare the access-order notice; the landing numbers
- The simdgroup_lockstep cases also loosen the notices site by simdgroup-access-order (replay::notice_allowance). The site holds the whole announced set, and the walk loosens it only where an allowance covers it, so the output's allowance alone left that site divergent. The stub test the_lockstep_cases_justify_their_words_by_the_access_order_note failed on exactly that (m3-max-60440). - SEMANTICS_VERSION 2217 and ARTIFACT_FORMAT_VERSION 560, the numbers main gave for this landing. - docs/CONFORMANCE-COVERAGE.md re-derived: the case's tolerance is now a Degradation. |
||
|
|
fd7e029718 |
translator: a kernel whose lockstep pairs the identity domains leave unordered records SimdgroupAccessOrder
Under the identity domains (the runtime's) the translator puts no barrier between two accesses that different threads of one SIMD-group make to the same bytes between barriers, which an Apple GPU orders by running the group in lockstep. The Metal Shading Language calls such a pair a data race, and docs/API.md lists the difference as accepted. Until now that difference was silent. Two private validation kernels through the runtime on lavapipe (129666ac, 4b74b854) mismatched for this reason alone. The same translation with the lockstep order put back (probe 61461f3a67, not landed) matched Metal byte for byte in both (job m3-max-60389). - PrecisionNote::SimdgroupAccessOrder, a static note that names the Metal behaviour. It is recorded for every kernel in which the translator finds such a pair, on every device under the identity domains. The resident-table domains order each pair with barriers and record none. - lower/simd/lockstep.rs: OrderKey::of gives every profile a key. Under the identity domains the key orders nothing (unordered): order() runs the pair search alone, stops at the first space with a pair, inserts no barrier and sets Lockstep::unordered. select records the note from it. ordered_entry loses its None arms. The found entry is kept under its key in StageEntries, as an ordered one is. - Announced as metal2vulkan-degrade-simdgroup-access-order (the conformance Degradation kind). docs/API.md's catalogue entry is placed beside the accepted difference, which now names the note. The conformance simdgroup_lockstep cases justify their output words by that notice, so the runtime's side does not announce it undeclared. Validation derives no tolerance from it (Allowance::Unbounded). - SEMANTICS_VERSION 2212 -> 2213 and ARTIFACT_FORMAT_VERSION 557 -> 558 (the appended codec variant); renumbered at landing. api_signatures.tsv regenerated (the variant twice and Lockstep.unordered). docs/REFUSALS.md does not move. Tests: the identity-domains lockstep test now asserts that each row-store kernel records the note under the identity domains and not under the resident ones. A new pair-free kernel (each thread its own word) records it under neither. A conformance stub test checks that a changed output word, with the notice announced, reads announced. |
||
|
|
ab6717c5b2 |
Re-derive the generated documents at the landing tip
They are generated from the whole case set, and the set grew on `development` while this branch was in flight, so the copy committed here counted a smaller one. Verified: regenerating at this tip leaves no change beyond the `Generated at` stamp. |
||
|
|
3653240b57 |
runtime: a point-size function's state is refused under the line and triangle class
Metal's pipeline creation fails for a vertex function that writes `[[point_size]]` under the line
or the triangle input primitive topology class ("Vertex shader writes point size but
inputPrimitiveTopology is MTLPrimitiveTopologyClassLine", measured on an M3 Max, macOS 27.0.1,
the conformance crate's topology_classes probe), and makes it under the point and the
unspecified class. The runtime made all four, so the round's
topology-class-point-size-function on the RX 7900 XTX recorded render-pipeline:line and
:triangle true where Metal recorded false, and drew lines and triangles Metal never drew
(drawn:, target:line and :triangle).
RenderCompiled::of now refuses such a state with the new
Refusal::PointSizeTopology { class }, read from the translator's graphics.writes_point_size and
the descriptor's class, before any Vulkan object is made. The descriptor key already covers the
class, so a cached content of another class never answers for it.
The ledger's row for the case's drawn:unspecified refusal ("a draw with Points is not built") is
stale: points are drawn now, and the round reports it no longer refuses. Dropped.
The runtime README's point bullet states the refusal and the 1.0 stored for a size not greater
than 0 (the previous point-size commit); docs/REFUSALS.md regenerated and the api_signatures
table blessed (one variant row).
Test: draw's every_device_refuses_a_point_size_function_under_the_line_and_triangle_class
(`draw_point_size_class`): rt6_point's state is refused with the class under Line and Triangle and
made under Unspecified and Point.
|
||
|
|
e8bcb0c317 |
API.md: recommended_enables takes no policy since the policy arms went
Verified: docs only; the call matches enables.rs's signature. |
||
|
|
ba63cf58ca |
Policy arms: the enables tests import DevicePolicy themselves (clippy 59962); docs name what is bounded
The enables module no longer names DevicePolicy, so its tests import it. API.md and VALIDATION.md say the default domains' bounds, and an unbounded threadgroup access, instead of containment and isolation. api_signatures.tsv is regenerated (signatures.py --bless); REFUSALS.md is unchanged. Verified: clippy follows as a potluck job. |
||
|
|
313c94e52c |
Policy arms, part 3: the API guide says what is bounded, not that a guest is contained or isolated
Verified: nothing yet; clippy and doc follow. |
||
|
|
f473ccdb72 |
runtime: a pass resolves into a colour texture of any usage, as Metal does
Metal resolves into a texture of any usage. Probe resolve_texture_usage.m (M3 Max, macOS 27.0.1, job m3-max-59768) showed this, and a guest's walk met it twice: a map view's 900x900 pass resolves a 4-sample BGRA8Unorm_sRGB colour, beside a 4-sample Depth32Float_Stencil8 and with every load Load, into a 1-sample BGRA8Unorm_sRGB Shared texture of ShaderRead usage. The runtime refused that as RenderPassKind::ResolveUsage and skipped the pass, so the view missed its drawing. Form A, as ruled: every one-sample colour texture (2D, 2D array or cube) whose image is optimal now takes the colour attachment usage on every device where its format renders, whatever Metal's usage. A pass resolves into it by Vulkan's own resolve, as into a render target. - texture.rs plan() sets Plan::resolves for a one-sample colour texture of those types made without the attachment usage, where the format's features hold the attachment (plan.supported). The optimal image's format query runs with the usage. Where it refuses the image or the image does not fit the texture's samples, extent and layers, the image is made without the usage. Plan::image_usage gives image_info and the texture's Image the usage. Such a texture is no render target: it takes no feedback usage or shadow for attachment reads, and a pass that renders into it is still Refusal::AttachmentUsage. - A linear image in place over a buffer (linear_usage, check_over, linear_layout, the plane checks) is unchanged. It takes no attachment usage for a resolve alone, so it stays in place and is never copied to gain one, and a resolve into it stays ResolveUsage. A texture over a buffer in its own optimal image (the counted copy) takes the usage like any optimal image, and the pass's write of it is copied back as a render target's is. - pass.rs resolve() reads the image's own usage (TextureObject::resolve_attachment) in place of Metal's. ResolveUsage remains for an image with no attachment usage: a depth or stencil texture (macgaps measured no depth format), a colour texture of another type or of a format the device's optimal image does not render, and a linear image in place. Memory: macgaps' table (jobs m3-max-59774, m3-max-59775, m3-max-59776) shows the worst pair on the Radeon 780M (RADV): a 1920x1080 one-level RGBA8Unorm image grows from 8,847,360 to 8,896,512 bytes (1.0056). On the RX 550 the same image reaches 8,882,200. The Iris Xe, RTX 3090, llvmpipe and KosmicKrisp show no growth. Docs: RenderPassKind::ResolveUsage, resolve_texture's doc and the runtime README's resolve paragraph and known gap say what is true now. docs/REFUSALS.md regenerated (the attachment view's function is now attachment_view). No public signature moved. Tests (lavapipe): every_device_resolves_into_a_texture_of_shader_read_usage is the probe's case. A 4-sample BGRA8Unorm_sRGB attachment cleared to (0.25, 0.5, 0.75, 1) is resolved into a 1-sample Shared texture of ShaderRead usage, and of ShaderRead | ShaderWrite. The image has the attachment usage, Metrics::resolves rises by one, and every texel reads the clear colour within one code. A depth resolve into a ShaderRead Depth32Float texture is ResolveUsage. A ShaderRead texture over a Shared buffer in place has no attachment usage, and a resolve into it is ResolveUsage. every_device_resolves_a_loaded_pass_beside_depth_and_stencil_into_a_shader_read_texture is the walk's shape: 900x900, colour beside a 4-sample Depth32Float_Stencil8, every load Load, resolving what an earlier pass cleared. The old check that ShaderRead and ShaderRead | ShaderWrite resolves are ResolveUsage is gone, since both now resolve. |
||
|
|
569b32b49a |
RuntimeDriverDefect goes: an identity-keyed table no runtime code reads
The enum listed 33 defects of named drivers in commands a runtime records, keyed on the driver's
identity and release (rule 2). The runtime constructs none and reads none: no crate of ours, and
none of reims's, names a variant. With it go Needs::RuntimeDriverDefect,
Unsupported::runtime_driver_defect, validation's UnsupportedReason::DriverDefect ("driver_defect"
keys; the stale census rows that carry one go at the next re-bless), the conformance verdict's
device-gap arm, the error and engine key tests' entries, the API guide's Needs entry and the
refusal surface script's constructor.
Since nothing reads a variant, no ladder rung follows from one: no site becomes a precision note or
a typed gap. The four docs that cited a variant now state what Vulkan or the module does without
it: the depth/stencil copy modules (maintenance8's copies), the generated-commands replay (the
explicit preprocess form, which the runtime does not take), the validation executor's set-layout
query note (MoltenVK's understated answer), the pipeline-cache probe's comments (MoltenVK compiles
a seeded cache's shaders at load), and SeparateMultisampledDepthStencil's refusal (maintenance8
alone).
NativeHalfConversion's bound adds NVIDIA 620.70.06's measurement on the RTX 3090: the pair is
dropped under the 16-bit RTE, DenormPreserve and SignedZeroInfNanPreserve too, every float that is
no half coming back unchanged over all 2^32 inputs. The bound already covered no rounding at all.
REFUSALS.md and api_signatures.tsv regenerated.
Verified: nothing yet; the gate follows.
|
||
|
|
6750bb3c74 |
validation: run plain kernel cases through the runtime's public API
The engine candidate's Vulkan executor runs a kernel case of buffers (device buffer arrays included), threadgroup memory, function constants and linked functions, dispatched by threads or threadgroups and observing a buffer, through metal2vulkan-runtime as a consumer runs it (engine::runs_through_runtime decides it from the case's structure; platform::execute_runtime runs it): Instance, the loader's first device of the kind, Device with the default options, the library and function from the row's AIR with the case's constants and linked functions, one compute pipeline state, one Shared buffer per binding as the oracle makes it (a bound buffer padded to its declared size), one compute encoder, one dispatch, the bounded wait and the readback. Only on the native backend, in the stated leg and without a profile restriction; every other case keeps the executor's own context until its family's landing. The device worker enables VK_LAYER_KHRONOS_validation for the run through the loader's and the layer's variables (core and synchronization validation, every message, one log per process); a device with no active validation tool fails the run, and so does any logged message. The pipeline state's make is held to 500 MiB of peak live allocations (worker::alloc::bounded: an allocation past it ends the process with exit 87 and a stderr line) and 20 s; the driver's creation to the case's bound; every pipeline is made before the submission (prepare_dispatch). The row keeps what the runtime answers: the state's precision notes and the runtime fingerprint (engine::runtime_fingerprint: the product, SEMANTICS_VERSION and the runtime crate's sources, METAL2VULKAN_RUNTIME_CRATE_FINGERPRINT from build.rs). spv_sha256, the status, the census module's subgroup shape, containment and artifact are absent (Option, serde default); the index's staleness accepts the runtime fingerprint as this build's. ReductionOrder: the comparison keeps the note's per-operation allowance. The census strategies of a runtime row are the simdgroup float sums and products the case's AIR calls (check::interface::float_reductions, from the entry's module and each linked module), under the names the translator's strategy census gives them, so ComparisonClass::derive bounds the same operations with the same reorder table as before; a note no such operation explains (a simdgroup matrix's) stays unbounded, as before. ENGINE_EXECUTOR_ABI v185: rows of these cases record another environment and census. |
||
|
|
88a5a8d641 |
matrix: the golden table and the runtime without the old-runtime wording
The golden hash table compiles through Device::from_queries (docs/ VALIDATION.md already says so), not Device::new, so the matrix's comments and its problem message say that. The gate keeps its behaviour under its own name: results.golden_table_moved (was old_path_moved), GOLDEN_FIX (was OLD_PATH_FIX), and the leg's problem "GOLDEN TABLE MOVED" (was "OLD PATH MOVED"), with VALIDATION.md's line and the test following. The "new runtime" of results.py's and instructions.tsv's comments is now the runtime. Unchanged, because readers depend on them: the exemption phrase "old-runtime regression fix" (matched in the subjects of commits since the table's last bless), and the record keys harness-new/, harness-new-warm/, harness-gpu-new/ and harness-alone/<row>/<pair>/new, which the harness prints from its --runtime value and which the 60 stored notes under refs/notes/matrix hold: a base's records are compared key by key, so renamed keys would compare nothing against every stored base. |
||
|
|
7be3a0326b |
Restore ArgumentBufferLayout::from_descriptors: the consumer's newArgumentEncoderWithArguments: layout
The orphan pass (
|
||
|
|
82abe62334 |
Fix forward: the API signature table and REFUSALS.md at the dead-variant batch's landing over the orphans
The dead-variant batch (cutxlate-dw) and the translator orphans (cutcheck) deleted items on both sides: the orphans removed CompensatedViewport, is_permanent_for and the ViewportCompensation path; the batch removed the offset-0 class (ZERO_OFFSET_CLASS, ZERO_OFFSET_TOLD, storage_view_buffers), Needs::DriverDefect and the dead DriverWorkaround variants. The landing's rebase kept both deletions, so the generated tables are regenerated from the merged sources: scripts/api-signatures/signatures.py --bless and scripts/refusal-surface/refusal_surface.py. Verified: both scripts ran on the merged tree; the table holds no ZERO_OFFSET row. |
||
|
|
8252854871 |
SEMANTICS 2208 for the dead driver variants; the runtime pin, REFUSALS.md and api_signatures follow
SEMANTICS_VERSION 2208: the batch changes what a module holds on devices that took the deleted variants (the clipping notes and the denormals note on every device, one serializer form, a constant slot's storage view, the half rounding bound) and no longer defers discards or guards helper branches anywhere. runtime-sources.sha256 moves without a RUNTIME_VERSION bump: the binder's edits in the batch drop forms no plan reaches (the uniform texel view's class, the offset-0 class no consumer set, the mesh limit's always-zero staged bytes), so it binds every plan it can be handed as before. REFUSALS.md and api_signatures.tsv are regenerated (signatures.py --bless, refusal_surface.py). Verified: nothing yet; the gate follows. |
||
|
|
201fcfe1f0 |
The offset-0 class goes: no storage view declares RangeAtBindOffset since its workaround went
PushReadsLengthenThreadPayload was the only reason a storage view declared SpecKey::RangeAtBindOffset, and lower::access now declares it for a uniform view alone. What told offset 0 apart for such a view had no reader left: StageTable::zero_offset_views, bind::ZERO_OFFSET_CLASS and ZERO_OFFSET_TOLD, PipelineInterface::storage_view_buffers, and the storage arms of range_at_bind_offset. No crate of ours or the consumer's names them (the runtime never set zero_offset_views). They go, with the test of the storage form, the offset class test's offset-0 half, the validation executor's line that set every slot's bit, and the API guide's paragraph. range_at_bind_offset answers false for a storage view: it reads at its residual. Verified: nothing yet; the gate follows. |
||
|
|
3656f31676 |
DriverWorkaround keeps the two answers every device takes; the driver-defect refusal goes
DriverWorkaround held 26 variants; Device::from_queries takes only ClippedCoverageNotMetals and TessellatorNotMetals, on every device, and the batch's earlier commits removed every reader of the other 24. They go, and the enum's docs now say what it is: a device answer that no Vulkan query tells apart, noted on every device. Needs::DriverDefect and Unsupported::driver_defect named a DriverWorkaround measured on a driver's identity. No site constructs it any more; they go, with their arms in the permanence match, the validation engine's outcome map and its key test, the conformance verdict's device gap, the error tests and the refusal surface script. Docs that named deleted variants are rewritten to what the code does now: the f32 denormals in an entry that declares the 16-bit float controls are the device's own on every device; the stage bound is the one bound a kernel's plan is held under; the uniform view is a Uniform block (the texel form went with ExternalUniformReadsSkipACache); the Intel venues' note no longer claims the RPL-P's profile takes a workaround. Verified: nothing yet; the gate follows. |
||
|
|
fda94462c8 |
Fragment, mesh, memory: the dead driver variants' readers go
Since the fact tables went, Device::from_queries gives every device the same two workarounds (ClippedCoverageNotMetals, TessellatorNotMetals), so every reader of another variant tested a fact no profile carries. Deleted with their now unreachable forms, each changing what no device emits: - EarlyTestsDropMultisampledImageWrites (MoltenVK on Apple's GPU): the framebuffer fetch's per-sample refusal and its 'dropped' arm (fetch.rs), the imageblock's late-tests form and its two refusals (imageblock.rs, ImageblockPlan::late_tests), the input shadow's arm. The device test every_device_keeps_an_early_tests_fragments_texture_writes_at_four_samples (runtime, lost_writes) holds the defect's shape on every device. - MemoryWritingFragmentsRunPerSample (MoltenVK): CoverageLoop::DriverRunsPerSample, the coverage plan's driver_runs and writes, its refusal, link's sample-shading exception, the codec tag and engine_coverage_loop's per_sample_defect. Held by every_device_runs_a_memory_writing_fragment_once_per_covered_sample. - BothBarycentricFormsRejected: the stage interface's refusal of a second barycentric form. - MeshIndexComponentStoresMisplaced (lavapipe before Mesa 26.2, below the floor): the staged index words, their declaration, stores, write-back and workgroup bytes (stage_workgroup_limit's staged argument). - BufferAtomicsUncontained (SwiftShader, below the floor): contain::atomic_encoding and DeviceProfile::checks_atomics_in_shader, which validation's out-of-bounds contract read; an atomic is contained as every other access is. - DiscardDropsSimdgroupStores (MoltenVK on Apple's GPU, SPIRV-Cross's optnone helpers): the deferred discards (discard.rs late_discards, Reach::FLOAT, the census name fragment.discard.deferred), spirv::helper_branches whole (its guard, fences and census entries), and the notes DiscardDropsSimdgroupStores and HelperBranchDropsSimdgroupStores with their codec tags, conformance degradations, validation allowances, API.md entries and the engine_fragment test of the uniform branch. The rch_helper_* fixtures stay, compiled as written everywhere, their README rows saying so. Held by every_device_keeps_the_texture_writes_beside_a_discard_after_a_texture_sample. The three runtime device tests are in tests::lost_writes, passing on lavapipe (m3-max-59701). |
||
|
|
912bf785ce |
Simdgroups: the vertex grouping note goes, with its fact's reader
The planner's ruling: no VertexSimdgroupGrouping. lower/simd recorded it for a vertex function's simdgroup or quad operation where the stage takes no required subgroup size and the profile carried DriverWorkaround::VertexGroupingNotApples (ANV's 8-vertex interleaved subgroups); no profile carries that variant since the fact tables went, so it was recorded nowhere. The note, its reader (regroups_vertices), its codec tag, its conformance degradation and code, its validation allowance, deferral and bound text, API.md's catalogue entry and the engine_simd and c3 tests that named it go. The public surface moves with this commit and the batch's earlier ones: the api_signatures table (regenerated by signatures.py) drops PrecisionNote::VertexSimdgroupGrouping (the translator's and the runtime's re-export), Feature::PixelCoverage and Feature::CentroidVarying (link's split refusal), and DescriptorView::UniformTexel (the views' rung 1); REFUSALS.md (regenerated) drops the two features, and the reach table their rows. |
||
|
|
5f425db68f |
Half rounding: no form keyed on a folded conversion pair; the note's bound is the floor's worst
quantize_form took the controlled conversion pair (QuantizeForm::Controlled) under the 16-bit float controls except on a profile carrying DriverWorkaround::HalfConversionPairFolded (NVIDIA's driver folds the pair even under the controls), which took QuantizeForm::Converted. No profile carries that variant since the fact tables went, so every device with the controls already takes the pair, and the planner's ruling is rung 4 with no quantize form for it: the pair stays the one form, and PrecisionNote::NativeHalfConversion, recorded on every device that rounds through it, states the worst a floor device does, which its doc already lists: no rounding at all (the RTX 3090's drop of the pair, lavapipe's), its differences compounding and a value past the half's range staying finite until a half store narrows it. Validation's allowance for the note is Unbounded and the conformance suite loosens no value by it (NATIVE_NOTES declares the notice alone), so both already follow that bound. The readers' docs (narrow.rs, compile.rs, half_hold.rs, arith/mod.rs, blend.rs, artifact.rs, API.md, HOWTO.md, engine_native_half's expected form) drop the two variants' names (HalfConversionPairFolded, and HalfConversionFusedWithArithmetic, docs only) and say what the drivers do in plain words. No module changes on any from_queries device. |
||
|
|
daa7287637 |
Fragment: the clipping notes on every device; link's split-pixel refusal goes
QuadsSplitByClipping is recorded on every device, by the function's structure alone: a fragment
function that runs a quad or simdgroup operation over its active lanes (counts_active_lanes)
records it, with no fact test. A device may shade a triangle it clips as several triangles, and no
Vulkan query tells such a device apart; the note's doc and API.md's catalogue say so and link no
workaround.
Link's split_pixel_fragments refused, in a pipeline of more than one sample, a pixel-rate
fragment function that reads [[sample_mask]] (Unsupported{PixelCoverage}) or a centroid varying
(Unsupported{CentroidVarying}) where the profile carried
DriverWorkaround::ClippedTrianglesSplitPixelFragments. Since the fact tables went, no profile
carries that variant (Device::from_queries gives only ClippedCoverageNotMetals and
TessellatorNotMetals), so the refusal never fired: deleting it changes what no device emits. The
function, its module doc and the two Feature variants only it named go.
ClippedCoverageSplit now also covers the centroid arm: a fragment function compiled for a
multisampled pipeline that reads a centroid float varying and runs once per pixel (no sample
index, sample-qualified varying or memory write) records it where ClippedCoverageNotMetals holds
(every from_queries device): its centroid is the whole coverage's where Metal's may be a piece's.
One that runs per sample reads the varying at its own sample, which no split moves.
Tests:
- engine_fragment's a_fragment_group_operation_records_the_clipping_split_on_every_device: on
every committed from_queries profile, fragment_discard_msl22's discard_simd (simd_sum) records
QuadsSplitByClipping and discard_terminate does not.
- engine_coverage_loop's a_multisampled_centroid_reader_at_the_pixel_announces_the_split:
air_2_1_front_end's a21_blit_fs (a centroid uv) records ClippedCoverageSplit at 4 samples and
not at 1; multisample_centroid_at_sample (per sample) records nothing at 4.
Validation's c3 and two conformance comments say the note is on every device.
|
||
|
|
4bc57a20e3 | WIP orphans: ResidentPart, the harness's simdgroups assert, and the docs that named deleted items | ||
|
|
92ce7950fc |
Docs: "the runtime", not "the new runtime"
There is one runtime, so the prose of the harness, validation, devtools,
the translator's lockstep module, .config/nextest.toml and the refusal
surface and conformance coverage generators says "the runtime"
(scratch newrt.py: a word replacement, identifiers such as new_runtime
and NewRuntime untouched). docs/REFUSALS.md and
docs/CONFORMANCE-COVERAGE.md are regenerated from the edited scripts.
Four harness passages said the runtime makes no heap and no texture
over a buffer, and has no Managed mode. The runtime has all three
(Device::new_heap_buffer and heap textures, Buffer::new_texture,
Device::new_managed_buffer); the harness's own backend refuses the two
texture sources. They now say the harness makes neither on the runtime,
and the Managed note names Device::new_managed_buffer. The refusal
strings keep the words the harness's described test matches ("makes no
heap", "makes no texture over a buffer").
Left: three fixture comments (.metal under validation's public
fixtures, whose text keys the golden tables and the committed AIR) and
scripts/matrix, whose keys (harness-new) carry the same naming.
Verified locally: the refusal surface, Metal coverage, conformance
coverage and API signature checks pass.
|
||
|
|
233fae4b20 |
Docs: the translator's Device comes from Device::from_queries
The translator's Device has one constructor, Device::from_queries; the Device::new its docs named is gone. Each mention in the translator's comments and in docs/VALIDATION.md now names from_queries. Three passages contrasted the two constructors over a `half` color output: under Device::new a device enabling storageInputOutput16 received it as a 16-bit `half` (StageIo::half_outputs). The stage plan declares no output 16-bit (lower/stage_io/plan.rs: `let half = false`), so every device receives the output widened to `float`, as docs/API.md section 9 already says. The stage_io docs and the two blend precision notes in pipeline/artifact.rs say so, and the M3 Max measurements of the 16-bit form, which no device now takes, are gone from those notes. VALIDATION.md's golden-table paragraph named the old runtime's path; it now says the table compiles through Device::from_queries. Comments and docs only; rewrapped paragraphs move only line breaks. |
||
|
|
089072932f |
Re-derive docs/CONFORMANCE-COVERAGE.md: mesh_commands loosens nothing
The conformance coverage check of 8977049e3f (job m3-max-59750) found the generated document stale: mesh_commands no longer loosens its unordered attachment, so the counts of modules and tolerances fall by one and the module's row reads "every field". Regenerated with scripts/conformance-coverage/coverage.py; nothing else moved. |
||
|
|
7f8320758e |
rt README: a pointer the guest supplies is used as given, a known gap
A known gap beside the no-isolation and device-loss entries: a pointer loaded from memory or made from an integer, null included, is a device address used as given, with no binding bounding its accesses. One that names no live buffer is undefined in Metal; here it reads or writes what the device holds there, or faults, and a fault ends as the device ends it, up to a device loss every guest process shares. What is bounded is a buffer argument's access at a run-time offset (a load outside reads zero, a store does nothing); a constant-offset access is not checked. docs/API.md's identity-domain paragraph says the same of such a pointer, so the default policy's "containment and isolation on" is not read as holding under the runtime's domains. Checked against the code: the runtime takes PointerDomain::Identity (runtime device.rs translator()) with the default Contained containment and isolation On; under identity a loaded pointer's accesses carry no bounds (lower/access/mod.rs psb_contained, false under identity; dynamic.rs base_with and wide_at, where only bounds select a sink) and count no miss (dynamic.rs plan_misses); a slot access at a non-constant offset is checked (mod.rs note_variable, identity_contained) and one at a constant offset is not; outside, a load reads ZeroAddress and a store or atomic runs nothing (emit.rs prepare). Docs only. |
||
|
|
2e72020cb7 |
conformance: name the accepted differences section 10 now holds
The section 10 rewrite deleted three entries the conformance suite reads at test time. Each comes back in what the runtime does now, and the cases name them: - "A barrier over the render targets orders what it names, as a Mac2 GPU's does" keeps its lead-in (pass_start_reads' MAC2_BARRIER), split back out of the merged attachment-read bullet. - "A draw that reads its own pass's color attachment with no barrier reads, at the pass's first such draw, what the load and the draws before it rendered" is the no-barrier entry; DRAWN_WITHOUT_BARRIER names its slug, and the module docs cite the runtime's README instead of the deleted fence.rs, snapshot and attached-read copy paths. - "The runtime answers as a Mac that keeps no texture compressed" replaces the device-class entry; replay's WITHOUT_COMPRESSION names it, and the docs of it, Allowance and Venue::lossless_compression drop the deleted DeviceProperties::lossless_compression and WorkCounts names. mesh_commands loosened its unordered-draws attachment by an entry for the runtime's mesh emulation, which is gone: the runtime builds no mesh pipeline (its README, known gaps of render pipeline states). The case now loosens nothing, and its docs say so. The two document-reading tests take kept entries: one lead-in that wraps and a one-line control. Verified: a scratch check of every slug the conformance sources name against section 10 finds only case and site names. The gate runs on the range. |
||
|
|
d678983c47 |
API.md section 10: the accepted differences the runtime has
Section 10 was mostly the deleted runtime's accepted differences. Each bullet was checked against the code: 111 of its 150 blocks go, 2 are rewritten, and the rest are kept with their stale names fixed. Gone, because the runtime has no such feature or now refuses what the bullet described: indexed draws past their buffer (refused), mesh and object grids, the pipeline pool and general forms, binary archives and dynamic libraries, the old resource ID allocator and its placements and counts, indirect command buffers, blit copies across formats and short rows (refused), commits as failed, GPU hang and fault codes, the Mac class a device presented, Metal's own heap answer and the old heap rules, sparse and tiled textures, texels past a buffer (refused), textures over IOSurface planes of other shapes, the row-padding device check, the imageblock length, mesh pipelines, process exit with a live device (supported on no device), and the converted formats the runtime does not make (two-plane YCbCr, padded 10-bit, copies-only). Rewritten: a nil, stale or forged resource ID reads the null element (zeros, the default sampler); a draw that reads its own pass's attachment reads what the runtime ordered before it, with the Macs' disagreeing answers kept (two bullets became one). Fixed in kept bullets: the runtime does not refuse an unspecialized function's state (it makes it); the required threadgroup size bullet loses tile states and a deleted refusal; the Managed copies follow the device-copy rule; README section names and "new runtime" wording. The translator-side bullets (function constants, linked functions, conversions, inline assembly, kernels) are kept, each checked in the code it describes. Notes with file:line kept outside the tree. |
||
|
|
8f96185b17 |
API.md section 9: each note as every device now records it
Every device profile comes from Device::from_queries (DeviceProfile::of is crate-private), which takes no measured driver deviation, no measured Metal property and only two workarounds, ClippedCoverageNotMetals and TessellatorNotMetals, on every device. Section 9 still described the measured routes: "not on a driver whose ... (DriverFact::...)", "but on a profile that takes DriverDeviation::...", "**Exempt:** ...", and MoltenVK's own sampler, functions and NaNs. - DriverFact, MacClass, HalfChainPolicy, YCbCrInPlacePolicy and WorkCounts mentions go: none exists. - A note whose only exception was a measured deviation is now stated as recorded on every device: the resolve, snorm and shared-exponent tile stores, depth denormals, device transcendentals and denormals, interpolation, fragment simdgroups, alpha coverage, looped sample outputs, device sampling, texel and vertex conversion, the native maths notes, half and NaN conversion, pack conversion, colour conversion, sRGB decode, cube gradients and half texels. - A note whose condition is only a workaround, deviation or property no profile takes now says it is recorded by no device: QuadsSplitByClipping, VertexSimdgroupGrouping, ComputedSampleDepth (the multisampled in-shader depth test is not implemented there), DiscardDropsSimdgroupStores, HelperBranchDropsSimdgroupStores, NotMipmappedAnisotropicFilter. - CappedLodBias names SamplerUse::lod_bias, which a consumer sets; the runtime sets it nowhere. - Measured device bounds and behaviour (MoltenVK, RADV, ANV, NVIDIA, lavapipe figures) stay. Each gate checked in the code it names; notes with file:line kept outside the tree. Edited bullets rewrapped to 100 columns. No test reads docs/API.md. Verified by: git grep of every backticked Rust path left in section 9 against the code (only Metal's own names remain unmatched). |
||
|
|
66e8f70882 |
replay player: the m2v.privateBytes snapshot path goes; the unsnapshotted count stays
What, deleted: - Backend::snapshots, and its answers on the runtime backend (false) and the tests' mock; - Player::without_snapshots and the player's snapshots flag, and command-replay's --snapshots yes|no option; the device line is now `device NAME runtime rt`; - the split around a named dispatch (split, blit_between, the player's own objects and the open-encoder tracking it needed), the snapshot compare, Snapshot, Around and sized; - Report's private, splits and split_executed, with the `private ...` and `split N executed` lines, and PrivateBytes with its re-export; the covered and receivers lines lose their always-zero snapshot range counts; - Covers::meets, which only the split used. Kept: the records are still read ahead, with the same check of their form and that each names an earlier call. Each dispatch they name plays as the program made it and counts on the `unsnapshotted` line. Tests: the split test goes. The two no-snapshot tests become one that checks the named dispatch plays as recorded and is counted, and one that checks a record naming no earlier call stops the play. The covered and receivers tests take the new line text. Docs: REPLAY-STREAM.md drops the option, the snapshot wording, the `private` line and the bytes before as a write path, and says what the player does with the records now. Why: the runtime backend is the only one left, and it answered snapshots() false, so on every play the split, the compare and their report fields could not be reached. Only the mock reached them. How verified: the lane's compile gate with the validation suite on lavapipe. |