4aee2fa9f1a93afe89c7c78284d2e39c19a00978
2085
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
4aee2fa9f1 |
Translator: the ordered fetch form goes; its computed writes are refused on every device
The framebuffer fetch had a second form chosen by rasterizationOrderColorAttachmentAccess: over
a rasterization-order input attachment, a fragment function computed writes no Vulkan blend,
write mask or logic operation gives. No runtime enables that feature, so the form ran on no
guest's device. It goes (rule 2: a second form chosen by a query outside the named list; rule 4).
What changes:
- A fetch reads its input attachment ordered between draws alone on every device, noted
UnorderedFetchWithinDraw. Under the identity domains it reads the pushed texture
(PushField::FetchedColor).
- These states are refused on every device: a padded extended-range attachment's blend; a write
of some of the codes one word of an extended-range attachment holds; and a blend no Vulkan
state gives on a rotated (ARGB8Unorm) attachment. Each refusal is FramebufferFetch, not
implemented (lower::fragment::fetch::computed_write_refused).
- A word attachment under a partial mask takes its format's own attachment, and is refused where
the device lacks that format.
- A private logic operation on a device without logicOp is refused naming
PrivateRenderState(LogicOperation) and logicOp.
- Deleted: lower/fragment/input_blend.rs, word_input.rs, the shader logic operation in logic.rs,
lower/arith/extended_range/blend.rs, pipeline/link/fetch.rs, and the arithmetic only they used
(the fma emulation cluster, div_exact, encode_keeping).
- Deleted public items:
- LoweringInputs.framebuffer_fetch and .logic_operation;
- FramebufferFetchInputs, FetchedAttachment, BlendEquation;
- GraphicsState.rasterization_order_attachment_access and
FragmentCaps.rasterization_order_color_access;
- metal::format::extended_range_blend, Feature::ExtendedRangeBlend and the ExtendedRangeBlend
enum;
- RuntimeInput::FramebufferFetch and ::LogicOperation;
- RuntimeFact::ExtendedRangeInputBlend, ::RotatedInputBlend and ::WordInputMerge;
- PrecisionNote::ExtendedRangeBlendSource and ::ExtendedRangeFloatBlendSource.
- The enable-set facts class VK_EXT_rasterization_order_attachment_access as described and never
enabled.
Docs, in this commit:
- rt README: Known gaps of render encoders gets one line per refused state, each built on the
runtime's own fetch form if a guest meets it. The Not-enabled row of
rasterizationOrderColorAttachmentAccess goes, and so does logicOp's mention of the shader form.
- docs/API.md loses the two blend-source notes from the precision-note catalogue, the
rasterization-order form and the word merge.
- REFUSALS.md is regenerated (reach row of ExtendedRangeBlend removed), along with
api_signatures.tsv and the api_surface table.
- The conformance ledger: the 39 rows refused naming rasterization-order access (on llvmpipe and
the UHD 630; on other venues the case read as lacks-feature) become 22 every-venue rows,
refused, needs NotImplemented. The matrix replay on development confirms the scope.
Lines: product sources (crates/metal2vulkan, -air, -runtime src, tests excluded) +238 -4647;
product tests +277 -2279; validation and conformance +61 -182; docs +48 -67.
Consumer search (reims-vgpu at 71573a84c8, git grep -w over *.rs, *.toml and *.md):
- 0 hits: ExtendedRangeBlend, rasterization_order_color_access, BlendEquation,
FramebufferFetchInputs, rasterization_order_attachment_access, framebuffer_fetch,
extended_range_blend, ExtendedRangeBlendSource, ExtendedRangeFloatBlendSource,
ExtendedRangeInputBlend, RotatedInputBlend, WordInputMerge, DualSource.
- Hits that are not these items: FetchedAttachment 2 (rt's DrawKind); logic_operation 8 (its
own structs and rt's private state).
- RuntimeInput: only LinkedFunction is used.
- No glob import or re-export of a metal2vulkan module (only `use metal2vulkan_runtime as rt`).
Verified: cargo fmt; refusal surface and signatures regenerated locally. The compile job and the
host suites follow on the branch.
|
||
|
|
e10fa7ba23 |
Docs: the mesh lowering is only compiled and validated, never compared with Metal on a GPU
The rule keeps the mesh lowering (a sole lowering a supported device could run, and large) with an honest known-gap line. The runtime README's mesh gap said "The translator compiles mesh pipelines"; it now says the lowering is only compiled and validated and has never been compared with Metal on a GPU. docs/API.md's Mesh pipelines section says so before it describes what the lowering emits, and its "Every device runs a grid of up to 2^29 threadgroups" becomes what the lowering takes. Validation's README says a compiled cell of an object or mesh case in the authored compile census means it compiles, not that it draws as Metal does. Searched README.md, docs/*.md (METAL-COVERAGE and CONFORMANCE-COVERAGE included), the runtime, validation and conformance READMEs: METAL-COVERAGE lists mesh render pipelines as missing, and CONFORMANCE-COVERAGE counts Metal-side cases only, so neither reads as mesh working. Docs only. |
||
|
|
c78ff4022c |
Translator: a ulong texture's atomics are refused on every device; the 64-bit image form goes
The rule: a sole lowering under 150 lines that nothing executes is
deleted to a typed refusal. Metal's atomic_min and atomic_max on a ulong
texture lowered to OpAtomicUMin/UMax on an R64ui image, which needs
shaderImageInt64Atomics; no runtime enables it, so nothing ran the form.
texture::atomic::select now refuses the pair as
Unsupported{ImageAtomics} not implemented, on every device. Gone with
the form: TexAtomic.ulong, the R64ui slot declaration and its reads and
writes in the emitter, RuntimeFact::UlongAtomicView with its codec, name
and mechanism rows, the binder's R64_UINT view and neutral,
DeviceProfile::ulong_atomic_gaps, LeafCaps.image_int64_atomics, and
R64_UINT in the queried formats. VK_EXT_shader_image_atomic_int64 is
described and never enabled. Product lines +34 -142.
Tests: the four tests of the 64-bit form and the fact's round trip go;
ulong_atomics_are_refused_on_every_device asserts the refusal on every
committed profile; the legacy-offset test takes the refusal as a gap;
the mechanism table renumbers; the recommendations test lists
shaderImageInt64Atomics as unread. The runtime README's known gap says
the atomics are refused, and its Not enabled row for
shaderImageInt64Atomics goes (the profile reads it no more).
docs/REFUSALS.md and api_signatures.tsv regenerate.
Consumer search (reims-vgpu ad28ebd881): ulong_atomic_gaps 0,
UlongAtomicView 0, image_int64_atomics 0.
|
||
|
|
90b3171413 |
Translator: a multisampled storage image is refused on every device; the enabled arm goes
Where a profile enabled shaderStorageImageMultisample a multisampled storage slot was declared, and a heap held multisampled storage classes; elsewhere both were refused as needing the feature. The runtime never enables it (its README: a multisampled texture has no storage element on any device, as Metal's shaders only read one), and no test executes the declared form. The enabled arm goes: the slot and the heap group are refused Unsupported::not_implemented( Feature::StorageImageMultisample) on every device, the heap's image classes hold no multisampled storage class, and the public ImageCaps.storage_multisample goes with its derivation. docs/REFUSALS.md is regenerated (the refusal is ours now, at both sites). The VkFeature vocabulary and the requirement derivation of a multisampled storage image type stay. The runtime README's "Not enabled" row for shaderStorageImageMultisample goes (tests::feature_enables fails on a row the profile no longer reads). Tests: the heap class test asserts no multisampled storage class on any profile. Class 3 of the planner's rule (a sole lowering under 150 lines that nothing executes). Public item removed: ImageCaps.storage_multisample (api_signatures.tsv blessed); the consumer's checkout (reims-vgpu at bd9d6ae85a) holds 0 uses of it. Product lines: +14 -16. No module that compiles changes; no SEMANTICS bump. |
||
|
|
317613d939 |
Translator: an 8-bit float widens by the integer decode on every device; the native form goes
Where a profile enabled shaderFloat8 an 8-bit float of an OCP encoding (f8e4m3fn, f8e5m2, a tensor's e4m3 and e5m2) widened through the device's own type (OpTypeFloat 8 with its FPEncoding, Float8EXT, SPV_EXT_float8), and a tensor's element recorded PrecisionNote::NativeFloat8. The runtime never enables shaderFloat8 (its README listed it under Not enabled), so on its devices every 8-bit float already widened by integer arithmetic on its fields, as Metal reads them; once validation enables what the runtime enables nothing runs the native form. It goes with what only it reached: Fp8Layout's native field and Fp8Layout::on (every caller takes Fp8Layout::of), fp8_native, native_float8, the crate-private LeafCaps.float8 and its derivation, the IR's Type::Float8 with its type facts, builder, serializer, requirement and interpreter arms (the interpreter's OCP decode with it), and the public PrecisionNote::NativeFloat8 with its cache codec entry (the batch bumps ARTIFACT_FORMAT_VERSION once), conformance's Degradation::NativeFloat8 and validation's allowance arm. The enable-set facts class VK_EXT_shader_float8 as described and never enabled (the matmul2d refusal its comment named is not in the tree). The VkFeature, VkExtension and SPIR-V vocabulary stays. Docs: docs/API.md's precision-note catalogue loses the native-float8 entry; the AIR front end's matmul2d docs and the vocabulary docs say the integer decode; the runtime README's "Not enabled" row for shaderFloat8 goes (tests::feature_enables fails on a row the profile no longer reads). Tests: the widening, matmul2d and SIMD-group matrix 8-bit float tests take the integer decode on every profile, the RTX 50 profile (which lists shaderFloat8) included: no module declares Float8EXT, and the matmul2d sums hold no NaN. Class 1 of the planner's rule (an alternative to what the runtime runs). Public item removed: PrecisionNote::NativeFloat8, here and as the runtime re-exports it (api_signatures.tsv blessed); a consumer that matched it no longer compiles. The consumer's checkout (reims-vgpu at bd9d6ae85a) holds 0 uses of it. Product lines: +23 -190. Modules change only on profiles that enabled shaderFloat8 (their golden rows move, re-stamped at the pin); no SEMANTICS bump (the profile fingerprint changes with the field and is in every cache key). |
||
|
|
3d8e01d2c2 |
Translator: the coverage after the depth tests is refused on every device; its lowering goes
[[sample_mask, post_depth_coverage]] read SampleMask under the PostDepthCoverage execution mode where a profile enabled VK_EXT_post_depth_coverage, and was refused as needing the extension elsewhere. The runtime never enables the extension, so it refused every such function all along, and nothing ever executed the lowering: no test runs it, and the golden tables only compile it. It goes to a typed refusal, Unsupported::not_implemented(Feature::PostDepthCoverage), at the parameter's plan; the IR's ExecMode::PostDepthCoverage goes with its builder, serializer and requirement arms, and the enable-set facts class the extension as described and never enabled. The AIR decode of the parameter (Builtin::PostDepthCoverage) and the SPIR-V and Vulkan vocabulary stay, the decode being what the refusal reads. The refusal moves from a device's to ours: Feature::PostDepthCoverage's doc, its reach mark and docs/REFUSALS.md (regenerated) say every device. The runtime README's known gaps of render pipeline states gain its line: refused on every device, built on the extension with its tests if a guest meets it. Class 3 of the planner's rule (a sole lowering under 150 lines that nothing executes). No public item goes (signatures.py --check clean). The consumer's checkout (reims-vgpu at bd9d6ae85a) names it once, Metal's supportsPostDepthCoverage in a guest test's protocol member list, not an item of ours. Product lines: +15 -34. The golden tables' pdc_after rows move from compiled to refused on the profiles that enabled the extension (re-stamped at the pin); no SEMANTICS bump (the refusal changes no module that compiles). |
||
|
|
22d32fc372 |
Translator: a raster order group takes the pixel interlock alone; the sample interlock goes
A raster order group of a function that runs at sample rate took SampleInterlockOrderedEXT where a profile enabled fragmentShaderSampleInterlock and not the pixel interlock. The runtime never enables the sample interlock (floor.rs: the pixel interlock where reported, the sample interlock left off), so on its devices every group already took the pixel interlock or was refused; once validation enables what the runtime enables nothing runs the sample arm. It goes with the public FragmentCaps.sample_interlock and its derivation, the IR's ExecMode::SampleInterlockOrdered with its builder, serializer and requirement arms, and lower::fragment::rog's sample-rate test of the stage interface. The refusal on a device without the pixel interlock names that feature alone, at the site and in the device's unsupported-feature list (docs/REFUSALS.md regenerated). The VkFeature, SPIR-V capability and execution-mode vocabulary stays. The runtime README's "Not enabled" row for fragmentShaderSampleInterlock goes (tests::feature_enables fails on a row the profile no longer reads). Tests: the sample-interlock test becomes a test that a device with the sample interlock and without the pixel interlock refuses a sample-rate group; the builder and serializer tests take the pixel interlock. Class 1 of the planner's rule (an alternative to what the runtime runs). Public item removed: FragmentCaps.sample_interlock (api_signatures.tsv blessed); the consumer's checkout (reims-vgpu at bd9d6ae85a) holds 0 uses of it. Product lines: +15 -58. Modules change only on profiles that enabled the sample interlock without the pixel interlock (none of the committed profiles); no SEMANTICS bump. |
||
|
|
58b5fad7f3 |
Translator: reads no VK_EXT_depth_range_unrestricted; a depth comparison notes the range everywhere
Where a profile enabled VK_EXT_depth_range_unrestricted the translator clamped a fragment function's depth output to [0, 1] itself (Vulkan then stores it unclamped) and recorded no PrecisionNote::RestrictedDepthRange for a depth comparison. The runtime never enables the extension (its README: the floor does not require it, and replace_region refuses a float depth upload as Gap::FloatDepthUpload), so on its devices the depth was already Vulkan's own clamp and every depth comparison already recorded the note; once validation enables what the runtime enables nothing runs either arm. Both go: DepthClamp::clamps and clamps_fragment_depth (the [0, 1] selects now run under the depth clamp range input alone, as they did on every profile without the extension), and depth_comparison records the note unconditionally. The enable-set facts class the extension as described and never enabled (the core reads none of it), so recommended_enables no longer names it. The VkExtension vocabulary stays. Docs: PrecisionNote::RestrictedDepthRange's doc and docs/API.md's catalogue entry say the note is recorded on every device, the runtime enabling no VK_EXT_depth_range_unrestricted. Tests: the test that compared a depth output with and without the extension and the test that the extension is read from a description go; the comparison test records the note on every profile, RADV's (which lists the extension) included; the kill and depth-clamp-range tests stay. Class 1 of the planner's rule (an alternative to what the runtime runs). No public item goes (signatures.py --check clean); the consumer's checkout (reims-vgpu at bd9d6ae85a) calls no recommended_enables and names the extension nowhere. Product lines: +34 -57 (most of both are doc lines). Modules change only on profiles that enabled the extension (RADV, lavapipe, NVIDIA golden rows move, re-stamped at the pin); no SEMANTICS bump (the profile's enabled set is in every cache key). |
||
|
|
4ff156420f |
Translator: a float fma is the device's Fma on every device; OpFmaKHR goes
The OpFmaKHR route (Route::Khr, chosen where a profile enabled shaderFmaFloat32) was a second form chosen by a query outside the nine rule 2 allows. The runtime never enables VK_KHR_shader_fma (the owner's fma ruling stands: GLSL Fma with PrecisionNote::NativeFma), so on its devices a float fma was already the device's Fma, and once validation enables what the runtime enables nothing runs the KHR route. It goes with what only it reached: the crate-private LeafCaps field and the routes' float field (a float fma's route is Route::Native on every profile), the IR's Inst::Fma and FunctionBuilder::fma with their arms in every pass, the serializer, the interpreter and the requirement derivation (FMAKHR, SPV_KHR_fma, shaderFmaFloat16/32). The SpirvExtension and VkFeature vocabulary stays. PrecisionNote::NativeFma's doc and docs/API.md's catalogue entry say a float fma is the device's Fma without naming a device that had OpFmaKHR. The runtime README's "Not enabled" row for shaderFmaFloat32 goes (tests::feature_enables fails on a row the profile no longer reads). Tests: the interpreter, builder and derivation tests of OpFmaKHR go; the route, fast-fmod and fused tests take the device's Fma on every profile; the tests that took one profile per float route take the first committed profile (one route now). Class 1 of the planner's rule (an alternative to what the runtime runs). No public item goes; the consumer's checkout (reims-vgpu at bd9d6ae85a) holds no use of the items removed. Product lines: +44 -143. Modules change only on profiles that enable shaderFmaFloat32 (moltenvk-m3's golden rows move, re-stamped at the pin); no SEMANTICS bump (the profile fingerprint changes with the field and is in every cache key). |
||
|
|
a347af5f65 |
Two stage bounds by path: kernels leave the process past 39,014, render stages are refused past 99,109
COMPILED_STAGE_WEIGHT is now 39,014: the heaviest kernel measured to compile in its creating process within 512 MiB of that process's resident growth on every driver measured. Made cold (no pipeline cache, shader cache off) and alone in its own process, the app library's heaviest kernel under the old bound (entry weight 39,014) grew the process by 350 MiB in 6.8 s on the Iris Xe of RPL-P (ANV, Mesa 26.2.6; job m3-max-66048), 148 MiB in 1.8 s on an RTX 3090 (NVIDIA 620.70.06; job m3-max-66050) and 80 MiB in 0.55 s on a Radeon 780M (RADV, Mesa 26.2.6; job m3-max-66049). No real stage between 39,014 and 99,109 is measured (the app's 63-kernel library, job m3-max-65984; the nine standard streams and the app's two recordings, states-only on lavapipe, job m3-max-66001). The older build's 1.76, 2.24 and 3.65 GiB (job m3-max-26147) and the helper's 2,620/2,763 MiB and 3 GiB breaches (job m3-max-65807) stay in the docs as what lies above it. No helper compiles a render stage, so the runtime keeps 99,109 as its own render bound (stage::RENDER_STAGE_WEIGHT): past it a render pipeline is refused (Gap::StageSize, StageGap::RenderStage), at or under it it compiles in the process with no cap. The heaviest real render stage measured (35,063 beside a vertex stage of 431; 39,424 as lavapipe's profile weighs it) grew the process by 316 MiB in 3.8 s on the Iris Xe (job m3-max-66048), 180 MiB in 2.5 s on the RTX 3090 (job m3-max-66050) and 58 MiB in 0.6 s on the 780M (job m3-max-66049). The docs say the two numbers measure two things and become one when a render helper exists. Metrics gains render_makes_past_kernel_bound and render_weight_past_kernel_bound_max: render pipelines translated with a stage past the kernels' bound, and the heaviest such weight. The translator's re-plan keeping the widest pin follows the constant (StageBounds::MEASURED), so SEMANTICS_VERSION 2269 -> 2270. The rt README's stage-bound section, its render-pipeline known gaps (the uncapped range), Gap::StageSize's docs, docs/API.md, docs/REFUSALS.md and the signature table are updated; the "132 s and 3.65 GiB" basis is replaced by today's figures. Test: a_render_state_past_the_kernel_bound_is_made_in_process_and_counted (with the kernels' bound set to 1, a render state is made, not refused, and counted once at its heaviest weight); it fails before this change, where the render check read the kernels' bound. Verified: the figures are the rows of jobs m3-max-66048, 66049 and 66050 (probe branch steelbrain/boundread-probe 7dd5c2f52e, never lands: each make's peak reset before it, VmHWM after it less VmRSS before it). Checks on the branch (f8ed8d8953, the same change on |
||
|
|
5d143de078 |
Validation: a difference under precision notes is a noted difference, counted apart
A candidate row whose bytes differ from Metal's under a comparison class unbounded by
precision notes was recorded Mismatch, so the public lavapipe batch counted 186 mismatches of
which 185 carry a note that can explain a difference, and a new mismatch would hide among
them. Such a row now records CandidateStatus::NotedDifference: never a match, never accepted,
and saying no more than that the row differs and its notes can explain a difference. It is
counted in its own column: the batch outcome and class noted_difference (batch-report,
batch-family, batch-scope, batch-summary), the evidence state noted_difference in
corpus-status. Mismatch stays for an exact class, a difference past a bounded table, and an
out-of-bounds target that escaped.
The owner's decision of 2026-10-06 stays: a case the C3 reviewed list holds under an answer
gap its structure meets (AnswerGap::met_by) keeps Mismatch, and the row names the gap in a new
field, held_open_by, which the executor's verdict line and the batch-run line print.
ReviewedList::holding_open is that rule, shared by C3's report (with the venue's device) and
the executor (candidate::engine::difference_status, with the case's structure alone: the
runtime path has no profile to ask which devices have the gap, so a listed case's difference
is a mismatch on every device, which hides none). C3 reads a noted difference as a mismatch,
so its verdicts do not change; the fast-math regrouping reading keys on "differs" instead of
"Mismatch".
The row contract enforces the vocabulary: a noted difference needs differing bytes, an
unbounded class and no escaped target, and no held_open_by; a mismatch that could be noted
needs held_open_by. comparison.rs's contract sentence now reads that a difference is never a
match: under notes it is a noted difference (unless an answer gap holds its case open), else a
mismatch.
Executor ABI vulkan-engine-v211 -> v212 (the recorded status changed): every recorded
candidate row is stale until rerun. Bless due on development: the authored compile census,
which keys on the executor ABI.
Tests: the row vocabulary (observation), classify and the report's column and held_open_by
line, install of a noted row (vulkan_batch), and difference_status over every committed C3
answer-gap entry (each stays Mismatch naming its gap) and a public case the list does not hold
(a noted difference).
Verified: not at commit time; the compile job and the validation suite run on this sha.
Verified with the two commits after it (the suite fixes and the ff55fa41 case fix), at their
tip 611f45a559 on development
|
||
|
|
35fe287776 |
Validation: a sample count the runtime makes no texture of is the device's not_enabled
A kernel case through the runtime that binds a multisampled texture of a sample
count the device's image format query lacks failed with free text ("texture 0:
a sample count of 2 is not among the device's (0xd)"): runtime_error took the
runtime's Limit::TextureSamples as any other error. The executor's own context
refuses the same texture typed (NotEnabled, from the same query), and the run
through the runtime already records a pixel format it makes no image of so.
Now Limit::TextureSamples is NotEnabled too, naming the texture, so the case
records a typed refusal on a device without the count and runs where the device
has it. On llvmpipe (sample counts 1, 4 and 8) that is the two public cases
3cadd32e61a4 (four-multisample-reads-at-two-samples) and 505599ae1551
(size-queries-of-multisampled-buffer-and-depth-cube-textures), which failed
before (job m3-max-65594).
- runtime: runtime_error maps Limit::TextureSamples to NotEnabled.
- engine_textures: a_sample_count_the_device_lacks_is_refused_as_not_enabled
(was ..._before_any_image) runs the case on each run, the own context and,
on Linux, through the runtime, and asserts NotEnabled naming texture 1 and
its 2 samples on both (the runtime arm failed with free text without this).
- docs/VALIDATION.md: says so.
These cases recorded no row before, so no recorded row observes the change; it
rides vulkan-engine-v211, the bump of the parent commit.
Verified before this commit: the two failures, on llvmpipe (Mesa 26.2.4) at
|
||
|
|
81eb5e3826 |
Validation: a texture-buffer out-of-bounds target through the runtime lies between guards
The run of a kernel case through the runtime made each texture buffer over an unguarded buffer (Placed::new), so a target of the texel buffer form recorded no guard count (escaped and past_end None). out_of_bounds::guarded() names every such target guarded, so matches() failed contained_in_guard and called equal bytes a Mismatch, which validate_content then refused as contradicting the equal hashes. Since texture buffers moved to the runtime ( |
||
|
|
38104834d4 |
validation: indirect_indexed_draws names the runtime's command shape the executor does not map
What: one requirement row, ToolingRequirement::IndirectIndexedDraws ("indirect_indexed_draws"),
stops the engine's candidate. It is this crate's gap (Limit::Tooling). Its structural check in
executor_contract::case_requirements matches an indirect command buffer of the one shape the
runtime builds, which no runtime-limit row names: render commands of indexed draws alone that
inherit the pipeline state and bind their own buffers, with no command the host encodes. Every
other command buffer already carries indirect_compute_commands, indirect_draw_types,
indirect_command_inheritance or host_encoded_indirect_commands, and a pipeline state in an
argument buffer carries argument_buffer_pipeline_state.
The free-text NotImplemented in candidate::engine::compute_case and graphics::stage_resources
("an indirect command buffer or a pipeline state in an argument buffer") is deleted. Both run
after require_case_families, which now refuses every such case typed, so a case of the
runtime's shape meets NotSupported::Requirements({indirect_indexed_draws}). Since the row is a
tooling gap, the checker's evidence_gap also takes no case of it ("engine_candidate:
indirect_indexed_draws (the candidate is stopped)").
The contract sentence of replay_observes_commands said both executors execute a case's
commands after its producer. It now says the Metal oracle does and the engine's candidate
executes none, naming the row. The same claim in unsupported_observation_requirements is
corrected the same way, and so are compute_case's doc (it no longer lists command buffers and
pipeline states among what it runs) and docs/VALIDATION.md (the runtime's form carries the row,
no longer executor_not_implemented).
Why: one vocabulary. The runtime-built shape was the only indirect command buffer the
vocabulary did not name: it met a free-text refusal.
Not built: mapping the runtime's shape through the runtime's indirect command buffer. Its
trigger is a guest count. No guest reaches an indirect command buffer today, because the
consumer refuses the creation. The row's doc records the trigger.
Versions: the classifier's analyzer_version goes from structural-triage-v85 to v86 (the
meaning of a replayed module's case changes: only the Metal oracle executes it). requirement.rs
and executor_contract.rs are classifier inputs, so the key changes with them too. The
executor ABI does not move: no committed case reaches the deleted arms.
Expected census moves, at the next named pin, not run here: none.
- Authoring-capability census: the row comes from a case's literals alone, never from a
source's structure, so no census row carries it. The full reclassify that the version bump
forces should give the same counts.
- Authored compile census: none of the 29 command buffers in the committed cases has the
runtime's shape (all 25 cases with one already carry a runtime-limit row, see
committed_command_buffer_and_pipeline_state_cases_refuse_by_their_requirements), so no cell
moves.
Tests: requirement::the_runtime_s_indirect_command_shape_stops_the_candidate_as_a_tooling_gap,
and case::tests::indirect_commands::the_runtime_s_command_shape_is_a_typed_gap_of_the_engine_candidate.
The second checks that the shape carries the row alone, that the checker names it as an
evidence gap, and that compute_case refuses it typed. It also checks that leaving the shape
(buffers inherited, or draws of primitives) carries the runtime-limit row instead.
Verified: m3-max-65550 (these two commits on the pre-enables base 7e080082cf): fmt,
signatures, clippy plain, --cfg m2v_gpu and --cfg m2v_cpu_icd, workspace Rustdoc -D warnings
green, validation 1333/1333; m3-max-65585 at 9e3e484a8a on
|
||
|
|
a2ad41850e |
Validation enables what the runtime enables, from the runtime's own tables
What: one definition of the enabled set. The runtime gains one public function, `metal2vulkan_runtime::floor::enable_set()`: every feature and extension of the translator's vocabulary that device creation enables on some device (its ENABLED groups' named features and its creation extensions), and `shader_enables` reads the same iteration. Validation's `engine::runtime_enables(description)` keeps of a description what that set holds (plus the features that have no member at the runtime's Vulkan version and the extensions exposing kept features) and `engine::runtime_description(stem)` reads a committed profile at the runtime's version restricted to it. The engine context's list (`engine_list`) is that set; NOT_ENABLED, the old executor's list, `Enables::copy`/`expose` and the unnamed members loop are deleted. The authored-compile census, `corpus-pipeline` and `load_device` compile for `runtime_description`. Why: validation executed, and the census reported, forms the runtime never ships: the ordered framebuffer fetch on lavapipe, ray query and acceleration structures with deferred host operations, float atomic add, OpFmaKHR, buffer robustness and others the runtime's floor tables do not enable. Tests: a runtime test that `enable_set()` equals what `shader_enables` derives on a device with every ENABLED feature and every creation extension; a validation test that no committed profile's context (device and restricted) enables a member or extension outside the set, ray query, acceleration structure and deferred host operations named. docs/VALIDATION.md states the four places where the census's reading differs from the runtime's own answer for a device. ENGINE_EXECUTOR_ABI vulkan-engine-v209 -> v210. Verification: none at this commit; its compile, suite and census jobs follow. |
||
|
|
591f813569 |
REFUSALS.md: a rate map outside the compile's measured bounds is ours
docs/REFUSALS.md section 4 showed '-' for its five rows (UnpinnedCompile: ScreenExtent, LayerCount, DenseSamples, SampleOutOfRange, SampleCount). The code says the basis: each is built in one place, `RasterizationRateMap::new` (bind/rate_map.rs), through `RateMapError::Unpinned`, which refuses a descriptor outside the bounds where Apple M3's compile was measured, and the enum's own doc states "The bounds are this crate's, not Metal's". So the script derives `ours` for the section, as it does for the translation caps and the deadline. No row of another section moved. Every section's '-' total is now 0. Verified (locally, source-reading scripts): refusal_surface.py --check and --selftest pass. |
||
|
|
dd150e4f46 |
Delete the 14 Feature variants and 3 Needs variants nothing builds
Nothing in the product crates built these 14 Feature variants: SamplePositions, TextureSize,
TextureSampleCount, TextureView, MipmapGeneration, HostMemory, GpuTimes,
ViewFormatReinterpretation, SeparateMultisampledDepthStencil, SparseTextures,
TimelineSemaphores, HeapTextureTiling, UndeclaredTextureUsage and RenderTargetSize. They were
refusals of the runtime this tree cut over from, and so they were docs/REFUSALS.md's last 14 '-'
rows. Nothing built the Needs variants DeviceCapability, MetalGpuFamily and MetalRefuses either,
nor called their constructors Unsupported::device_capability and Unsupported::metal_gpu_family
outside tests. No doc or test showed one to be the vocabulary of a Metal refusal anything
answers: the three Feature docs that said the runtime answers MetalGpuFamily or MetalRefuses
were corrected in the previous commit.
Searches:
- The tree, outside the definitions, the reach rows and the generated tables:
- Feature::SeparateMultisampledDepthStencil in one translator test
(bind/depth_stencil_copy/tests.rs), now Feature::StencilExport, since
depth_stencil_copy_modules refuses with whatever feature its caller names;
- Feature::SparseTextures, SparseNeed and Unsupported::device_capability in one conformance
test of verdict::device_gap_of's DeviceCapability arm. That test pinned a chain from the
runtime's `sparse_refusal`, which no longer exists, so the test and the arm go together;
- Unsupported::metal_gpu_family and the three Needs variants in error/tests.rs
(one_of_each and the retry table);
- the golden and public-fixture tables' refusal cell (golden_hashes.rs, public_fixtures_engine.rs)
named the other Needs through a wildcard arm, now unreachable: the three arms are the cell;
- stale prose naming them in conformance cases/sparse_heaps.rs, probes/bgra4_write_and_mipmap.m,
the engine fixtures README and docs/API.md (its TextureSampleCount sentence now names the
runtime's Limit::TextureSamples, which refuses that texture);
- the payload enums SparseNeed and LinearNeed are used by nothing else, and go too.
The other hits for these names are other enums' variants (the runtime's Limit::TextureSize,
Refusal::TextureSampleCount, Gap::TextureView, ImportHandle::HostMemory, ...).
- The consumer's checkout at bd9d6ae85a: 0 hits for Feature:: with any of the 14, SparseNeed,
LinearNeed, Needs::DeviceCapability, Needs::MetalGpuFamily, Needs::MetalRefuses,
metal_gpu_family or device_capability( (its own `Piece::SamplePositions` and
`Piece::SparseTextures` and its own HostMemory types are unrelated).
Needs is now AnyOf, NotImplemented and NotRepresentable; Needs::basis answers Device, Ours and
Device for them. The script drops the two constructors and their condition texts.
docs/REFUSALS.md: section 1 is 119 variants, every one with a site and a basis (device 51,
ours 68, '-' 0). api_signatures.tsv: 35 records removed, all in metal2vulkan::error; the public
surface table loses SparseNeed and LinearNeed.
Verified (locally, source-reading scripts): refusal_surface.py --check and --selftest pass;
signatures.py --check passes after --bless.
|
||
|
|
004573964a |
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. |
||
|
|
7f156bc920 |
Error::basis answers a translation error from what its refusal needs
The runtime's Error::basis answered None for every Error::Translation, so each translator
refusal a guest met sat in a consumer's census unsorted between Metal's own refusal and our
gap, and 36 of the translator's 133 Feature variants showed no basis in docs/REFUSALS.md.
What:
- RefusalBasis moves to metal2vulkan::error; the runtime re-exports it at the same path
(metal2vulkan_runtime::RefusalBasis: its signature records do not move).
- Needs::basis: AnyOf, DeviceCapability and NotRepresentable are Device, NotImplemented is
Ours, MetalGpuFamily MetalDocumented, MetalRefuses MetalMeasured.
- metal2vulkan::error::Error::basis: a refusal's from its Needs; LimitExceeded, Budget and
Internal Ours; InvalidInput, InvalidDescriptor, NeedsInput and Cancelled None. Both matches
are exhaustive in the translator, so a new Needs or Error variant must answer (the runtime
could not match the translator's #[non_exhaustive] enums without a wildcard arm).
- The runtime's arm is `Error::Translation { error, .. } => error.basis()`.
- refusal_surface.py follows the helper a site hands its feature to (a front-end reference is
NotImplemented; the feature argument of a construction; a helper's argument; the enclosing
function's computed construction; a function that returns the feature, through its calls in
its file). Its kind-to-basis table is read from Needs::basis's arms. --check fails on a
variant with a site whose basis is not settled.
- docs/REFUSALS.md: the 22 variants with a site and no basis are settled, and their Where
cells filled; no other row's Where or Basis moved. Section 1's totals: device 51, ours 68,
'-' 14 (the 14 variants nothing builds).
- The docs of SimdgroupMatrix16x16x16, IndirectRenderState and GlobalBuiltinInFragment (and
three comments that repeated them) said the runtime answers them as Metal's own refusal; no
code does, and the translation refuses them NotImplemented on every device, so they say that.
Size, past the 200-line mark (hand-written lines, generated tables excluded): 272 added, 50
removed. The script +147/-12 (helper following and its call scan about 60, the Needs table and
derived basis 20, scan bookkeeping 25, the unsettled check 12, selftest cases 20, doc text 10);
the translator +63/-7 (21 of them RefusalBasis moved from the runtime, -23/+8 there); the
runtime test +44; docs/API.md +6.
Verified (locally, source-reading scripts): refusal_surface.py --check and --selftest pass;
with unsettled() emptied the selftest fails; signatures.py --check passes after --bless added
7 records, all on metal2vulkan::error.
Verified: compile m3-max-65442 (fmt, refusal_surface.py --check and --selftest, signatures.py --check,
clippy plain / --cfg m2v_gpu / --cfg m2v_cpu_icd, workspace Rustdoc -D warnings, scripts/api-docs);
host suites m3-max-65443 (metal2vulkan, -air, -runtime: 3969/3969, the golden hashes and the old
render key among them; doctests); before-run m3-max-65444 (development plus the new test alone):
a_translation_error_answers_the_basis_of_what_it_needs fails as expected (None against Some(Device)).
|
||
|
|
bebd518dfb |
validation: delete runs_through_runtime, always true for a mapped kernel case
The predicate answered true for a Threads or Threadgroups dispatch. Every kernel case the engine
maps comes from compute_case, which dispatches by threads (a case has no indirect dispatch to map),
so it was true for every case it was asked about. Its one product caller, run_on_context, now
routes every mapped kernel case through the runtime when no profiles-layer restriction is
requested, as before. The runtime run's own match still refuses any dispatch but threads or
threadgroups.
Deleted with it: the predicate's own test (a_plain_kernel_case_and_only_one_runs_through_the_runtime)
and its plain_kernel helper, which nothing else used. The doc references are rewritten
(ComputeRun::spv_sha256, runtime_fingerprint, run_on_runtime, runs_render_through_runtime,
platform::runtime, engine_textures' runs, docs/VALIDATION.md).
Search: `git grep -n runs_through_runtime` at
|
||
|
|
a93a0d69dc |
Replay player: the unwritten count reads a buffer by its slot's access and its block's earlier bytes
The player's `unwritten` line (Shared buffers a dispatch read before any recorded write, upload
or GPU pass reached them) misread in two of the three ways the tool bug row named:
(1) every buffer a compute encoder bound or used counted as read at the next dispatch, so outputs
counted: 12,607 of one recording's 12,611 were write-only first bindings;
(3) a buffer made in a stream block counted as unwritten from its making, though m2v.write records
into the block before the making had put its bytes there.
The third, that commits at m2v.split and m2v.commitPart are not counted, does not hold: the
player plays each as the command buffer's `commit` to the backend (frames_releases_and_splits
and a_part_commits_only_where_the_host_cut_it show the backend's commits), whose commit counts.
Now, per compute encoder, the tracker keeps the waiting buffer bound at each buffer slot, its
state's buffer accesses (ComputePipelineState::buffer_accesses) and the buffers useResource:usage:
names with their usage bits. A dispatch reads a buffer at a slot its state reads and writes it at
a slot it writes; a slot the state does not use touches nothing; a used buffer goes by its read and
write bits. A buffer another call of the encoder named, or one bound under a skipped state, is
read and written, as before, and the line says how many of the count were only counted so. In a
command buffer a dispatch's write comes before later dispatches' reads. At the commit the buffers
read while waiting are counted once each and those written are reached. Each Shared block or heap
keeps the byte ranges reached in it, merged; a buffer made over reached bytes is not waiting.
Tests: a_dispatch_reading_a_buffer_nothing_recorded_reached_is_counted_once (rewritten for slots
and the block's earlier bytes), a_dispatch_reads_a_buffer_only_where_its_state_or_its_usage_reads_it,
a_buffer_made_over_its_block_s_reached_bytes_is_not_unwritten (host), and on the device cfgs
the_unwritten_line_counts_what_a_state_reads_before_anything_reached_it (scale_offset reads #6,
writes #7, reads #11 made over an m2v.write: "unwritten 1", where the old rule counts 3).
docs/REPLAY-STREAM.md's paragraph says the rule.
|
||
|
|
4a09c07658 |
Replay player: a play cut after its last frame names the command buffers held there, not an invalid stream
A play cut with --until-frame F (or at its recording range) ended exit 1 with "invalid stream: command buffers [...] still wait on events at the stream's end" where a command buffer committed before the cut waited on an event a call past the cut signals (glbench-3090-r4 cut at 400: cbs 128646 and 128648). The calls past the stop may signal it, so the stream is not invalid there. The player now tells the stream's end from the stop after its last frame. At the stop, the command buffers still held on events go into Report::held and a `held #ID ...` line, and the play ends as it would without them (exit 0 for `ok`). At the stream's end a held command buffer stays the invalid-stream error, a last frame past the end included. Test: a_play_stopped_after_its_last_frame_names_the_command_buffers_held_there (a synthetic stream: cut at frame 0 names #4 held and waits for nothing; played whole, the later signal lets #4 complete; a stream ending with #4 held is invalid with no last frame and with one past its end). Without the fix the cut play ends Err(Invalid). |
||
|
|
6c1dff3f09 |
Translator: under the identity domains, constexpr samplers a lane chooses among beside an argument buffer's texture are one sample through the set-1 sampler array (SEMANTICS 2265)
Some kernels sample a texture their argument buffer holds through a sampler that the run picks
among constexpr samplers with consecutive handles: a program-scope table of samplers read at an
index only the run knows. Under the identity domains, the runtime's, each such sampling was a
switch over the candidates: one arm per candidate, each a NonUniform sample of the heap element
through that candidate's set-1 sampler, and a null arm. RADV wraps each NonUniform sample in its
own waterfall loop (read_first_invocation). The 780M library's heaviest kernel holds 284 such
switches of eight arms, so 2,272 samples and 2,272 driver loops. Its cold create on a 780M peaked
at 7.8 GiB.
select_heap_array now takes the identity domains too. Where every candidate is a constexpr sampler,
their handles are consecutive, the use is not tangled (no fragment implicit level), and every
candidate's sampling is the same but for its sampler, the sampling is one sample. It reads the
set-1 sampler array of its use, NonUniform, at the pushed index (PushField::ConstexprSampler) of
the candidate the handle names. emit::identity_element selects that index among the candidates'
at run time. A handle outside the array still reads zero. finish pushes each candidate's index
and records the use in SamplerPlan::heap_array_identity in place of a binding. Sampling::words
counts each candidate's selection (Source::HeapArray::pushed, 0 outside the identity domains, so
the resident-table domains' weights are unchanged).
Under the identity domains the switch stays where the sampling compares, reads an integer class,
or reads pixel coordinates. Metal's bicubic filter on an argument buffer's texture is refused
before this (bicubic::check). Raw-texel states do not arise here, because the element is read in
its declared class. The resident-table domains keep their form unchanged.
One form for every device: the runtime's floor requires
shaderSampledImageArrayNonUniformIndexing (floor.rs), every committed profile reports it, and a
heap image sampled at all already needs it (texture/slot.rs).
The form is ported from 4b7d9d48ef (steelbrain/privarena-sampler-b, unlanded) and narrowed to the
ruled domain.
SEMANTICS_VERSION 2264 -> 2265. The golden table and the old render descriptor key get
re-blessed at the pin: m3-max-65203 shows "bless due" with exactly 16 cells changed, all
engine/sampler_table.ll sampler_table_held, one per committed profile.
Tests:
- engine_identity's
chosen_constexpr_samplers_beside_an_argument_buffer_texture_are_one_sample_where_alike
(replaces ..._is_a_switch_over_them). On every committed profile under the identity domains, a
kernel's float sample through three chosen constexpr samplers is one sample: one sampled image,
no switch, one ConstexprSampler pushed per candidate, and L3 passes. The switch stays, with a
sampled image per candidate, for pixel coordinates (two linear pixel samplers that differ only
in their border color), an integer texture, a comparison and a fragment's implicit level. The
resident-table domains take their set-0 array for all but the fragment case, which shows the
candidates' samplings are alike and only the identity domains' rule keeps the switch.
- argument_sampling's
every_device_samples_an_argument_buffers_texture_through_a_table_of_constexpr_samplers now reads
the module the device's translator gives sampler_table_held, asserts 1 sample and 0 switches,
and prints that, then compares each of the 20 texels with Metal's answer as measured on an
Apple M3 Max. The fixture has four candidates. The form is the same for any count of two or
more, so it covers the eight-arm sites, and its texels are M3-measured.
Verified:
- Compile: m3-max-65200 (fmt, signatures, refusal surface, clippy plain / m2v_gpu / m2v_cpu_icd,
workspace Rustdoc -D warnings), m3-max-65203 (translator suite 3210 passed, lavapipe runtime
suite 625 passed).
- The execution test passed on llvmpipe (65203), RTX 3090 (65223), RX 7900 XTX (65224) and Iris
Xe (65225).
- Rows: development
|
||
|
|
2fbfafe0fe |
Translator: a structurizer variable no later trip reads is ended at each loop trip's top (SEMANTICS 2264)
What: spirv::carry::end_dead_carries, run in the stage bound after the uniform-load hoist (and in pipeline::testing's typed module), stores an undefined value into a demoted value's or a phi's Function variable at the top of the first block of each loop whose body holds every whole store of the variable, where the variable is live into that block and the block does not read it before a store. P8 marks those variables LocalVar::trip_local, only in a walk that is not predicated: the predicated walk runs a loop's later trips for an invocation that left it, which reads the value of its own last trip after the loop. The new field rides through roll's renumbering with its variable; roll's own variables are unmarked. Terminator::for_each_target is the read-only twin of for_each_target_mut. cache::SEMANTICS_VERSION 2263 to 2264. docs/ARCHITECTURE.md names the pass. Why: the exit dispatches and pending guards P5 to P7 add give paths from a back edge to a read of such a variable that pass no store of it. No execution takes them, but the driver keeps the variable around the back edge as a phi live through the whole loop. In the source the value's definition dominates each use and the loop's header dominates the definition, so no trip reads the value an earlier trip left; the store ends it at each trip's top and the driver keeps nothing of it. Jobs m3-max-65023 (780M and RTX 3090) and m3-max-65024 (Iris Xe) timed the same form, written by a probe after roll and hoist, cold through the runtime's helper against development, arms alternating in one job: helper peak and CPU time fell on all three cards. Tests: tests::engine_trip_carries runs a loop with three exits, the second reading a value its trip defined, on six profiles: a value is ended at a trip's top, carry::dead_carries finds no variable left that no later trip reads but the module keeps around a back edge, the module passes spirv-val, and the interpreter gives the source's words. tests::engine_divergent_barriers adds a vote loop whose early leavers read their last trip's value after it (loop_leaver_k), run predicated on six profiles under Vulkan's barrier rule. The compile job, the two tests' red runs without the form and without the predicated rule, and the states-only plays run on this commit. |
||
|
|
325e88c276 |
Runtime: an indirect offset off 4 is Metal's documented refusal; arguments past the end are ours
Refusal::IndirectOffset covered two cases under one `ours` basis. Metal's headers document
the first: "indirectBufferOffset must be a multiple of 4" (MTLComputeCommandEncoder.h for
dispatchThreadgroupsWithIndirectBuffer:indirectBufferOffset:threadsPerThreadgroup:,
MTLRenderCommandEncoder.h for the indirect drawPrimitives and drawIndexedPrimitives; Apple's
page for the indirect drawPatches sends its offset to the feature set tables, whose minimum
constant buffer offset alignment is 4 bytes). The headers state no rule for the second,
arguments that run past the buffer's end, which is the runtime's own check because Vulkan's
indirect commands read inside the buffer (VUID-vkCmdDispatchIndirect-offset-00407,
VUID-vkCmdDrawIndirect-drawCount-00487, VUID-vkCmdDrawIndexedIndirect-drawCount-00539).
- IndirectOffset { offset, length } is now the offset-off-4 case alone, Basis:
metal-documented.
- New IndirectArgumentsPastEnd { offset, length, needed }, Basis: ours, for arguments at a
multiple of 4 with fewer than `needed` bytes (12 dispatch, 16 draw, 20 indexed draw) after
the offset, or an end that overflows.
- Both raise sites (the indirect dispatch, and the indirect draws' shared check) test the
alignment first, then the length.
- Regenerated docs/REFUSALS.md and error/basis.rs (refusal_surface.py), and
api_signatures.tsv (one variant added). The runtime README's indirect-draw paragraph
names both refusals.
Tests: every_device_refuses_an_indirect_dispatch_off_4_or_past_the_buffer_s_end (compute)
and every_device_refuses_an_indirect_draw_off_4_or_past_the_buffer_s_end (draw) assert each
variant and its basis(): off 4 at 2 and at an offset that is also past the end (alignment
first), past the end at a multiple of 4 and at an overflowing offset, an indexed draw's 20
bytes where a plain draw's 16 fit; then the arguments in each buffer's last bytes dispatch or
draw and their results are read back. The compute refusal test's two IndirectOffset asserts
moved into the dispatch test.
Checked here: refusal_surface.py --check and signatures.py --check pass (source only).
|
||
|
|
b20dc87d22 |
Translator: the outline pass goes; a repeated region is written in line again (SEMANTICS 2263)
What: spirv::outline (a repeated region of 500 or more instructions written once, as a kept routine declared DontInline) is deleted with its tests, its call in the stage bound and in pipeline::testing, its notes in weights.rs, ir::Function::kept, ModuleBuilder::kept_routine and the serializer, docs/API.md and docs/ARCHITECTURE.md. roll's items and its spine take back their own visibility and signature (the loop-body sequences only the outline search read). The bounded-growth test's chain is all one group again: no pass now folds a repeated graph. cache::SEMANTICS_VERSION 2262 to 2263. The sampling and texel routines stay kept routines, DontInline as before. Why: a regression on NVIDIA. Job m3-max-64837 (RTX 2080, 620.70.06, um790, exclusive) made k7 (610e4b3d of the Iris capture's library, weight 320,401) cold through the runtime's helper, arms A |
||
|
|
5d2c0bda2e |
Conformance: signed remainders of every width and sign, recorded on the M3
The case signed-remainders runs the owned fixture kernel_signed_remainders: each of 238 threads reads a 64-bit dividend and divisor (17 dividends by 14 divisors: both signs, the most negative long and int, low words that are the most negative short and char, values past 32 bits) and writes eight words: the remainder of the low words as int, short and char, the 64-bit remainder's two words, the exclusive-or of an int2 remainder's lanes, and the low word's remainders by 3 and -8. Apple's compiler writes srem i32, i16, i64 and <2 x i32> by run-time divisors and srem i32 by the constants 3 and 8 (x % -8 is x % 8). A remainder MSL leaves undefined (by zero, or of the most negative value by -1) is never taken: the fixture writes 0xdeadbeef there. Every column compares exactly. It holds every device to Metal's answer where the translator's signed remainder (the commit before last) replaced OpSRem, which Vulkan makes poison for a negative operand without maintenance8. Recorded on the M3 Max, macOS 27.0.1 (job m3-max-64656, which also compiled the fixture's companions with scripts/regen-air-fixtures under Apple metal 32023.922 and LLVM 21; TOOLCHAIN records the fixture's line). Metal's 1,904 recorded words equal C's truncating remainder for every operand pair (checked from the recording against a reference written apart from the fixture). docs/CONFORMANCE-COVERAGE.md regenerated (scripts/conformance-coverage/coverage.py). |
||
|
|
7e92b1d0fa |
Translator: a repeated region of 500 or more instructions is written once, as a kept routine
What: a new pass, spirv::outline, runs on every module after rolling and hoisting. It finds a set of regions of one function that are the same code (one sequence of the function's spine, loop bodies included; entered only at the start and left only at the end), each of at least 500 instructions with a call of a kept routine counting one, writes the first as a new kept routine (Function::kept, declared DontInline, the form ModuleBuilder::kept_routine makes) and replaces every region with a call of it, then looks again, at most 64 times. Values from before a region are parameters (one per distinct set of the regions' values; a constant that differs only where any value may stand); a pointer parameter is a Function, Private, Workgroup or UniformConstant variable itself or a PhysicalStorageBuffer pointer; values read after a region are the routine's results (several in a struct). A Function variable only its region uses becomes the routine's own where the region is in no loop or its first use stores the whole variable in a block the region always runs; otherwise it is passed. Anything else that differs keeps the regions in line. Candidates come from the spine's keys (16-item windows hashed, extended both ways); a set whose exact comparison fails at an operand or result is compared again without that item. The spine (roll::spine) takes a flag to walk loop bodies as sequences; rolling passes false and is unchanged. SEMANTICS_VERSION 2259. API.md and ARCHITECTURE.md say the routines exist. Why: NVIDIA's driver compiles a DontInline routine once and Mesa's drivers inline it either way. On the RTX 3090 (620.70.06, job m3-max-64453) a generated kernel calling a 1,984-instruction function from 50 places was created in 21.5 s inlined and 52 ms as a kept routine (51.8 s and 75 ms with 64 values live across every call); its dispatch GPU time was the same with few values live and 20.6% lower as a routine with 64 live. A 497-instruction function: 0.1% and 19.7% lower. 500 is the smallest size measured within 3%. RADV and ANV (Mesa 26.2.6) compiled identical code for the call, DontInline and inlined forms (jobs m3-max-64357, m3-max-64379). How verified: spirv::outline::tests build kernels with three equal regions (a variable, a selection's phi, a counting loop), a chain where each region reads the previous one's result, a middle region that differs, and two regions in a loop whose accumulator is read before it is written; each checks the routine and call counts, the module through the verifier and spirv-val, and the words the interpreter writes against the unrewritten module's and the expected ones. |
||
|
|
19620c6f4d |
API.md: the fractional viewport's accepted difference names the devices measured
What: section 10's Draws entry on a filled primitive past a viewport edge that crosses a pixel. It said a Vulkan device covers such a pixel where its sample lies in the clipped primitive; it now says what was measured: RADV (RX 7900 XTX, two Radeon 780Ms, RX 550) and NVIDIA's driver (RTX 3090, RTX 2080, RTX 5080) cover every pixel the viewport overlaps, as Metal on the M3 Max does; lavapipe covers such a pixel only where its sample lies in the clipped primitive; the Iris Xe (ANV) covers every pixel the near edges cross and none the far edges cross, the accepted difference where that pixel's sample is outside or on the edge and a driver bug (the runtime README's known gap) where it is inside. Why: the entry claimed more than was measured; seven GPUs show no difference at all. How verified: replays of fractional-viewport-coverage through the runtime, each differing pixel printed against Metal's recording: m3-max-64279 (XTX), 64288 (780M 1002:15bf), 64280 (780M 1002:1900), 64323 (RX 550), 64286 (3090), 64287 (2080), 64282 (5080): 0 differing pixels; m3-max-64281 (Iris Xe): 120 pixels, all far columns and rows; lavapipe's 344 elements from its ledger row. The entry's bold lead-in (the allowance slug) is unchanged. |
||
|
|
eed9ab3b52 |
Conformance ledger: the Iris Xe's fractional-viewport-coverage row, a driver bug and the accepted difference split by pixel
What: one row of known-gaps-rt.tsv, fractional-viewport-coverage on the Iris Xe at case/drawn/texels
(480 elements differ (F32), the largest difference 12), and docs/CONFORMANCE-COVERAGE.md re-derived
(the ledger's row count and the case's gap list).
Why: the case postdates the last round's replays, so no GPU venue had replayed it, and the next round
holds every GPU venue to the ledger. The Iris site mixes two causes, so the one row splits them by pixel:
- 240 elements, 60 pixels (the far column and row of the arms ending 0.7 into a pixel): each centre lies
inside the viewport and is undrawn, ANV's truncated scissor far edge (Mesa update_scissors), a driver
bug, the runtime README's known gap of render encoders; not an accepted difference.
- 240 elements, 60 pixels (the far column and row of the arms ending 0.25 into a pixel and on a pixel
centre): each centre lies outside the viewport or on its far edge, the accepted difference of
docs/API.md section 10 (Draws).
The Iris draws every arm's near partial column and row, as Metal does.
How verified: both cases replayed through the runtime on each GPU venue the round replays, with a probe
(never landed) that printed every differing pixel against Metal's recording, built at 8dc5ebbe9f
(development
|
||
|
|
c5ee8d7919 |
rt: Error::basis answers each refusal's basis, generated from its Basis: line
What: a public RefusalBasis (MetalDocumented, MetalMeasured, Ours, Device) and Error::basis, which
answers Refused, Limit and Unsupported from the variant's own basis, BelowFloor and
NoDirectDriverLoading as Device, and None for Translation, the platform's and Vulkan's failures and
the consumer's own block, stage or quiesce. Refusal::basis, Limit::basis and Gap::basis live in
crates/metal2vulkan-runtime/src/error/basis.rs, which scripts/refusal-surface/refusal_surface.py
writes from the `Basis:` line each variant's doc comment ends with: 131 arms (Refusal 82, Limit 17,
Gap 32), one per variant in declaration order, no `_` arm. The doc comment stays the one source.
Why: a consumer's census of the refusals its guests meet could only match names, so 67 refusals
whose basis is ours counted as "Metal refuses it". A typed basis tells them apart.
How: the script enumerates the enums structurally (rt_refusal_enums), reads each variant's pattern
(`Name`, `Name(..)`, `Name { .. }`) with enum_arms, and maps the basis value to the RefusalBasis
variant it names. It fails where the enum has no such variant (metal-takes and unknown have none:
the value comes with the first variant that needs it) and where a name is too long for rustfmt to
keep its arm's pattern on one line. It writes the file as `cargo fmt` leaves it (one line per arm,
else rustfmt's block form past 100 columns), so no rustfmt run is needed. `--check` fails where
basis.rs is stale, as for docs/REFUSALS.md, and one run regenerates both. `--selftest` gains three
cases: the arms and the block form, two Basis lines give two files, a missing value fails.
Verified: refusal_surface.py --check and --selftest, signatures.py --check and cargo fmt --check
pass on this tree. The generated forms were checked against rustfmt at five name widths and three
variant shapes. The compile job and the lavapipe rt suite are named in the lane report. Without
the change, the new tests do not build: RefusalBasis is unresolved and `basis` is not found.
|
||
|
|
339d8f05c7 |
Runtime docs: a waiter on a signal held for room reads Committed until it is staged; the 2019 MacBook Pro's order as job 64081 shows it
A wait for an event's value is met once a signal of it is submitted (staged); a signal its queue holds for room is not yet staged, so its waiter reads Committed for as long as the signaller's queue takes to reach it. The Scheduled doc, newSharedEvent's and docs/API.md's accepted difference now say so: within the M3 Max's own hold, which keeps a shared-event waiter at Committed until the value lands. The README's 2019 MacBook Pro sentence now states what job 64081 showed and no more: on the Radeon Pro 5300M an unrelated read of a second process completed 0.99 to 1.97 ms after its commit beside about 160 ms of another process's submitted work; a dependent read completed after its writer and 19.06 to 19.26 ms before the first of 4 command buffers committed after the write (committed, not shown submitted); the UHD 630 ran both processes first in, first out in all 18 rounds, so its reader-after-writer is not told apart from that order. Docs only. |
||
|
|
7911c011a0 |
Runtime: a queue keeps on the VkQueue only what it has room for, and another queue's later command buffer passes the rest
A queue sends a group only while it has room (submit::room): with fewer than two submissions not seen complete always, and with fewer than IN_FLIGHT while the expected runs behind the oldest, the group's with them, stay within GROUP_RUN (16 ms). Without room, a command buffer the held group does not take (by GROUP_RUN, UNSEEN_JOINS or GROUP) waits in its queue's list, not staged, with the queue's later commits behind it; the submit thread skips that queue and other queues' later commits go on. Each held command buffer is scheduled as it would be in a group, in commit order once its waits are met, its scheduled handlers run: only its vkQueueSubmit2 waits for room (WorkState::hold). One that presents a drawable, has nothing for the GPU, or ended sends its queue through to it, as its group would go at once. Everything that sent a group still sends it: a signal as staged, a host wait or send_now, stop, a busy completion thread, an empty command buffer, a conflict with a texture copy. A group no longer goes at its sixteenth command buffer: the seventeenth finds it full and waits for room. A queue whose expected run is not yet known has room for two. Fences: a wait on another queue also goes after an update in a command buffer held for room there, scheduled before the waiter was; that queue goes through to it first. A held head with no group is staged before any other command buffer, the earliest held first, so the order of holds is the order fences read. abandon ends the queue's command buffers not yet scheduled in place, in the queue's order behind those held for room, which go at once. Metrics::held_for_room counts the command buffers scheduled while held for room (api_signatures row). Why: one queue's backlog no longer delays another queue's command buffer by more than about GROUP_RUN of that queue's expected GPU time. |
||
|
|
6da9a2bca2 |
Fractional viewport coverage is an accepted difference beside a point's
The planner's ruling on Metal's recorded answer (fractional-viewport-coverage, m3-max-64012): MTLRenderCommandEncoder.h's setViewport: states only that fragments outside the viewport are clipped, not which a pixel the viewport's edge crosses is; the M3 covers every pixel the viewport overlaps, a partly held pixel included, and a Vulkan device covers a pixel where its sample lies in the clipped primitive. Rule 1 does not emulate what Metal leaves unstated, and a static note would be decided by a viewport's value at the draw, so docs/API.md's Draws list gains the entry beside the point's and the lavapipe row's reason becomes it. The GPU venues' rows come with the next round's replays. |
||
|
|
2470d0f5f4 |
Conformance ledger: fractional-viewport-coverage on lavapipe, open
Metal on the M3 covers every pixel a viewport overlaps for a draw that reaches past it, a pixel the
viewport holds only part of included; the runtime clips at the Vulkan viewport's own edges and
lavapipe covers only pixels whose centres the clipped primitive holds (344 F32 elements, largest
difference 11.25; replay m3-max-64022 at
|
||
|
|
44c96aa50c |
conformance: Metal's recordings of fractional-viewport-coverage and lines-fill-past-the-viewport
Recorded on the M3 (macOS 27.0.1) by job m3-max-64012 at
|
||
|
|
3051b00b00 |
conformance: fractional-viewport-coverage and lines-fill-past-the-viewport (unrecorded)
What: one module, cases/viewport_cuts.rs, of two cases. Each is one pass into an RGBA32Float target cleared to -7.5, every draw its own colour (tob_renders: tob_rect, tob_triangle, tob_solid), the whole target read back. - fractional-viewport-coverage: a filled draw over four viewports whose edges lie inside a pixel, each in a 12-pixel cell of a 48 by 24 target: far edges .7 into a pixel from an edge on a pixel boundary; .3 and .7; .75 and .25 (near and far pixel each a quarter inside, neither centre held); both edges on a pixel centre. Each viewport is drawn twice: a rectangle reaching to clip 1.25 (inside the 1.5 w band point-viewport-coverage found Metal keeping points in) and a triangle reaching to clip 6 (past it). - lines-fill-past-the-viewport: setTriangleFillMode Lines, three triangles each through an integer 8 by 8 viewport in a 16-pixel cell of a 48 by 16 target: one corner inside and two past the right and bottom edges, inside the 1.5 w band; the same shape past the band; and a triangle the viewport lies wholly inside, every edge more than a pixel outside it. Why: a fractional viewport's far row or column, whose pixel centre lies inside, is cut on one Vulkan driver, and a triangle under the Lines fill mode larger than its viewport has no Metal recording. Both need Metal's own answer before anything is ruled. The M3's next recording batch records them; until then the replay reports each as "no recording" and nothing is ledgered. Tests (no device): every viewport lies in its own cell with unreached pixels around it; each arm's near and far pixel lies against its viewport as its docs say; the geometry reaches past the viewport inside and past the band; every colour is its own; the line triangles cross or surround their viewport; every line edge passes at least 1/16 pixel from every pixel centre and diamond corner of the target. Once recorded, Metal's target is held to what every viewport rule gives (a pixel held whole is drawn, a pixel not reached is the clear), never to one rule. docs/CONFORMANCE-COVERAGE.md regenerated (case modules 181). |
||
|
|
78a19891d5 |
docs/VALIDATION.md: a bound texture buffer runs on both executors
The authored-case requirements section still said a bound texture buffer carries texture_buffer, which the runtime does not make. Texture buffers ( |
||
|
|
3a6d244ae2 |
Translator: runtime-floor's recommendation leaves out its texel-buffer update-after-bind pair, and a device made from it refuses texture buffers naming the feature
Texture buffers (
|
||
|
|
d274b0b474 |
Conformance ledger: the texture-buffer and held-texture routes of norm-storage-codes on the NVIDIA cards and the Iris Xe
What: 20 rows in known-gaps-rt.tsv, at case/hsw_buffer/texels and case/hsw_held/texels of
norm-storage-codes-{rgba8unorm, rgba8snorm, rgb10a2unorm, rgba16unorm, rgba16snorm}: ten on
NVIDIA, ten on the Iris Xe. Each carries its card's hsw_write row's reason, with one more
sentence:
- the route answers as `hsw_write` does: the same count, the same largest difference, the same
first differing element;
- the case's pipeline records `device-color-conversion` and `device-nan-encoding` on that card.
docs/CONFORMANCE-COVERAGE.md is regenerated.
Why: texbuf (
|
||
|
|
c1b0a6d5e2 |
Conformance ledger: the GPU cards' rows of the pixel-sampler, downscale and vertex-format cases, each with its reason
What: 696 rows in known-gaps-rt.tsv, one per surprise the tip's replays printed: - NVIDIA: 227 rows (m3-max-63788, RTX 3090). The round at |
||
|
|
0f2067150f |
rt: a draw of lines carries DeviceLineRasterization on every device; the raster test holds the diamond-exit rule's cells
What:
- RenderCommandEncoder::LINE_NOTE (PrecisionNote::DeviceLineRasterization)
is the static note of a draw of lines or a line strip, and of a draw of
triangles under the Lines fill mode, on every device.
- A render pipeline state no longer carries the note; it carried it only
under alpha to coverage or alpha to one.
- The note's text (artifact.rs, docs/API.md's catalogue, its items list
and the accepted difference on a line's tie-break, the runtime's README)
names its grounds, and keeps what it said of a state with alpha to
coverage or alpha to one: there the device's default line rule draws,
not Bresenham's mode. One note, both facts.
- The conformance side announces LINE_NOTE for each line draw and each
Lines fill mode set. The note is among replay's NATIVE_NOTES, so it
loosens the notices site alone.
- known-gaps-rt.tsv: the 12 primitive-type-restart-indices rows (NVIDIA,
RX 550, Iris Xe) cite the note. Their lines run through the boundary
point (3.5, 1.0).
- api_signatures.tsv gains the const's two rows
(scripts/api-signatures/signatures.py --check passes).
- Tests:
- raster.rs's Lines pass draws the triangle (-0.65, -0.675), (3, -0.675),
(-0.65, 3) through the target's own viewport. Its edges at x 1.4 and
y 6.7 lie inside the target with a pixel on each side, and strictly
inside the clip volume and the viewport.
- The pass holds the diamond-exit rule's cells exactly, column 1 and
row 6, on every device. A device that draws another cell fails with
the target drawn. It does not read the corner where the two lines'
ends meet.
- draw.rs's alpha-to-coverage test now holds that no state carries the
note, and that LINE_NOTE is it.
Why the note: a card draws a line pixel that differs from Metal's. The 12
ledgered rows are lines through the boundary point (3.5, 1.0): Metal on an
Apple M3 Max covers the lower pixel there, NVIDIA's driver the upper. The
runtime draws lines with VK_LINE_RASTERIZATION_MODE_BRESENHAM. Its diamond
is open, so no Vulkan control decides that pixel. The Vulkan
specification's section "Bresenham Line Segment Rasterization" also lets an
implementation's fragments "not deviate by more than one unit in either x or
y framebuffer coordinates from a corresponding fragment produced by the
diamond-exit rule", with a fragment count within one. Rule 1: a line's pixels
are the device's answer, so the operation carries a static note.
Why the test changed: the old Lines pass put its bottom edge at y 7.7 through
a viewport of y -0.3 and height 8. The Iris Xe drew none of row 7 there
(m3-max-63429 at
|
||
|
|
1fbe4eacdb |
Conformance ledger: the GPU rows of the fetch and stencil-export cases go; those cards lack the feature
What: 91 refused rows leave known-gaps-rt.tsv: the NVIDIA, 780M, RX 7900 XTX and
Iris(R) Xe rows of the 17 padded-blend-* cases, xr-masked-bgr10xr-{red,blue-green,
srgb-red,srgb-blue-green} and argb8-targets-destination-alpha's refusal at
case/pipeline/argb8, and the NVIDIA rows of stencil-output, stencil-output-loaded and
pass-sequence-aspect-actions. The llvmpipe and UHD Graphics 630 rows stay. The fetch
block's comment says which devices read lacks-feature. docs/CONFORMANCE-COVERAGE.md
regenerated (scripts/conformance-coverage/coverage.py).
Why: round ce998742d7's eight GPU replays (m3-max-63423, 63431, 63464, 63447, 63444,
63446, 63468, 63453) read each of these 141 case-card-site triples as "no longer
refuses ... the ledger still lists it": every one of those cases reads lacks-feature
on those cards (NVIDIA 24 of 27 such cases, the others 21). Since
|
||
|
|
895b3f845a |
PrecisionNote::NativeHalfQuantize: a zero may round to the other zero
What: the note's text (its doc comment and the docs/API.md catalogue)
says what may differ: where a half rounding's input is a zero or too
small for a normal half, the result may be either zero, so a negative
zero may come out positive; and what a program sees of it: a
reciprocal's or atan2's sign, the bits written to a half target or
buffer. The catalogue names the form not taken (copying the input's
sign bit into the result by integer operations, about 4 instructions
per half rounding on every device without shaderFloat16) and its cost.
No code changes; the planner ruled the note (11-21).
Why: the 11-21 round at
|
||
|
|
44a1c864c8 |
rt: no copy command whose source and destination share memory: buffer copies over a texture in place cut in slabs, heap aliases refused
A copy between a buffer and a texture in place over its bytes (copy_from_buffer into it,
copy_from_texture_to_buffer out of it, and their options forms) recorded one
vkCmdCopyBufferToImage or vkCmdCopyImageToBuffer whose region's bytes could be the texture's own,
which Vulkan forbids (VUID-vkCmdCopyBufferToImage-pRegions-00173,
VUID-vkCmdCopyImageToBuffer-pRegions-00184). And a copy between two textures placed in one heap
whose ranges meet, or between a heap buffer and a heap texture whose ranges meet, recorded one
command over memory one image lays out as the device chooses (VUID-vkCmdCopyImage-pRegions-00124
and the same two). Metal leaves both undefined.
Buffer and texture over it: buffer_copy now compares the region's rows (its offset and
bytes_per_row in the VkBuffer shaders reach) with the texture's rows (Side::rows, from bufcopy)
where both lie in one VkBuffer, and feeds every meeting pair of rows to bufcopy's meeting/cut:
one slab form for every copy whose bytes meet. A BufferCopy carries its slabs; each slab is its
own vkCmdCopyBufferToImage / vkCmdCopyImageToBuffer, with the COPY->COPY execution barrier between
two slabs that copy_from_texture's slabs take (now one fn, between()). The region on the
texture's own texels copies nothing; regions whose bytes do not meet stay one command. The answer
is the source's bytes from before the copy, as an Apple M3 Max gives between two textures over one
buffer (conformance buffer_texture_blits); between a buffer and its texture it was not recorded on
a Mac.
Heap aliases: a texture names where its image's memory lies that other resources may share
(TextureObject::bound: a heap texture's range, from Under::Heap's block and offset; a texture in
place, from its rows). copy_from_texture between two textures (not one image) whose memory meets
where either has no rows, and a buffer copy whose region's bytes meet a heap texture's memory, are
refused: nothing records, and nothing is emulated.
Both refusals have their own kind, Gap::OverlappingCopy { pixel_format }, which also takes over
bufcopy's two shapes no one-axis cut orders (a destination row across the end of its own source
row and the start of the next; rows of two pitches meeting at their starts), until now under
Gap::TextureCopy. Every one counts in the new Metrics::overlapping_copies_refused.
Docs: the rt README's blit section describes the buffer slabs and the heap refusal, and a new
"Known gaps of blit encoders" names the two shapes (built, cut on two levels, when a replay stream
or a walk counts one) and the heap refusal. docs/REFUSALS.md regenerated; api_signatures.tsv
blessed (the variant and the Metrics field).
Tests: a_buffer_copy_over_its_texture_s_own_bytes_copies_in_slabs_or_in_no_order (slabs a row on
into and out of the texture with their order, two texels on both ways, a one-row region, whole rows
two texels on unordered, a region after the texture and one in another buffer one slab, the
texture's own bytes nothing, a heap texture's memory met or not);
textures_whose_memory_meets_where_one_is_laid_out_by_the_device_copy_in_no_order (heap/heap both
ways, in place/heap, touching ranges, another buffer, a texture of its own, two slices of one heap
texture). On a device: every_device_copies_between_a_buffer_and_a_texture_over_it_from_the_source_before_the_copy
(a row on and back into and out of the texture, within the rows both ways, apart; whole buffer
bytes as from the source before the copy, one submission, 2 + slabs barriers, no byte copied; whole
rows a memory alignment on refused, counted, nothing recorded) and
every_device_refuses_a_copy_between_heap_resources_whose_memory_meets (texture onto its alias, into
and out of a heap buffer over its bytes: refused, counted 3, nothing recorded; copies between heap
resources apart run, the bytes back as they went in, one submission). bufcopy's device test now
expects Gap::OverlappingCopy and its count.
|
||
|
|
b7e3247961 |
Conformance: the known-gaps ledger's texture-buffer rows after the runtime makes texture buffers
From the lavapipe replay of d7f0a88fd9 (job m3-max-63634 on msi: 298 lines of ledger drift, 132 rows no longer held and 166 gaps unlisted): - dropped the 132 rows of 'texture buffers are not built' and of the translator's IdentityDomains refusal of a texture buffer slot, which no longer hold on lavapipe: read-through-buffer, buffer-textures-cpu-access and norm-storage-fields-rgb10a2unorm now compare equal; - 98 rows (every venue): Device::new_texture and the heap size of a texture buffer's descriptor are Refusal::TextureBufferNotOverBuffer, the consumer's contract; - buffer-textures-made: the made texture buffers' cpuCacheMode, hazardTrackingMode and allowGPUOptimizedContents are the consumer's, as the 2D rows are (every venue, but offsets 4, 8 and 20, which are scoped to llvmpipe, NVIDIA, Intel and RADV, and are Refusal::TextureBufferAlignment of 16 bytes on Apple M3 Max, whose KosmicKrisp states no single-texel alignment); offset 33 is TextureBufferAlignment of 4 bytes (16 on Apple M3 Max); and a texture buffer over a Managed buffer states Shared where Metal answers Managed on a device of one copy (llvmpipe, 780M, Intel, Apple M3 Max), as a 2D texture over one does; - buffer-tails-texture-buffer: texels past the buffer are Refusal::BufferTextureLayout; - norm-storage-codes-*: hsw_buffer and hsw_held diverge on llvmpipe as hsw_write does (the device's conversion); - texel-swizzles-*: a swizzled texture buffer is Gap::TextureBufferSwizzle, a view of one Gap::TextureView, and llvmpipe's unorm8 read is one ulp high (the device's conversion); - texture-buffer-fill-*: this side answers no fillTexture yet. The llvmpipe rows are verified by that replay. The rows of other venues are expected from each venue's texel-buffer offset alignments and device type in its vulkaninfo, not run; the replay matrix holds them. docs/CONFORMANCE-COVERAGE.md regenerated after the ledger (scripts/conformance-coverage/coverage.py). Verified: the lavapipe replay's drift lines, classified by ~/.cache scratch; the conformance suite and replay follow in the next job. |
||
|
|
8f797a923d |
Conformance: the texture-buffer rows' comments name the runtime's refusals; the coverage document after the texture-buffer alignment query
The runtime makes texture buffers now (c2a8f4527c), so the comments that named Gap::TextureBuffer say what it answers at those sites: the stride row's texture buffer (bytesPerRow below its width's bytes) and the tails case's (texels past its buffer) are Refusal::BufferTextureLayout, as a 2D texture's are. docs/CONFORMANCE-COVERAGE.md regenerated (scripts/conformance-coverage/ coverage.py): minimumTextureBufferAlignmentForPixelFormat: is implemented and no case exercises it yet (reachable not exercised 76 -> 77), and textureBufferDescriptorWithPixelFormat:...'s note is coverage.tsv's generic one. The known-gaps ledger's texture-buffer rows follow from the lavapipe replay in a later commit. Verified: rustfmt; the generator's output. |
||
|
|
418494f380 |
rt: a texture's image accessor no longer shadowed by TextureObject::image; the texture buffer's docs
TextureInner's Option-returning image() lost method resolution to the TextureObject trait's image() -> vk::Image on Arc<TextureInner>, so ae747745df did not compile (compile job m3-max-63551 on msi: E0599 at nine call sites). It is image_of() now. texel_form asked supports_format with the ash format; it takes the translator's. Docs for the texture buffers of ae747745df: RESOURCE-ID.md's arrays paragraph names set 1's bindings 5 and 6 (uniform and storage texel buffers, 65,536 each) and the null elements of the other kind; API.md's identity forms list texture buffer reads, writes and atomics, slots and members alike, and keep refusing the parts or rows forms; the runtime README's known gaps of textures add the swizzle, the view and blit copies, and the both-usages format rule. Verified: rustfmt; the compile job follows on the rebased tip. |
||
|
|
817463704e |
rt: texture buffers are buffer views of their buffer's bytes in set 1's two texel-buffer arrays
What: Buffer::new_texture of a texture buffer's descriptor makes one VkBufferView of the bytes
shaders reach (a Managed buffer's device copy where it has one), from the offset, its width's
texels long: no image, no copy, no new push field. Set 1 gains two arrays of 65,536 elements,
binding 5 (uniform texel buffers, the read ones) and binding 6 (storage texel buffers, the written
ones), at the same index class as textures; a texture buffer's index is the same element of both,
and placing a texture or a texture buffer over the other's index nulls the other's elements. The
translator's identity domains classify a texture_buffer slot or argument-buffer member as a texel
buffer of that array (no TexelBufferRange fact, no swizzle under identity), so a pipeline that
declares one is no longer Unsupported{IdentityDomains}. SEMANTICS_VERSION 2258.
Metal's own refusals are typed: an offset off Device::minimum_texture_buffer_alignment
(minimumTextureBufferAlignmentForPixelFormat:, the device's texel-buffer offset alignment, the
larger of the uniform and storage ones, a single texel's size where the device says it suffices)
is Refusal::TextureBufferAlignment; a bytesPerRow below the row or texels past the buffer is
Refusal::BufferTextureLayout; a descriptor of more than one row, level, slice or sample, and a
swizzle with writes, as Metal refuses them. Device::new_texture (and every other make) of a texture
buffer's descriptor is Refusal::TextureBufferNotOverBuffer: the consumer places the bytes as it
places every buffer. Gap::TextureBuffer goes; a swizzled texture buffer (Gap::TextureBufferSwizzle),
a view of one, and a blit copy of one are recorded gaps. A format needs both texel-buffer usages in
its buffer features (Gap::TextureFormat otherwise): the view's buffer has both usages, and without
maintenance5 its usage is the buffer's.
The floor requires the six texel-buffer descriptor-indexing features (update-after-bind, dynamic
and non-uniform indexing, uniform and storage) and raises the limits the two arrays count against:
uniform texel buffers against the sampled-image limits, storage texel buffers against the
storage-image limits, both against maxPerStageUpdateAfterBindResources and the pools: sampled and
storage per stage and per set 131,072 (196,608 sampled with attachment reads' second elements),
resources 262,152 (327,688), pools 274,144 (339,680). Every recorded device fits: the 8 device dumps'
least are llvmpipe's 1,015,808 sampled/storage/resources and the UHD 630's 1,048,576 pools; all 12
devices there report the six features.
Why: six harvested guest functions declare a texture buffer, and a pipeline that declared one was
refused at creation.
Checked by: tests::texture_buffers (lavapipe: R32Uint read at a buffer offset and written, out of
bounds read zero and dropped, atomics through read_write, every refusal), engine_identity's
a_texture_buffer_is_the_texel_buffer_element_its_resource_id_names (L3 on lavapipe and moltenvk-m3),
the floor tests, the signatures table and REFUSALS.md regenerated; the lane's compile job reports
the runs.
|
||
|
|
2614118ccf |
conformance: the three GPU-range rows' Metal recordings; Watching forwards encoded_range; the coverage document
What: recordings/indirect-range-gpu-written-at-zero.json, -past-zero.json and indirect-range-written-by-an-earlier-draw.json, recorded on the M3 Max (macOS 27.0.1, 26A434), three runs each folding into one outcome, the validated leg run clean. Metal draws commands 0 to 2, 5 and 6, and 2 to 5: each execution reads the range the GPU wrote, the third after the earlier draw's write behind the in-pass barrier. watch::Watching forwards encoded_range. docs/CONFORMANCE-COVERAGE.md regenerated (python3 -I scripts/conformance-coverage/coverage.py): 180 case modules, 1322 recordings, executeCommandsInBuffer:indirectBuffer:indirectBufferOffset: and the indirect command buffer's gpuResourceID now exercised. Why: job m3-max-63598 on f2d20e177e failed the conformance tests on the missing recordings, the wrapper's forwarding (the_announcing_side_forwards_every_call) and the coverage document. Verified: recording job m3-max-63599 on f2d20e177e. The timings and the lavapipe replay follow. |