bcc417bc086c2ccb0719c839dad15bfaacc856e2
8520
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
bcc417bc08 |
Translator: SparseResidency's text names a footprint of the border alone
PrecisionNote::SparseResidency said the device's OpImageSparse* residency may count a texel of zero weight Metal does not. Public case fd292944c2 (a 256x128 r32_float sparse texture with x 128-255 mapped) found a second way the device's word differs: lavapipe answers not resident for a clamp_to_border access whose footprint is the border alone (nearest at u -0.5 and 1.5, linear at u -0.5, -1/256 and -1/512, gather at u -0.5 and 1.5), where Metal answers resident, beside a mapped edge too. Every value word was equal; 7 of 200 residency words differ (valexec2's proof m3-max-61595, decoded against the committed Metal rows). Vulkan states only "whether any texels accessed by the instruction are sparse unbound texels" (vkspec 20.2.6), so the word is the device's, which the note's first clause already says; its text now names this case beside the zero-weight texel, in the doc comment and in docs/API.md's catalogue. Doc only: no emission, key or version change. |
||
|
|
55e5dcfd98 |
Fix forward of 4e3a6a3555: the translator's floor tests take shaderOutputLayer as the floor's
|
||
|
|
f3418eacb9 |
rt: shaderResourceMinLod is enabled where the device reports it
A sample's min_lod_clamp other than 0 has one form in the translator, SPIR-V's MinLod image operand, which needs shaderResourceMinLod; without it the translator refuses the function (Feature::MinLodClamp). rt enabled the feature on no device, so every such function was refused at creation. floor: MIN_LOD_CLAMPS holds shaderResourceMinLod, in the step rates' shape: device creation enables it where the device reports it, the translator's profile gets it through shader_enables, and a device without it keeps the typed refusal. No answer chooses a second form. Venues (vulkaninfo): every dumped venue reports it but the UHD 630's Windows driver (m3-max-48736): RADV on the RX 7900 XTX, the three 780Ms and the RX 550, NVIDIA's driver on the RTX 2080, RTX 3090 and RTX 5080 Laptop, ANV on the Iris Xe, lavapipe and KosmicKrisp on the M3 Max (m3-max-48727 to 48731, 48737 and 61508). Docs: the runtime README's Min-LOD clamps section with its feature table, and the render pipeline states' known gap for a device without it. docs/REFUSALS.md regenerated: no change (the refusal is the translator's and did not move). Tests: floor's host test the_min_lod_clamp_is_enabled_where_reported (unreported, reported), the README tables, and the device test min_lod.rs: engine sampling's sample_min_lod draws over a 16-texel texture of five levels, one colour each, under a linear mip filter; its derivatives make the level of detail 0, so the clamp of 1.5 alone makes every pixel read levels 1 and 2 half and half (green and blue within two codes of 128), or the state is refused naming MinLodClamp where the profile lacks the feature. |
||
|
|
2977599dab |
rt: the missing-feature test's array holds its 54 cases
The case added for depthBiasClamp (the commit before last) made 54 cases in an array declared of 53, so the runtime's lib test did not compile (E0308 at tests/floor.rs:373, suite m3-max-61653 on msi). The declared length is 54, REQUIRED's count. Verified by the rerun, named in the report. |
||
|
|
d6d7d43f7f |
Validation: the runtime-floor contexts' opened chains with depthBiasClamp
The runtime-floor profile states depthBiasClamp (the commit before), and validation's enables open it where a profile states it, so each of the profile's four contexts enables one member more (42 to 43, 40 to 41, 50 to 51, 47 to 48); every other profile's chains are unchanged. Verified: bless_opened_chains at 50ace64a2d, job m3-max-61650 (msi), rewrote exactly these four lines. |
||
|
|
a529fb658e |
rt: the floor's depthBiasClamp has its missing-feature case, and the runtime-floor profile states it
The floor requires depthBiasClamp (the first commit of this change). The runtime's each_missing_feature_is_named gains its case, as its count of cases is held to REQUIRED's. The regeneration's RUNTIME_FLOOR and runtime-floor.json's m2v_runtime_floor block state it, in the generator's order (the block the runtime's the_floor_profile_states_exactly_the_floor holds equal to floor.rs; check_device_profiles: 0 findings over 17 profiles; the JSON line is written as the regeneration writes it, without refetching its pinned sources). CONFORMANCE-COVERAGE is regenerated for the ledger row render-state-depth-bias left (7688 rows to 7687). The runtime-floor contexts' opened chains move with the profile; their bless is the next commit. Verified: suite m3-max-61635 at 406f39dc90 (msi; the workspace suite and the lavapipe device tests) failed exactly these three, each_missing_feature_is_named (52 cases against 53), the_floor_profile_states_exactly_the_floor (depthBiasClamp) and the coverage document; the rerun follows. |
||
|
|
7dc3840095 |
conformance: the device's depth bias is among the suite's native notes
render-state-depth-bias compares on rt now that a clamp is built. On the RTX 3090 every value matched Metal's recording, and the case was divergent at the notices site alone (m3-max-61583): its biased draws announce metal2vulkan-degrade-device-depth-bias (RenderCommandEncoder::DEPTH_BIAS_NOTE), which no case declares. The note is the device's own answer, its slope measure and unit, the class replay::NATIVE_NOTES holds for every case (owner rule 1), so it joins that list; it loosens no value, and the case's depths still compare field by field. |
||
|
|
84821b1f00 |
rt: the floor test's device at the floor reports depthBiasClamp
depthBiasClamp joined REQUIRED in the commit before; at_the_floor, the device every floor host test starts from, sets each required feature by hand, so without it every such test met a device below the floor. |
||
|
|
6ef64ae3ee |
rt: a depth bias's clamp is the device's own
setDepthBias:slopeScale:clamp: bounds the bias by its clamp: "Pass a positive or negative value to limit the largest magnitude of a positive or negative bias, respectively. You can disable the bias clamping functionality by passing 0.0" (Apple's page for the method, as fetched). Vulkan's depthBiasClamp is the same bound (dbclamp: x for 0, min(x, clamp) above 0, max(x, clamp) below). rt refused every clamp but 0 (DrawKind::DepthBiasClamp), where the deleted runtime passed it. floor: depthBiasClamp joins REQUIRED. Every dumped venue reports it (vulkaninfo m3-max-48727 to 48731, 48736, 48737 and 61508 for the RX 550: RX 7900 XTX, the three 780Ms, RTX 2080, RTX 3090, Iris Xe, RTX 5080 Laptop, llvmpipe, the UHD 630's Windows driver, KosmicKrisp on the M3 Max, RX 550), and Vulkan 1.4 and Roadmap 2022 require it. render encoder: set_depth_bias keeps the clamp beside the bias and slope scale and records it in vkCmdSetDepthBias, as dynamic state (no pipeline). It returns nothing now, as Metal's call does: its only error was the clamp. DrawKind::DepthBiasClamp is deleted. The consumer's checkout names both: rt_platform/render.rs:380 (`e.set_depth_bias(...)?`) and rt_platform/unbuilt.rs:873 (a test's sample refusal of DepthBiasClamp); each needs a one-line change at its next pin. AGENTS.md: the Scope sentence on features no guest has used is replaced with the planner's wording: a feature a program can ask about is answered from the Vulkan query; one Metal gives every Mac device with no way to ask is built, a typed refusal in the known gaps until it is. Docs: the README's floor table, its depth bias paragraph and its render encoder known gaps; docs/REFUSALS.md regenerated (Draw's basis and sites); api_signatures.tsv blessed (the setter's signature, the variant gone). The conformance ledger drops render-state-depth-bias's refusal row. Tests: every_device_tests_writes_and_biases_a_depth_attachment's first draw is biased by 2^23 (0.25 or 0.125 in the device's unit at depth 0.25) clamped to 0.0625, and the depth read back is 0.3125 on every device; the later draws' answers are unchanged in kind. The conformance case render-state-depth-bias (a slope-scaled bias under the clamp -0.0125) now compares against Metal's recording. |
||
|
|
5a7c262577 |
Fix forward of 6af76cf309 and 1d16171943: the tests of both aspects and of a ulong row take the runtime's limits
The compile gate of the lane (m3-max-61592) failed five validation tests that these two commits left stale. SeparateDepthStencil ( |
||
|
|
e7c92ed005 |
Fix forward of cca476549f: a one-sample depth/stencil attachment takes no texture index
Family G made a one-sample depth or stencil attachment through the
runtime at a texture index of the run's grant. The runtime gives an index
exactly where shaders reach a texture (Device::new_texture): a depth or
stencil target of RenderTarget usage alone is not reached, and an index
given to one is refused (Refusal::TextureIndex, "a texture no shader
reaches takes no index"). Every routed case with such an attachment
failed at the make: public c5749a970e (match before) and one private
case (mismatch before) in the family G proofs (m3-max-61598, 61611). The
attachment is now made at no index, and the grant counts the color
targets alone.
Correction of cca476549f's message. It expected 18 one-aspect cases to
run through the runtime. 2 do, the depth-only ones. The 16 stencil-only
cases' fragment functions all write [[stencil]], which the runtime
refuses at creation (its README's known gaps of render pipeline states,
"a fragment function's stencil output"), so they are recorded as
not_supported{device_capability_missing:StencilExport}.
The device test a_fragment_case_writes_its_depth_and_stencil_attachment
drew both aspects through the runtime under fragment_depth_stencil,
whose stencil output the runtime refuses, and so could not pass on
Linux. Its runtime arm now draws each aspect alone as the executor's own
context draws it: depth under sample_rate_depth (0.125 at one sample) and
stencil under fragment_no_writes (the state's reference replaces it),
equal to the executor's own run. It also checks that
fragment_depth_stencil through the runtime is a typed StencilExport
refusal. Without the fix, both drawn arms fail at the make.
Verified: cargo fmt. The compile gate and the device test on lavapipe
follow as potluck jobs.
|
||
|
|
6af76cf309 |
Validation: separate depth and stencil attachments are the runtime's limit
A fragment case whose depth/stencil attachment holds both aspects is
drawn by the Metal oracle into Metal's separate Depth32Float and
Stencil8 textures, attached to one pass: plain Metal on every Mac. The
runtime does not build that form yet. It renders into no separate depth
and stencil textures in one pass (Gap::RenderPass of DepthStencilViews,
and its pipeline state Gap::RenderPipeline of DepthStencilFormats), both
among the known gaps its README states. The planner's ruling: record
these rows as the runtime's limit with that typed gap, by the
function-table mechanism; the doc comment states the gap as unbuilt in
the runtime, not as Metal's.
ToolingRequirement::SeparateDepthStencil ("separate_depth_stencil"):
Limit::Runtime, it stops the engine's candidate and keeps its cases
Metal-qualified (qualifies_on_metal). The case checker raises it from
the case's literals (executor_contract::case_requirements: a vertex or
fragment case's depth/stencil attachment with both initial aspects),
never from a source's structure, so no census row carries it.
executor_contract.rs is a classifier input, so every cached triage
recomputes. If the runtime builds the form, the requirement goes in the
same commit.
What lost execution: of the committed cases, 5 fragment cases hold
both aspects: the 3 of family G (one sample, observing stencil) and 2
multisampled ones (family H), all of which ran on the old executor
until now.
Tests: requirement.rs's
a_separate_depth_stencil_attachment_stops_only_the_candidate and both
requirement lists; executor_contract's case test (a fragment case's
attachment of one aspect raises nothing, of both raises it alone).
Verified: cargo fmt; the compile gate follows as a potluck job.
|
||
|
|
cca476549f |
Validation: a draw's depth/stencil attachment of one aspect runs through the runtime
Family G. A render case with a depth/stencil attachment stayed on the executor's own context. A vertex or fragment case whose attachment has one sample and one aspect now draws through the runtime (engine::runs_render_through_runtime), observing a buffer, a texture, a color target, the attachment's aspect or nothing; a fragment case with the attachment and no color target renders, as the attachment is the pass's. The attachment is made as the oracle makes it (Metal's separate Depth32Float and Stencil8, Shared, of RenderTarget usage): - a Depth32Float is filled by a draw of its depths (runtime_depth), as a 32-bit float depth texture is, since the runtime takes no upload of one (Gap::FloatDepthUpload); a depth outside [0, 1] stays DepthOutsideUnitRange; - a Stencil8 is written from its bytes with replace_region. The pass loads and stores it; the draw's depth-stencil state, stencil references and pipeline depth and stencil formats were already the oracle's. The final aspect is read back with get_bytes into the run's RenderFinals, from which the depth or stencil output is selected. An attachment of both aspects is the oracle's two textures, which the runtime renders into in no one pass (Gap::RenderPass of DepthStencilViews; its pipeline Gap::RenderPipeline of DepthStencilFormats): such a case, and one of more samples (family H), stays on the executor's own context. Rows: of the committed cases, 21 fragment cases are family G's (one sample, the rest of E/F's structure): 16 stencil-only observing stencil, 2 depth-only (one observing depth, one, private, a color target), and 3 of both aspects observing stencil, which stay where they were. Expected: the 18 one-aspect cases run through the runtime; the family G proof reads them. ENGINE_EXECUTOR_ABI to vulkan-engine-v195. Tests: a_plain_draw_and_only_one_runs_through_the_runtime (a depth or a stencil attachment, observed or not, routes; one of both aspects or of 4 samples does not); the device test a_fragment_case_writes_its_depth_and_stencil_attachment draws each aspect alone through the runtime on Linux (depth 0.5 over 1.0, stencil 7 over 0xab). Verified: cargo fmt; the compile gate and the family G proof follow as potluck jobs. |
||
|
|
1d16171943 |
Validation: a 64-bit texture atomic is the runtime's limit
The translator lowers an atomic_min or atomic_max on a Metal ulong
texture to a 64-bit image atomic, which needs shaderImageInt64Atomics.
The runtime's floor enables no 64-bit image atomic on any device
(floor::Features has no such structure, and shader_enables tells the
translator only of the floor's features), so a pipeline that calls one
is Error::Translation of Unsupported{ImageAtomics} on every device.
Metal's feature set tables give the form to the Apple8 family and later
("GPU devices in the Apple8 family support 64-bit atomic minimum and
maximum using ulong, on both buffers and textures, only on macOS"). The
planner's ruling: the consumer's device claims no Apple family on any
host, so no guest following documented Metal reaches the form, as with
render function tables; the rows close as the runtime's limit with their
typed refusal, by the mechanism of the fence and function-table rows. It
re-opens if the consumer's family claim gains every Apple7 piece and
this is what holds Apple8 back, or when a guest meets it in a walk. The
requirement's doc comment and the README's gap line state the feature
set tables' basis.
Cherry-picked from cf3b11c0a8 (steelbrain/valexec2-ulong) onto
|
||
|
|
9a28de4736 |
Validation: an indexed draw past its index buffer is the runtime's limit
The runtime refuses an indexed draw whose indices leave its index buffer
as Refusal::IndexBufferOffset, as Metal's validation stops the draw
(render_encoder's draw path checks offset + count * size against the
buffer's length; the runtime's README states the refusal among those
Metal's validation makes). A case that declares a draw's index buffer an
out-of-bounds target is such a draw, so no run through the runtime draws
it. The planner's ruling: record these rows as the runtime's limit with
that typed refusal, by the function-table precedent.
ToolingRequirement::IndexBufferPastEnd ("index_buffer_past_end"):
Limit::Runtime, it stops the engine's candidate and keeps its cases
Metal-qualified (qualifies_on_metal). The case checker raises it from the
case's literals (executor_contract::case_requirements: an out-of-bounds
target of OutOfBoundsResource::IndexBuffer), never from a source's
structure, so no census row carries it. executor_contract.rs is a
classifier input, so every cached triage recomputes.
What lost execution: of the committed cases, the 2 public index-buffer
cases d900a10225 and da4185d2a2, which ran on the old executor's padded
copy until now. The old executor's padded index copy is now reached by
no committed case; it goes with the old executor's tables.
Tests: requirement.rs's an_index_buffer_past_its_end_stops_only_the_candidate
and both requirement lists; executor_contract's case test (a vertex
case's index-buffer target raises it alone, an attribute-buffer target
raises nothing).
Verified: cargo fmt; the compile gate follows as a potluck job.
|
||
|
|
67b55af6ff |
Fix forward of 00e254ac29: the identity-domain containment test borrows what it builds
Gate m3-max-61407 at 34d8eb4826 (an earlier form of
|
||
|
|
4e465d811a |
Validation: a draw's attribute-buffer out-of-bounds target runs through the runtime
A render case with an out-of-bounds target stayed on the executor's own
context. A vertex or fragment case whose every out-of-bounds target is
an attribute buffer now draws through the runtime
(engine::runs_render_through_runtime), and its facts are read before the
state is made (runtime_bounds::drawn): the translator's compile of the
state's descriptor on the runtime device's own translator
(Device::compile_render_pipeline, whose stage inputs are the ones the
runtime lowers each stage under, render_pipeline_key of the variant key
its state takes), read by engine::draw_out_of_bounds_run, which now takes
the translator Device for its policy.
The runtime's floor enables no buffer robustness: its README states that
a vertex fetch outside its buffer returns what the device gives. So
fixed-function vertex input on a profile without buffer robustness is
contained as vertex-input:unchecked (Check::Unchecked; it was an Err,
"which contains nothing"), and the case is refused before the make as
not_supported{uncontained:unchecked vertex_input}. A contained target of
such a draw would need guards around its vertex buffers, which the draw
does not place, so it is refused as executor_not_implemented; no routed
case reaches that.
Rows: of the 4 render out-of-bounds cases, 01b45f7c10 (a vertex
attribute fetched past its vertex buffer) is expected to move from the
old executor to not_supported{uncontained:unchecked vertex_input}. The 2
index-buffer cases (d900a10225, da4185d2a2) stay on the executor's own
context: the runtime refuses indices past the buffer
(Refusal::IndexBufferOffset), as Metal's validation does, which the
facts do not state yet. The control-point case a95f41be73 is a
tessellation draw, which stays there too. On the old executor, the
robustness-off leg's fixed-function attribute target is now the same
refusal instead of a failure.
ENGINE_EXECUTOR_ABI to vulkan-engine-v194.
Tests: a_draws_targets_are_contained_by_their_fetch (every committed
profile contains the fixed-function attribute, unchecked exactly where it
checks buffers in the shader, which a committed profile does);
a_plain_draw_and_only_one_runs_through_the_runtime (an attribute target
routes, an index-buffer target does not).
Verified: cargo fmt; the compile gate and the family D proof follow as
potluck jobs.
|
||
|
|
00e254ac29 |
validation: an out-of-bounds target is contained as its module's domains decide
containment read a module's facts as if every device took the resident
table and the handle table. The runtime's device takes the identity
domains (DevicePolicy), so a kernel case through the runtime whose target
is a buffer an argument buffer points to, or an argument buffer's texture
array, failed: the module has no resident roots and no handle table.
ModuleFacts now carries the policy of the device the module was compiled
for (Device::policy: the runtime's translator, the executor's own device,
and DevicePolicy::default() for the committed tier profiles, which are
made with it).
- Under the identity pointer domain a pointer loaded from memory is the
address it holds, used as given: the runtime's README states that an
access through a pointer loaded from memory is not checked. Such a
target is contained as device-address with the new Check::Unchecked,
and out_of_bounds_run refuses every case with an unchecked target
before the make, as NotSupported::Uncontained with the new `unchecked`
forms (serde default):
not_supported{uncontained:unchecked loaded_pointer}.
- Under the identity handle domain an argument buffer's texture-array
index is the resource id's index masked onto the descriptor arrays
(the new Medium::ResourceId, resource-id:shader), whose elements no
live texture owns are null descriptors: its read rule is
ResidentTexels, as the handle table's.
ENGINE_EXECUTOR_ABI to vulkan-engine-v193.
Rows: the family D proof at
|
||
|
|
2e4495e8ae |
Fix forward of 47f804e943: the rt variant test reads each placement's fields
A stage's PushPlacement lists its fields (PlacedField); the test read a field of the placement itself (E0609 under --cfg m2v_gpu and m2v_cpu_icd in gate m3-max-61250). Verified: cargo fmt; the gate follows. |
||
|
|
fc168d0173 |
Validation: a render function's visible function table is the runtime's limit
The runtime's render pipeline state reads no function table: its make refuses a vertex or
fragment function that calls through one as Gap::RenderPipeline{DrawInput}, a known gap its
README states. Function pointers from a render pipeline are an Apple6-family feature, which Metal
lets a program ask for through supportsFunctionPointersFromRender; the planner's ruling is that
the consumer's device answers no to it and to supportsFunctionPointers, so the refusal is Metal's
own and the rows close as the runtime's limit with their typed refusal, by the mechanism of the
fence and mesh rows.
ToolingRequirement::RenderFunctionTable ("render_function_table"): Limit::Runtime, it stops the
engine's candidate and keeps its cases Metal-qualified (qualifies_on_metal). It is raised from the
source's structure, a vertex, post-tessellation vertex or fragment function's
visible-function-table argument (executor_contract::engine_source_requirements), and from a
vertex or fragment case's bound function table (case_requirements). executor_contract.rs is a
classifier input, so every cached triage recomputes.
What lost execution: of the committed cases, 22 vertex cases bind a function table, all with
private sources and none public: the 2 of family E/F's private selection that failed through
the runtime (vertex.function_tables, DrawInput), and 20 that ran on the old executor. No
fragment case binds one; a kernel's still runs.
Tests: requirement.rs's a_render_function_table_stops_only_the_candidate and both requirement
lists; executor_contract's source test (a vertex function's visible_function_table argument
raises it, a kernel's or a mesh function's does not) and case test (a vertex or fragment case's
table raises it, a kernel case's does not).
Verified: cargo fmt; the compile gate follows as a potluck job.
|
||
|
|
34c8f0e67c |
Validation: a kernel out-of-bounds case runs through the runtime, its facts every lowered variant's
A kernel case with out-of-bounds targets now routes through the runtime like any other kernel
case of its structure (engine::runs_through_runtime no longer excludes one). Before the state is
made, platform::runtime_bounds lowers each KernelVariant of the case's kernel on the runtime
device's own translator (rt::Device::translator), under LoweringInputs::kernel_variant of the
inputs kernel_inputs_read gives the descriptor's: the inputs the state lowers each of its modules
under, which the runtime's own test pins. A variant the translator refuses is one no dispatch runs.
Each lowered module's facts (its slots, fetches, resident roots, handle table and strategy
census) give the run's out-of-bounds facts through engine::out_of_bounds_run, as the executor's
own context reads its module's. Where two variants give different facts, which module a dispatch
runs would decide the case, so it is refused before anything is made:
NotSupported::Uncontained now carries the variant that differs (None for the device's robust
forms, as before), "not_supported{uncontained:variant PartialThreadgroups}".
Each guarded target (a buffer, or an argument buffer's) is a buffer at the runtime's placement
alignment inside a Shared block of its own, between guards of its declared reach (at least
MIN_GUARD), every guard byte GUARD_FILL, read back through a buffer over the whole block after
the dispatch: GuardCount::escaped, and past_end 0 (the buffer is all its bound memory). The
row's census records the facts with the counts.
Texture-buffer cases stay on the executor's own context (the runtime makes no texture buffer),
and so do the render out-of-bounds cases (vertex fetches); stage inputs do not route.
Tests: the routing test asserts an out-of-bounds kernel case routes; the device test
a_device_buffer_accessed_past_its_end_is_contained_through_the_runtime runs the public
ob1_storage_buffer case through the runtime (loads past the source read zero, stores past the
output do nothing, no guard byte changes, each target DeviceAddress / Shader). ENGINE_EXECUTOR_ABI
vulkan-engine-v192. docs/VALIDATION.md says how the facts are read.
Verified: cargo fmt; the compile gate and lavapipe suites, then the family's proof, follow as
potluck jobs.
|
||
|
|
47f804e943 |
Translator: a kernel variant's lowering inputs come from LoweringInputs::kernel_variant; rt answers its translator
rt's kernel state lowered its partial-threadgroups and emulated-SIMD-group variants under inputs it assembled by hand: a clone of the plain module's inputs with one flag set. Validation's executor is to lower the same variants on the same device to read each module's containment of an out-of-bounds target, so the assembly moves into the translator as the one constructor both call: KernelVariant (Plain, PartialThreadgroups, EmulatedSimdgroups; ALL) and LoweringInputs::kernel_variant, applied to the inputs kernel_inputs_read gives. rt's Compiled::of and its translate tests' helpers call it. metal2vulkan-runtime's Device::translator returns the translator device creation built, the one every state lowers on. It retains nothing new (it borrows Core::translator) and has no Metal counterpart. One rt device test pins the agreement: for icb_replay_grid_template (its plain module checks the store at a computed index, SlotBounds of buffer 1, and leaves the two constant-offset loads of buffer 0 unchecked) and gsm2_simd_products' simd_float_products, every lowering a first device kept in its cache directory is found under the key of one variant's public inputs, byte-equal to Device::translator's compile_function of that variant, and at least as many are found as the states made modules. Surface: api_surface names KernelVariant (N); api_signatures blessed (8 records added, none changed or removed); docs/API.md and the runtime README's compute-state section say how a consumer lowers a variant. No public item is removed, so no consumer search applies. Verified: cargo fmt; the compile gate and the runtime's device tests on lavapipe follow as a potluck job. |
||
|
|
0dc56519c9 |
translator: the identity domains push a render pass's length to a vertex function that writes its slice
Under the identity domains a vertex function that writes [[render_target_array_index]] was refused as IdentityDomains (an encoder value the function reads as RenderTargetArrayLength): the field was not among the encoder values those domains push. The runtime now fills it (the pass's length, at least 1, rt's FieldValue::RenderTargetArrayLength), so the field joins the admitted pushed values, beside AlphaTestReference and FetchedColor; nothing else of the form changes. Found by the runtime's layered device test, which refused rt6_layered on every GPU leg at 912548d4db (m3-max-61476, 61477, 61478, 61480, 61481, 61486, 61490) and on lavapipe (61482). SEMANTICS_VERSION 2235, one above development's 2234 (placeholder): such a vertex function now compiles where it was refused. lower/select.rs and cache/mod.rs are not among validation's runtime inputs, so runtime-sources.sha256 and RUNTIME_VERSION stay. A test pins the form on lavapipe's profile (engine_identity_render), and docs/API.md names the pushed length. |
||
|
|
aba05588dd |
rt: the runtime floor's opened chains with shaderOutputLayer, and the README's uniform index
The runtime-floor profile's four contexts each enable one more member, shaderOutputLayer (bless_opened_chains at feea4e88ac, job m3-max-61470; the other profiles' chains are unchanged). The README's layered-rendering gap line states which indices the translator shows the same at every vertex of a primitive (StageIo::uniform_outputs): constant memory and the draw's instance, never a per-vertex input, and that the vertex-function refusal is at creation, whatever pass. |
||
|
|
4e3a6a3555 |
rt: layered rendering in one form, the vertex function storing Layer in every pass
`RenderPassDescriptor::render_target_array_length` is Metal's `renderTargetArrayLength`. A pass
of length N of 2 or more is one rendering of `layerCount` N: every attachment and resolve texture
is a view of its level and N slices from its own `slice` (a 2D array view; a cube's faces are its
slices), and the rendering's load, store and resolve cover every layer, with no per-layer loop.
At 0 and 1 the pass renders the attachment's slice alone, as Metal's does.
A vertex function's `[[render_target_array_index]]` has one form: the variant that writes
`Layer`, in every pass. Each draw pushes the pass's length, max(len, 1)
(`FieldValue::RenderTargetArrayLength` for the translator's `PushField::RenderTargetArrayLength`),
and the function stores 0 for an index at or past it, so at 0 and 1 every index renders the
attachment's slice. The fragment function reads the raw index through the flat varying the
translator carries. The runtime never asks for `VariantKey::dropped_vertex_layer`; a state whose
fact is `RenderTargetArrayLength { layer_dropped: true }` is refused as a draw input. What still
uses `dropped_vertex_layer`: the old binder (`bind/graphics.rs:905`, the variant it asks for at a
shape's length), stage_io's plan (`lower/stage_io/plan.rs:1600` and `:2305`, also the
non-layered amplification), and the validation crate's engine tests
(`candidate/engine/graphics/tests.rs:907`); it stays for cutxlate to delete.
`shaderOutputLayer` joins the floor's required features: every probed device reports it
(vulkaninfo, jobs m3-max-61359 on gem10: the 780M, the RX 550 and lavapipe; 61360 on um790: the
RX 7900 XTX, the RTX 2080, the 780M and lavapipe; 61361 on um870: the 780M, the RTX 3090 and
lavapipe; 61362: KosmicKrisp, Mesa 26.3.1; 61366: the UHD 630's Windows driver, Vulkan
1.3.215). A device without it gets the floor's refusal. The runtime-floor profile and its
generator gain it.
Refused, in the README's layered-rendering gap line: an attachment or resolve texture with fewer
slices from its own than the pass's length (`Refusal::AttachmentPlace`, naming the last slice); a
3D texture's depth planes (`TextureType`, as for every 3D attachment); a length past
`maxFramebufferLayers` (`RenderPassKind::ArrayLength`, new:
VUID-VkRenderingInfo-layerCount-07817); a draw that reads one of a layered pass's attachments
through a texture on a device without the feedback loop (`AttachmentRead`: a shadow holds one
layer); and a vertex function whose index the translator cannot show the same at every vertex of
a primitive, at creation, naming `LayeredRendering` and `geometryShader`: Vulkan requires one
`Layer` per primitive (VUID-VkPipelineShaderStageCreateInfo-stage-02596), the translator's other
form is a geometry stage device creation does not enable, and Metal calls a differing index
undefined. The feedback-loop move's ranges around the rendered layers (`around`) take the
attachment's layer count.
The conformance runtime side passes the length; the case `layered-render-target-array-length`
loses its ledger row. REFUSALS, METAL-COVERAGE and CONFORMANCE-COVERAGE regenerated; the API
table gains the field and the kind.
Test: `tests::layered`, on every device of the cfg's kind: a 2D array's slices 1 to 3 with an
index past the length, a cube's six faces, a pass of length 0 and one of length 1 whose vertex
function writes index 3 (rendering the attachment's slice, the fragment reading 3), every slice
read back; and `rt6_first_vertex`'s per-vertex index refused naming `LayeredRendering`.
|
||
|
|
3ddca91746 |
Bless at the pin tip 72e1754218: golden tables, compile census and the render key
The pin the consumer takes for barycentrics ( |
||
|
|
72e1754218 |
rt: the barycentric extension's doc names its feature without a private link
Rustdoc -D warnings (m3-max-61354) refused the public BARYCENTRIC_EXTENSIONS's link to the crate-private BARYCENTRICS. |
||
|
|
81223fe020 |
rt: barycentrics are enabled where the device lists and reports them
A fragment function that reads [[barycentric_coord]] has one form on the floor: it
reads the device's own weights, BaryCoordKHR or BaryCoordNoPerspKHR. rt enabled
VK_KHR_fragment_shader_barycentric on no device, so every such function was
refused at creation (Barycentrics), where the deleted runtime enabled it.
floor: BARYCENTRIC_EXTENSIONS holds VK_KHR_fragment_shader_barycentric, and
BARYCENTRICS its fragmentShaderBarycentric. Device creation enables both where the
device lists the extension and reports the feature, and neither otherwise, the
border swizzle's shape, so Device::extensions names the extension only with its
feature; the consumer's two barycentric answers follow that list. The feature
structure joins Features (read only where listed), the translator's profile gets
the extension and the feature through shader_enables, and device creation (and the
floor test's copy of it) chains the structure where the extension is enabled. No
answer chooses a second form: the translator's geometry-stage form needs
geometryShader, which device creation does not enable, so a device without the
feature keeps the typed refusal.
Venues (vulkaninfo, rtenable's probes): NVIDIA on the RTX 3090, RTX 2080 and RTX
5080 Laptop, and RADV on the RX 7900 XTX and both 780Ms list it and report the
feature (m3-max-61287 to 61290, 61296); lavapipe, ANV on the Iris Xe, RADV on the
RX 550, the UHD 630's Windows driver and KosmicKrisp on the M3 Max list none
(m3-max-61287, 61291, 61292, 61296).
Docs: the runtime README's extension table, a Barycentrics section with the
feature table, and the render pipeline states' known gap for devices without it.
docs/REFUSALS.md regenerated: no change (the refusal sites are the translator's
and did not move). opened_chains.txt is validation's own context's chains, which
read none of rt's lists: unchanged, its test run in the gate.
Tests: floor's host test barycentrics_are_enabled_where_listed_and_reported
(listed alone, reported alone, both), the README tables, the device extensions
test's expected list, and the device test barycentrics.rs: bary_weights'
bw_vertex with bw_perspective and bw_linear drawn by a triangle whose vertices'
w are 1, 2 and 4, every covered pixel reading Metal's perspective-correct and
linear weights within 1e-4, the extension named exactly where the feature is
enabled, or both states refused naming Barycentrics.
Verified at 53df1d56d6 (this commit plus its doc fix, rebased on
|
||
|
|
841c6872ac |
Identity domains: a read through a sampler takes its border texels from the resource ID's word
MSL 4.1's read(sampler, coord[, offset][, lod]) of a texture slot, through a constexpr sampler
with a clamp_to_zero or clamp_to_border axis or through a runtime [[sampler(n)]], reads Metal's
border texel at an index outside the level. The default domains take the border texels from the
slot's BorderTexels specialization (RuntimeFact::BorderTexels); under the identity domains that was
state of the bound texture they did not source, so such a kernel was
Unsupported{IdentityDomains}. The border texels are bits 0-11 of the texture word
(TextureWord::BORDER_TEXELS, docs/RESOURCE-ID.md), already in the slot's pushed resource ID
(PushField::SlotGuestBase). Under the identity domains select_through now sets neither the slot's
border_texels nor the fact, and border_bits reads the word through emit::identity_id and masks
it, as the format's missing alpha is read. SlotPlan::identity_lowered and identity_unsourced drop
the border texels, which the identity domains now source. An argument buffer's texture read so
(its handle-table entry's border texels) is still refused. The default domains are unchanged.
Conformance (known-gaps-rt.tsv, runtime on lavapipe against the committed Metal answers): six
read-through rows translate and match, so their rows go: read-through-int exact;
read-through-half, -layers, -line, -read-write and -volume differ only by notices the suite
declares. read-through-volume reads through a runtime sampler of an opaque-black border, whose
sampler state the runtime notes on every device: the case now declares that notice
(replay::swizzled_border_notice) wherever it reads through such a sampler, as border_swizzles
does. The four plane rows (a8, r32f, rgba8, rgba8-swizzled) now make every pipeline up to
rt_heap_zero, an argument buffer's texture read through a border sampler, where they are still
refused; their rows move there.
Docs: RESOURCE-ID.md says a slot's read through a sampler takes its border texel from bits 0-11
of the word; API.md's identity forms name the read through a sampler (the paragraph's lines
reflowed); CONFORMANCE-COVERAGE.md re-derived for the six rows gone (REFUSALS.md re-derives
unchanged).
Test: engine_identity's a_read_through_a_sampler_takes_its_border_texels_from_the_word:
engine/kernel_read_through's rt_arg (a runtime sampler, offset (1, -1)) under the identity domains
on lavapipe, moltenvk-m3 and moltenvk-m3 without robustImageAccess2: L3, no specialization
constant but the dispatch's, no BorderTexels fact, and on the CPU interpreter, through a sampler
that clamps every axis to the border, each of R32Float, RGBA8Unorm, A8Unorm and RGBA8Unorm
swizzled (a, b, 0, r), under each border color, reads metal::sampler::border_texel's texel past
the right, left and top edges and the texel inside.
SEMANTICS_VERSION 2234, one above the previous commit's (main renumbers at landing): a refusal
becomes a module. The old runtime's render descriptor key changes with it, pinned at landing.
Verified (potluck; the jobs ran this diff on the previous commit's diff on development
|
||
|
|
2dd8ffce0d |
Identity domains: a texture atomic's slot is the R32 storage element its resource ID names
A texture atomic (atomic_fetch_*, atomic_exchange, atomic_compare_exchange_weak, atomic_load or
atomic_store on a texture1d, 1d_array, 2d, 2d_array or 3d of uint or int, access::read_write)
declares its slot R32ui or R32i, as Vulkan's image atomics require and as Metal requires an R32Uint
or R32Sint texture there. Under the identity domains identity_class refused every storage
declaration with a format, so such a kernel was Unsupported{IdentityDomains}. It now admits an
R32ui or R32i storage declaration as the class StorageFormatClass::Format(R32_UINT | R32_SINT),
whose variable is the storage-image array's (set 1, binding 1, which every storage class aliases;
no link or declaration change). The atomic's emission takes the element of that array at the
index the slot's pushed resource ID holds (emit::identity_id), as a read or write does; it took the
array variable itself before, which no path reached. The default domains are unchanged.
Still refused under the identity domains: ulong atomics, texture-buffer atomics and an argument
buffer's atomic texture.
The CPU interpreter models OpImageTexelPointer (unmodelled before): a pointer to a texel inside
its image (Root::Texel), through which an atomic reads and writes the texel's first component, as
an atomic of an R32ui / R32i image does. Robustness's atomic outside the image and one on an
unmapped texel stay unmodelled.
Conformance: swizzled-storage-atomics now makes its pipeline and meets the runtime's
Gap::SwizzledReadWrite at its first dispatch (case/RRRR/dispatch), where a read_write slot bound to
a swizzled texture is refused; its known-gaps-rt.tsv row moves there and says why: Metal's atomic
answers the texel unswizzled, but nothing yet says a slot's reads are atomics alone.
Docs: RESOURCE-ID.md's arrays name the R32Uint / R32Sint storage class of a texture atomic;
API.md's identity forms name a texture slot's atomics (the paragraph's lines reflowed);
CONFORMANCE-COVERAGE.md re-derived for the atomics row's reason (REFUSALS.md re-derives
unchanged).
Test: engine_identity's a_texture_atomic_is_the_r32_storage_element_its_resource_id_names: a
generated texture2d<uint, access::read_write> atomic_fetch_add under the identity domains on
lavapipe, moltenvk-m3 and moltenvk-m3 without robust image access; each passes L3, its one image
class is R32_UINT storage at set 1 binding 1, the guard's size query is there exactly where the
device lacks robust image access, and on the CPU interpreter each thread adds 5 to its texel of
element 2 (the one the pushed resource ID names), answers the texel it held, and no other element
changes.
SEMANTICS_VERSION 2233, one above development's (main renumbers at landing): a refusal becomes a
module. The old runtime's render descriptor key changes with it
(the_old_render_descriptor_key_keeps_its_value), pinned at landing.
Verified (potluck; the jobs ran this diff on development
|
||
|
|
62c563f564 |
replay: the over-copies' causes among the executed counters
The report counted over-copies and their bytes, and those over imported blocks, but not why the runtime keeps each texture in an image of its own. The runtime already splits them by cause in Metrics (over_copies_host_memory, _pitch and the ten like them, each with its bytes). The backend now reports all twelve pairs, so a frame's, a completed group's and the total's over-copies split by cause. This is what the planner asked for to split the 48,710 small over-copies across the link. Validation only; the runtime is unchanged. The replay stage test now also checks that two of the keys are there. |
||
|
|
9027bd2aa3 |
rt: count scheduled-to-start under earlier GPU spans, GPU-end-to-handler steps and calibrations
The clean 5080 re-play's print needs three things the stage sums alone cannot give.
First, how much of each command buffer's span from scheduling to GPU start lies under other
command buffers' GPU spans, the runtime's own uploads and copy-ins included, against the part
under none of them. This is Metrics::scheduled_to_gpu_start_behind_nanos.
Second, its span from GPU end to handlers split at the completion thread's own steps. This is
Metrics::gpu_end_to_handler_steps_nanos, six steps:
- seen: GPU end to the thread seeing the completion;
- told: telling the submit thread;
- stamp read: reading the round's timestamps;
- calibration: a calibration, where the round runs one;
- earlier: the round's earlier retirements, their handlers included;
- own: its own retirement until its handlers begin.
The same steps are kept for the command buffers of 1,024 us or more (gpu_end_to_handler_tail
and its steps), so a 1-8 ms tail can be placed in a step.
Third, the calibrations and their calls' time. The counter that only the tests had becomes
Metrics::calibrations, beside calibration_nanos.
The replay backend reports all of these as executed counters.
Counting only; nothing changes form. There are no new waits, locks or allocations. What each
count costs:
- Completion thread, per round: two clock reads (the stamp read's start and end), and a third
where it calibrates. The period check reuses the stamp read's end, so it no longer reads the
clock itself.
- Per command buffer retired: one clock read where its retirement begins, then for one that
counts stages:
- one pass over a fixed ring of the latest 128 GPU spans, a stack array in the completion
thread;
- a sort, on the stack, of those that meet its span;
- one relaxed atomic add for the behind part;
- six for the steps, and seven more for one in the tail.
- Per upload or copy-in retired: the timestamps it already read go into that ring. There is no
second query read.
- Per calibration: two clock reads and two relaxed atomic adds.
Retirement returns an upload's and a copy-in's two timestamps (times::retire_own). The
completion thread places them on the host clock by the calibration as it stands
(Calibration::at, which moves nothing), and the program's command buffers' spans as placed.
Tests:
- host tests for the ring's merged, clipped union and its oldest-first replacement;
- a host test for the round's steps adding up to the span;
- the device stage test now checks that the six steps add up to gpu_end_to_handler_nanos, that
the behind part is at most scheduled_to_gpu_start_nanos, and that the device start
calibrated;
- the replay stage test checks the same through the report's keys.
|
||
|
|
c8bd7123b7 |
Fix forward of 83049f641a: the runtime's sources and version, and SEMANTICS one above development
|
||
|
|
83049f641a |
rt: the pixel interlock orders a raster order group on the memory the function reads and writes
Device creation enables VK_EXT_fragment_shader_interlock where the device lists it, and its
fragmentShaderPixelInterlock where the device reports it (floor's PIXEL_INTERLOCK, one of the
optional extensions; the sample interlock and the shading-rate interlock stay off). The
translator's profile then has the feature, and a fragment function's raster order group on a
buffer, a texture or an argument buffer's member it reads and writes compiles to its one form,
the body inside PixelInterlockOrderedEXT. A device without the feature keeps the typed refusal
(RasterOrderGroups, naming FragmentShaderPixelInterlock). Of the venues probed, KosmicKrisp on the
M3 Max and RADV on the RX 550 list neither the extension nor the feature (vulkaninfo, jobs
m3-max-61291 and m3-max-61296); every other venue reports it, the UHD 630's Windows driver
included (m3-max-61292).
Under the identity domains the interlock chooses no other form. The new
lower::fragment::interlock_forms(p) is pixel_interlock and not identity(p), and it now gates
every form the interlock chose beyond a raster order group's: the fetch's storage form
(interlock_orders), the blend, merge or logic operation computed over it (color::unordered),
the stencil output's storage form (stencil::device_form), the imageblock (imageblock::require),
the snapshot read (snapshot::finish) and the binding plan's snapshot (bind/graphics.rs). Each of
these is a storage image bound through a descriptor, which the identity domains hold none of,
so under them each keeps the form or the refusal it had before the enable, refusal text
included. rog::mode and the device report read the feature itself, as before.
A raster order group on a colour attachment: the lowering enters no critical section for it.
The interlock cannot order the attachment's own write, which happens after the function, so a
group on the colour input, or on a colour output of an attachment the function reads, keeps
the fetch's own ordering: the attachment's pushed texture read at its pixel, ordered after the
earlier draws of the pass and not within its own draw. That difference stands as the static
PrecisionNote::UnorderedFetchWithinDraw the read records, in the runtime README's Known gaps of
render encoders and in docs/API.md's catalogue; both now say the pixel interlock's devices are
included and why.
The storage-image forms of fetch, stencil, colour, imageblock and snapshot are unreached under
the identity domains after this. They are not deleted here; they go to cutxlate's queue.
Tests: the runtime's tests/pixel_interlock.rs draws rog_buffer (engine fragment_rog) four times
over a whole target in one draw on every device of the cfg's kind: the state is made only where
the profile has the feature, each pixel's float sums to 4 and its texel holds the fourth
fragment's sum; elsewhere the state is refused naming RasterOrderGroups. tests/floor.rs adds
the_pixel_interlock_is_enabled_where_reported (the sample interlock stays false) and chains the
structure as Device::open does. The translator's
tests/engine_identity_interlock.rs builds rog_buffer and fetch_ordered under the identity
domains on lavapipe's profile with and without the feature: rog_buffer interlocks and passes L3
with it and is refused without it; fetch_ordered has no interlock, no storage attachment, the
UnorderedFetchWithinDraw note and FetchedColor { color: 0 }, its modules word-identical either
way.
Docs: the runtime README's extension table, a Pixel interlock section under Floor with its
feature table, the raster-order-group gap of render pipeline states (now refused only on a
device without the feature) and the fetch gap; docs/API.md's UnorderedFetchWithinDraw entry;
rog.rs's and fetch.rs's module docs. docs/REFUSALS.md is unchanged (its check passes).
api_signatures.tsv re-blessed for floor::Features's new interlock field.
SEMANTICS_VERSION 2231 is a placeholder one above development's 2230: under the identity
domains a profile with the pixel interlock now takes, for a fetch, a stencil output, a blend,
an imageblock and a snapshot, the form a profile without it takes.
Verification: the lint, test, validation and states-only play jobs are named in the hand-off.
|
||
|
|
b1b5168fd6 |
Replay report: untimed waits, the runtime's stage sums and its stage histograms by frame
The 5080 play of a 3090 compute recording waited 42.5 s of 95.1 s wall with 23.1 s of gpu_busy; before a fix is ruled on, the report must say where the other 19.4 s went. Three reads were missing from it: - A waited command buffer with no GPU interval (start 0, or end not past start) adds nothing to gpu_busy while its wait counts in full. Each frame's end line now has untimed_waits and untimed_wait (the wait spent on them), and the report sums them in an `untimed waits` line. - The runtime already histograms every command buffer's commit to scheduled, scheduled to GPU start, GPU run and GPU end to handler, but only in power-of-two buckets, which give no seconds. Metrics now keeps each stage's sum beside its histogram (commit_to_scheduled_nanos and the three like it), counted in the same call as the bucket. - The player printed none of it. The backend's executed counters, so every frame line and the total, now carry the four sums, held_starts and held_start_gap_nanos, runtime_command_buffers and runtime_command_buffer_gpu_nanos (the uploads and copy-ins that run outside every Metal command buffer's GPU interval), and untimed_command_buffers. The four histograms print at the play's end as `stages F ...` lines, cumulative as each frame ended, and `stages end ...`. They are not per-frame counters, so the 69k `completed` lines of a long play do not grow by 92 keys each. Tests: the runtime's stage histogram test also checks each sum against the three command buffers' own times (exact for the first three stages, bounded by the host time after each finished for the fourth); a player test on the synthetic backend counts a frame's untimed waits (none and zero-length intervals) and the report's sum; a lavapipe replay test reads the new counters and the stages lines across two frames. |
||
|
|
0aa20c8bbf |
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. |
||
|
|
43038e5d06 |
fixtures: coverage_natural's header names the one form it is translated in
The header's first seven lines still described the per-device form the translator no longer has: a function compiled as written on a driver that runs a memory writer once per covered sample (MoltenVK on Apple's GPU), and a loop over the covered samples elsewhere. Today a memory-writing function runs as the device runs it, on every device, and its module records PrecisionNote::DeviceFragmentRuns, because documented Metal names no count of runs for it (lower/fragment/coverage.rs). The header now says that. A comment alone: the companions stay as committed. A regen of the fixture on the M3 (scripts/regen-air-fixtures, m3-max-61246) gives the same module with only the toolchain stamps moved: the "SDK Version" flag 27.0 -> 27.2 and the compiler identity 32023.921 -> 32023.922, the host's newer Metal. Taking those would move the fixture's AIR identity, which its corpus case (shard_058) and the golden and inventory rows are keyed on, for no change of the program. So no hash or inventory row follows. |
||
|
|
bb9a63810b |
rt: a draw fills its functions' bicubic word, as a dispatch does
A render state whose vertex or fragment function samples a 2D texture slot through a bicubic constexpr sampler was refused at creation (Gap::RenderPipeline, DrawInput): render::draws had no arm for the translator's PushField::BicubicTexels, and fill_push wrote nothing for it. A dispatch fills the same field for a kernel's slot. Now a draw means by the field what a dispatch does. render::draws places the field (FieldValue::BicubicTexels of the slot, in the stage's table) and lists the slot in the content's own Draws::bicubic. The draw's checks (Facts::find), which run only when the pipeline state or a binding changes, refuse a bound texture with no bicubic word with the dispatch's typed gap, Gap::BicubicTexels naming the slot and the format (an 8-bit sRGB format, whose taps Metal filters decoded, a compressed, YUV, stencil, integer or extended-range one). fill_push writes the word from the bound texture's format and swizzle (bicubic_texels_word), or BICUBIC_TEXELS_UNBOUND for a slot that holds no texture. A bicubic sample at pixel coordinates or of a 1D texture stays the translator's refusal under the identity domains, as for a kernel. Nothing new runs on the draw path of any other pipeline. The check loops over the content's own list, Draws::bicubic, which render::draws fills only from a BicubicTexels push field: empty for every other content, so its check is a loop over nothing, once per change, never a per-draw scan. The fill is the match arm of that field, which no other content has. The device test asserts the list is empty for a state without a bicubic sampler (colored_fragment). Both stages are covered. The fragment half uses the fixture bcu_fragment. The vertex half uses a new owned fixture, bcu_vertex: a vertex function samples at p[vid] through a clamp-to-edge bicubic sampler at normalized coordinates in the implicit form, and bcu_vertex_color writes the sample. Its companions come from scripts/regen-air-fixtures on the M3 (m3-max-61235, Metal 32023.922, SDK 27.2), with its TOOLCHAIN line. It has no corpus case. Gap::BicubicTexels's docs and text now name a dispatch or a draw and "a function" in place of "a kernel". docs/REFUSALS.md is regenerated, and the ledger row of bicubic-texel-classes' sRGB dispatch carries the new text. RUNTIME_VERSION 2547 -> 2548 (placeholder): a run of an unchanged render artifact with a bicubic slot now draws where it was refused. Basis: this is NOT documented Metal. The MSL spec lists only nearest and linear filters, and 'bicubic' appears nowhere in the spec or the feature-set tables. It is built because a guest already uses the bicubic constexpr sampler in kernels, which is why the kernel half exists. Filling the field for a draw completes that one form and adds none. Test: tests::bicubic_draw's every_device_draws_a_bicubic_sample_in_each_stage, for each stage: - the content lists its one slot, and the field is in the push range; - each of six formats pushes its bicubic_texels_word, and an empty slot pushes the unbound word; - an RGBA8Unorm_sRGB texture is refused with Gap::BicubicTexels naming slot 0 and the format; - an RGBA8Unorm texture whose texels are all one value renders that value at every pixel. |
||
|
|
846f7c1428 |
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. |
||
|
|
d3d40dd31e |
Identity domains: an argument buffer's texture sampled through the argument buffer's own sampler
Under the identity domains, an argument buffer's sampler was refused. Its cubic test pushed the
execution status address ("an encoder value the function reads as ExecutionStatusAddress"), and
behind that was the form's own refusal ("an argument buffer's sampler"). The sampler's resource ID
is now its handle, read from the member's 8 bytes with no sampler table (access::handle,
emit_identity_sampler):
- Its index selects the element of the set-1 sampler array of its use. That is the array an
argument buffer's sampler already declares, at the same binding the slot samplers' identity
arrays use.
- The word's fields (pixel coordinates, the nearest-pixel test) come from the ID's high word
(sampler::emit::heap_sampler_field).
- The handle is a uvec2 wherever it is held (lowered_pointer, and word_repr for a member word).
A select's null operand is the nil ID.
Bad-ID guard: compare-and-select, index < 4,000 ? index : 0, so an index past the arrays samples
through element 0, the default sampler. I chose it over 4,096-element arrays with a 12-bit mask
because it is two instructions with no layout or floor change. The mask would need every array at
4,096 elements and every unowned element holding the default sampler, which the floor does not
state. pipeline::link::IDENTITY_SAMPLERS becomes pub(crate) for it.
No cubic test under the identity domains (sampler::select::cubic_reach returns early). The runtime
makes no sampler state of a cubic filter (Gap::CubicSampler), so no live ID's word carries bit 30.
The runtime README says so beside the gap, and docs/RESOURCE-ID.md says how the shader reads the
ID.
The conformance ledger's 32 rows refused only by the cubic mark now run through the runtime. On
lavapipe:
- 3 match: pixel-samplers-rgba16f-nearest-{border,edge,zero}.
- 5 are refused at case/encoder, Unavailable argument_encoder or argument_encoder_with_arguments:
the rt side has no argument encoder.
- 24 differ. In each, every source our side runs answers alike wherever Metal's do.
Their 32 rows become 192 rows scoped to llvmpipe, each naming its note and bound:
- pixel-downscales: pixel-sampler-scaling, 2/255.
- pixel-samplers linear: device-sampling.
- rgba8 nearest and subnormal: device-texel-conversion.
- the two nearest mirror norm sites: device-sampling, the device's mirror clamp to edge at
normalized coordinates, which a device test shows a slot's sampler and an argument buffer's
read alike.
docs/CONFORMANCE-COVERAGE.md is regenerated for the ledger (7,490 rows to 7,650).
pixel-samplers now declares the slot form's pixel-sampler-scaling on nearest states as well
(replay::pixel_sampler_scaling_notice): under the identity domains the slot's word is read at
dispatch, so the note is the operation's on any state.
SEMANTICS_VERSION 2231 (a placeholder for the landing to renumber).
Tests:
- engine_identity's
an_argument_buffers_sampler_samples_through_the_identity_arrays_by_its_resource_id covers
tail_argument_samplers' four kernels and tail_argument_cube_gradient on every profile: L3, set
0 empty, set 1 the identity layout, the bindings used, no sampler slot ID, constexpr index or
status address pushed, and no RuntimeFact::CubicArgumentSampler.
- metal2vulkan-runtime tests::argument_sampling (lavapipe, m2v_cpu_icd):
- argument_sampler_edges through a linear state reads the edge averages; through an ID of that
word with index 4,000 it reads element 0's nearest texels (the guard).
- every_device_samples_alike_through_an_argument_buffers_sampler_and_a_slots: one texture at
the pixel-samplers case's 800 normalized coordinates through one nearest state under clamp to
edge, to zero, to an opaque white border and mirror clamp to edge, bound at a slot and held in
an argument buffer; bit-equal.
- validation's an_argument_buffer_sampler_samples_its_member_texture compares the runtime's run
with Metal's texels, where it held the refusal.
Verified (potluck jobs; this commit's tree equals WIP 16c70bf88a on
|
||
|
|
34c25738ee |
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. |
||
|
|
c5e472fffe |
Fix forward of 81ced9a1cb: the RX 550's rows of the extended-range refusals
|
||
|
|
f46749a784 |
Bless the golden table, the compile census and the render key at 9b1026e61b (SEMANTICS 2230)
The named pin's bless. - Golden: the rows of the new public fixture depth_fill (golden_hashes.tsv, the engine expectations and its air_input printout). No other cell changed since the last bless, |
||
|
|
9b1026e61b |
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. |
||
|
|
642d9b0fae |
rt: quad control is enabled where the device reports it
A fragment function whose group operations read, combine or count other lanes has one form in the translator: its quads run whole under RequireFullQuadsKHR, helpers included, as Metal runs them. rt enabled shaderQuadControl on no device, so every such function was refused at creation (SubgroupOperations). floor: VK_KHR_shader_quad_control joins OPTIONAL_EXTENSIONS (enabled where listed), its feature structure joins Features (read and chained only where listed), and a new list QUAD_CONTROL holds shaderQuadControl, copied from what the device reports, as the step rates are, and handed to the translator's profile through shader_enables. No answer chooses a second form: a device without the feature keeps the translator's typed refusal. Device creation (and the floor test's copy of it) chains the structure where the extension is enabled. The pixel interlock is not enabled here: raster order groups stay refused on every device (the runtime README, known gaps of render pipeline states). Conformance: discard-quad-sum-placement now runs where the feature is. It declares the pixel-sampler-scaling notice, which every sample through a runtime sampler slot records under the identity domains, and its refusal row is scoped to the two venues whose device lacks the feature: KosmicKrisp on the Apple M3 Max (vulkaninfo, m3-max-61179) and the UHD Graphics 630's Windows driver 101.2145 (m3-max-61190). The other venues list the extension and report the feature (RADV on the 780M, RX 550 and RX 7900 XTX, ANV on the Iris Xe, NVIDIA on the RTX 2080 and both 3090s, lavapipe: m3-max-61172..61175; the RTX 5080 from its committed profile). Tests: floor's host test quad_control_is_enabled_where_reported (listed alone gives the extension and no feature; listed and reported gives both, in the capabilities and in the translator's enables), the README table of the quad-control feature, and the device test quad_control.rs: gsm2_quad_ops's fragment_quad_bitwise drawn by a triangle whose edge cuts the diagonal quads, each covered pixel reading its quad's AND, OR and XOR of all four words, helpers included, or the state refused naming SubgroupOperations where the feature is not enabled. Verified: the quad test on lavapipe at the earlier tree of this change with the interlock (m3-max-61149: "36 pixels read their quads whole, helpers included"); this tree's lint m3-max-61203 (fmt, clippy plain, --cfg m2v_gpu and --cfg m2v_cpu_icd, Rustdoc: all 0) and tests m3-max-61204 (rt host 150/150 with validation's chain and signature tests; rt on lavapipe 506/506, printing "quad_control: llvmpipe: shaderQuadControl enabled; 36 pixels read their quads whole, helpers included"; the conformance replay on lavapipe, 0 ledger mismatches). |
||
|
|
39504ce00c |
Fix forward of e63c0e6e3d: the depth fill's depth-stencil descriptor is set field by field
Gate m3-max-61124 (at the pre-rebase 6fc1a6c89a) failed to compile metal2vulkan-validation: E0639 at runtime_depth.rs, a struct expression of the translator's DepthStencilDescriptor, which is non-exhaustive. The fill now takes the default descriptor and sets its compare function to Always and its depth write on. |
||
|
|
1687f8fc38 |
Validation: a 32-bit float depth texture is filled by a draw through the runtime, and a depth outside [0, 1] is the runtime's limit
The runtime takes no upload of a 32-bit float depth (Gap::FloatDepthUpload, which its own texture and blit tests hold both ways). Kernel and render cases that bind a Depth32Float texture stayed on the executor's own context. Now they run through the runtime: the run fills each such texture by a draw, as a guest fills one. The fill: - The owned fixture depth_fill.metal is regenerated with scripts/regen-air-fixtures on the M3 (m3-max-61107). It holds a fullscreen vertex function and a fragment function that writes depth(any) from a buffer of texels by pixel. - platform::runtime_depth draws one pass per level and slice into the texture's depth attachment, under an always-passing depth test that writes. The texture is made with RenderTarget usage beside its declared usage. DepthOutsideUnitRange becomes the runtime's limit (Limit::Runtime) and qualifies on Metal, as ruled. A draw writes depths clamped to the viewport's [0, 1], so no runtime call puts a NaN, a negative value or a value above 1 where Metal's texel holds it. The case checker now raises the requirement from the case's literals on every device (executor_contract::case_requirements, via depth_range::depth_range_requirement). The literals checked are each Depth32Float texture, each texture-array element, each argument buffer's texture, and the depth attachment's initial depth. The old executor's device-gated check (plan_resources::require_depth_range, which read VK_EXT_depth_range_unrestricted) and its two call sites are deleted. The fill refuses such a depth too, typed, so it never clamps one silently. No source fact carries the requirement, so the source census is unchanged. Of the committed public cases, 7 kernel cases close as runtime-refused (4ac0d4322d, 5d9f284f87, 70064cea52, f04e9b48c8, 59b3a9a43e, 6955da3062, b3d8e09b92). Their Metal rows stay as committed. ENGINE_EXECUTOR_ABI goes to v191. Tests: - Unit: the requirement from each literal kind, and its limit, stops and evidence gap. - The Runtime and qualifies_on_metal lists. - Routing: a Depth32Float texture now routes. - Device: a_float_depth_texture_is_filled_by_a_draw_and_reads_back_as_authored. Both runs read eight depths of a 4x2 texture back exactly, and through the runtime a depth of 2.0 is refused as depth_outside_unit_range. - The device test of the old gate is deleted with the gate. |
||
|
|
acc706ca47 |
Identity domains: a sequentially consistent fence is refused naming the fence
The translator orders a seq_cst fence (atomic_thread_fence of memory_order_seq_cst beyond the
thread, or a seq_cst barrier whose memory scope is the device) through an increment of the
command buffer's ExecutionStatus word. The identity domains reach no such word. Their refusal was
the generic one at the plan's end, which named the push field the fence asked for: "an encoder
value the function reads as ExecutionStatusAddress". require_seq_cst now refuses the fence itself
under the identity domains, as Unsupported{IdentityDomains}, not implemented, naming its Metal
form, "a sequentially consistent fence" (barrier::SEQ_CST_FORM). It stays refused; the default
domains compile it as before.
Docs: the runtime README's known gap of the forms the identity domains do not lower gains the
fence and its test. Validation's executor_contract::seq_cst_fence and
ToolingRequirement::SeqCstFence docs name the new text. docs/REFUSALS.md is regenerated (the
IdentityDomains row gains the barrier.rs site).
Tests: engine_identity's new
a_seq_cst_fence_is_refused_naming_its_form_under_the_identity_domains (a4_device_fence on
lavapipe and moltenvk-m3: under the default domains it compiles and states ExecutionStatus; under
the identity domains it is refused IdentityDomains, NotImplemented, symbol "a sequentially
consistent fence"). Validation's
a_seq_cst_fence_is_refused_through_the_runtime_as_its_requirement_says now looks for the fence's
name in the runtime's error.
SEMANTICS_VERSION 2230 (placeholder; main renumbers): a refusal's text changes.
Consumer check: no public item is added or removed.
Verified: m3-max-61154 (msi) at this commit's tree: fmt, clippy (plain, --cfg m2v_gpu and
--cfg m2v_cpu_icd) and Rustdoc green; nextest of metal2vulkan, -conformance, -validation and
-runtime, 5880 of 5881 passed, the new identity test among them; the one failure is
the_old_render_descriptor_key_keeps_its_value, which moves with SEMANTICS_VERSION and waits for the
next named pin. Only the refusal's text changes, so no play.
|
||
|
|
8bafe7240d |
Absent reads mark nothing: the absent-read mark, its fact, status bit and report field go
Since
|
||
|
|
5e53367e46 |
Texture family: the heap plan's never-set plain class goes
HeapPlan::compares_plain lost its only setter in
|