71f93243d96edfca6cc2dae25aedf801845e304d
8982
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
71f93243d9 |
Validation: an L4 kernel row is made through the runtime, its pipeline state and one encoded dispatch
corpus-pipeline asked the driver for a kernel row's compute pipeline at
the region the binder planned for one representative dispatch
(acceptance::dispatch), and tallied the binder's answer (BIND_REFUSED,
BIND_ERROR). That is not the pipeline a guest's kernel gets. A kernel row
is now made as a guest's kernel is made (platform::runtime_acceptance):
- the row's AIR becomes a runtime library, and its function is
specialized with the row's function-constant values;
- one ComputePipelineState is made on the sweep's device, restricted to
--profiles-layer's profile where one is given;
- one dispatch of one threadgroup of the state's thread execution width
(or its maxTotalThreadsPerThreadgroup where that is fewer) is encoded
into a command buffer that is dropped uncommitted, so the runtime picks
the module that threadgroup runs on, asks the driver for its pipeline,
and nothing executes.
The verdicts:
- The creation time is the runtime's own count of it
(pipeline_creation_nanos).
- A message from the validation layer is INVALID_USAGE.
- A Vulkan error is REFUSED.
- The runtime's typed refusal (the translator's, a known gap, a limit) is
RUNTIME_REFUSED, counted.
- A kernel the runtime runs as Metal's without effects, and makes no
pipeline for, is NO_EFFECT, counted.
The row still compiles in its compile worker first, for its words, its
outcome, --compile-only and --keep-modules. The make runs in the sweep's
process, held to the per-attempt ceilings (runtime::within_ceilings).
Removed:
- acceptance::dispatch (plan_compute_row, ComputeCreation, NoCreation,
BinderAnswer);
- RowCompile::Binder and UnmodelledKind::Dispatch;
- the tally's bind_refused and bind_errors, and the detail's
imageblock=WxH;
- the own context's compute arm of create_acceptance_pipeline, which now
takes a render pipeline, with its region test.
The summary line's bind_refused= and bind_errors= become
runtime_refused= and no_effect=.
What is lost: L4 kernel acceptance on Mesa's drm-shim drivers (RADV, ANV
and NVK), which stood for hardware we do not own. The runtime does not
open those devices, so the rung runs on lavapipe and the real cards
only. NVK is lost entirely: the shim was its only venue, and it never
ran here.
Committed rows removed: none. No L4 row is committed. Counted by
environment over corpus/observations/vulkan and observations/refusals at
|
||
|
|
9a01f1e8ee |
rt: an observer's dispatch runs its partial-threadgroups variant only where the variant's threadgroup memory, its vote word included, is within the device's limit
|
||
|
|
1133f4290a |
rt README: an observing kernel's whole grids on its partial-threadgroups variant are a known gap, measured per dispatch on the XTX and the Iris
The planner's ruling on the one-module change: the XTX's whole grids, 3.5% slower a dispatch on the variant (4.22 against 4.08 us, m3-max-67284), are a recorded loss, not a restore; the Iris reads 2.7% faster (m3-max-67285); NVIDIA was not timed per dispatch. The consumer reopens it. Docs only. |
||
|
|
f090d99c9a |
rt: an observing kernel's indirect dispatches run its partial-threadgroups variant too
decide() moved an observer's whole grids and threadgroup dispatches onto the partial-threadgroups variant but left its indirect dispatches on the plain module, so a state dispatched both ways made a second VkPipeline of the same size on the first indirect dispatch. By the translator's dispatch regions (lower::dispatch), an indirect dispatch states region[1].xyz = 0 and takes the single-region form, and the variant's partial answers sit only under region[1].w NONUNIFORM, which the encoder's indirect region never sets. So the variant runs it unflagged, every invocation live, as it runs a whole grid. decide() now drops the direct-only condition: one module and one VkPipeline a size run every dispatch of an observing kernel where the variant takes the threadgroup. Metrics::partial_variant_whole_grids counts the indirect ones with the whole grids. No key, version or translator file changes. Tests: the observing kernel's run table expects its indirect dispatch on the variant (one first-use wait fewer where it shares a size with a direct dispatch, and one more count); prepare_dispatch's table gains an indirect dispatch at the whole grid's size that finds the variant made (0 makes; 1 before this change); the variant-key table groups the indirect dispatch with the direct ones. The conformance case compute-indirect-threadgroup-grid dispatches region_k, an observer, indirectly; its dispatch-forms line is the check that the replay ran it on the variant. Checks to run on this commit: tests::translate and the conformance replay on a card per vendor. |
||
|
|
5205d18d12 |
Tests: the observing kernel's first-use waits and whole grids follow the device's SIMD tier under one module
Each run's module is derived from the plain module's SIMD multiples on the device: a ragged grid the variant, a whole-SIMD threadgroup the variant where direct and the plain module where indirect, any other the emulated variant; the test counts one first-use wait per module and size, and the whole grids on the variant. The 5080 (m3-max-67283) read 4 + 1 waits where the two-module count was 5 + 1; every word matched. |
||
|
|
6453edbea7 |
rt: an observing kernel runs its whole grids on its partial-threadgroups variant, one VkPipeline a size for every direct dispatch
A kernel that observes its threadgroup partition made two VkPipelines for one threadgroup size: the plain module's for whole grids and threadgroup dispatches, and the partial-threadgroups variant's for ragged grids. The variant already runs a whole grid as the same regions unflagged (lower/dispatch.rs), so decide() now sends every direct dispatch the whole module would run to the variant where the variant is lowered and takes the threadgroup whole SIMD groups. Indirect dispatches, a refused or failed variant, and a threadgroup that is not whole SIMD groups of a kernel that runs only whole ones (the emulated route) keep today's module. A state with a declared bound or a required size makes one VkPipeline ahead instead of two. Metrics::partial_variant_whole_grids counts the whole grids that ran the variant; the player's executed counters and the conformance runner print it. Nothing re-keys: the translations are unchanged (the plain module is still lowered: its interface numbers the samplers, answers Metal's state and runs indirect dispatches), and no version moves (metal2vulkan-runtime is outside RUNTIME_VERSION's inputs). |
||
|
|
bb7caaa32a |
rt README: a fetch from a 2D array attachment, of one slice too, is the FetchedAttachment gap
The known gap listed what a framebuffer fetch cannot read through as "no 2D texture at its first level and slice", which covers an array texture without naming it. A layered pass renders into one-slice 2D array attachments, and a fragment function that fetches one is refused with Gap::Draw of FetchedAttachment; the wording now names that case. Verified: the layered case aa52a3e9 drawn through the runtime ends in that refusal on lavapipe, the Radeon 780M, Iris Xe and the RTX 3090 (m3-max-67271, 67270, 67267, 67269). |
||
|
|
77ea6d420f |
Tests: a layered pass is among the render cases the runtime draws
The route test still listed a pass of render_target_array_length 1 among the cases that stay on the own context; since the layered case draws through the runtime it is asserted there, and the doc says so. Verified: the validation suite at 62a8f41811 failed this one test only (m3-max-67098: 1334 passed, 1 failed); the rerun is the next job. |
||
|
|
0259428932 | Validation: the layered pass is made with its array length | ||
|
|
6d546f133c |
Validation: a layered render case draws through the runtime, into one-slice array attachments of a pass of its array length
A render case whose stage metadata names a render_target_array_index (render_target_array_length 1, executor_contract::render_target_array) stayed on the executor's own context, the binder's last render users there. It now takes the runtime route as the oracle draws it (metal::platform::attachments): each color target and the depth/stencil aspect a one-slice Type2DArray, the pass's render_target_array_length the case's. The rasterization-disabled sink stays the oracle's plain 1x1 Type2D. A layered multisampled pass is refused as the tool's limit, as the oracle models none (it refuses one with the same words). runs_render_through_runtime drops its render_target_array_length == 0 condition; the length is 0 or 1 by its derivation. |
||
|
|
d7bf09eb05 |
Tests: a buffer that ends at its texture's last texel resolves through the resolve image, nothing past it written
Where a texture's rows are padded and its buffer ends at the texture's last texel, the linear image's subresource reaches past the buffer. The render-reach rule then gives the linear image no attachment usage, on every device: 140 of 256 cells on the 780M (count job m3-max-67028). Such a texture now resolves through its resolve image: resolved is false, so the Image takes a Resolving. The copy's region is Pass::reach, which is never larger than the texture's extent, written at the texture's pitch. Its last byte is therefore the texture's last texel's last byte, which check_over's end <= buffer.length() holds inside the buffer. every_device_resolves_a_loaded_pass_into_a_shader_read_texture_over_a_buffer gains a third buffer on each pitch: Shared, of (599 x pitch) + 2,400 bytes. Every buffer now lies at the start of a block 256 bytes longer, with a Shared buffer over those 256 bytes. The host fills them with 0xee, and after every resolve of the row (the first, the second, the 300 x 300 pass and the view) the test asserts that none of them changed. The row's other checks are as before: the clear within one code, the padding unchanged, and the resolve copies (1 through the resolve image). |
||
|
|
d78f23726b |
rt: a view of its own format of a texture in place resolves through the texture's resolve image
For the consumer: a same-format view of a texture in place over a buffer of the runtime's own
memory, whose linear image takes no colour attachment usage, is no longer refused as a resolve
target with Gap::RenderPass{ResolveUsage}. Measured on the RTX 3090 and KosmicKrisp, where the
linear tiling renders no format, that is every texture in place. The view resolves as its texture
does: into the texture's resolve image, then the pass's end copies it into the buffer. A view of
another pixel format of such a texture stays refused, a known gap.
Why: the runtime refuses only what the device lacks, and the device lacks nothing for this view. A
texture over a buffer has one level and one slice, so a view of it covers the same texel bytes in
the same buffer place. A view of the same Vulkan format resolves into the same image, through the
same identity view.
How: resolve_attachment no longer requires the texture to be no view. The view's image is its
parent's, which carries the Resolving, and its Named holds the parent's one place. It now refuses
only a view whose Vulkan format is not the resolve image's (object.format != plan.format). The
copy is the same, from the view's Named, which is the parent's place. That is 3 product lines.
Where the linear image takes the usage, a view already resolves in place through attachment_view
(
|
||
|
|
d5917d9ee5 |
Tests: the earlier-version removal test lets the first store's removal thread end before it makes the directories
an_earlier_versions_pipeline_data_is_removed_at_open failed once in the suites at |
||
|
|
bcc88a43cf |
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. |
||
|
|
203b045da9 |
Tests: a smaller pass resolves through the resolve image only within its render area
The resolve image moves away from UNDEFINED at each pass, so whatever it held from an earlier pass
is discarded. The copy back must therefore cover only the pass's render area, or it would write
stale texels over the buffer. It does: the region is Pass::reach from the origin, where the
resolve writes every texel.
every_device_resolves_a_loaded_pass_into_a_shader_read_texture_over_a_buffer now checks this on
every row:
- The host refills the buffer with 0xee, and a 300 x 300 pass (renderTargetWidth and Height)
resolves into the texture.
- The 320 x 320 texels of Vulkan's render area (300 rounded up to pass::REACH) read the clear
within one code.
- Every other texel byte, and every byte past the rows, keeps 0xee.
- Through the resolve image, the copy is 409,600 bytes.
Docs: the README's two Render encoders paragraphs, RenderPassKind::ResolveUsage and
resolve_attachment's doc now say exactly which view stays refused. It is a view of a texture in
place whose linear image takes no attachment usage. Where the linear image takes the usage (the
first fix,
|
||
|
|
bda5ed08e9 |
rt: a resolve into a texture in place over a buffer whose linear image cannot render goes through a resolve image
For the consumer: a pass that resolves into a texture in place over a buffer of the runtime's
own memory, whose linear image takes no colour attachment usage, is no longer refused with
Gap::RenderPass{ResolveUsage}. It resolves into the texture's resolve image, and the pass's end
copies the render area into the buffer at the texture's pitch. This is the guest's 600 x 600
BGRA8Unorm_sRGB ShaderRead texture over a Managed buffer, on every NVIDIA host and on KosmicKrisp:
their linear tiling features hold COLOR_ATTACHMENT for no format (count jobs m3-max-67031 and
m3-max-67032), and a pitch of the row rounded up to the alignment answer (128 and 16) lies in place.
It also covers a texture whose subresource reaches past its own rows or its buffer (the render-reach
rule), on every device. Additive public items: Metrics::resolve_copies and resolve_copy_bytes (in
bytes_copied too), Gauges::resolve_images and resolve_image_bytes. Still refused: a texture in place
over a dma-buf's import (an imported surface's memory) and a view of a texture in place.
Why this form: owner's rule 3 allows "where a format query offers no linear image for the format and
usage, a counted copy", the sentence OverCause::LinearFeatures and RenderReach already rest on for a
render target over a buffer. This is the smallest such copy: one per resolve, of the render area
only, and nothing on later uses. The texture stays in place, so shaders keep reading the buffer's
bytes through its linear image. The planner chose it over moving the texture to the copy form at
its first resolve (2,880,000 bytes per resolving pass, then a copy in every submission that uses
it).
How:
- texture.rs: the in-place texture's Image keeps a Resolving where it lies in the runtime's own
memory (Laid::Own), its linear image took no attachment usage, and its plan's optimal image does
(Plan::resolves, the image format query that already made it with COLOR_ATTACHMENT). The first
resolve makes the resolve image from the texture's plan (Plan::resolved, Bind::Pooled) and a 2D
identity view of it. Every later resolve reuses them, and they are freed with the texture
(Free::Resolved, the resolve images gauges). resolve_attachment returns the attachment and, for a
resolve image, a ResolveCopy: the VkBuffer of the bytes shaders reach and the region at the
texture's pitch. That is Named::region, the region copied_over already built, now shared. A level,
slice or layer count past the texture's one is Refusal::AttachmentPlace, as attachment_view
refuses it.
- pass.rs: Resolve carries the copy. Its image's home is TRANSFER_SRC_OPTIMAL and it renders in
ATTACHMENT_OPTIMAL. Resolve::from moves it away from UNDEFINED: the pass resolves every texel of
its render area and copies only those, so nothing it held earlier is kept.
- render_encoder.rs: after the pass's back barrier (which moves the image to TRANSFER_SRC_OPTIMAL),
end() records vkCmdCopyImageToBuffer of the render area (Pass::reach) into the buffer at the
texture's pitch. It counts the copy and owes the pass's barrier, so the next command, or the
segment's end, orders the copy before later work. bufferOffset is a whole number of texels, which
check_over already requires (VUID-vkCmdCopyImageToBuffer-srcImage-07975; the multiple-of-4 rule,
07978, is depth and stencil only). The block's buffer has TRANSFER_DST.
Readable through the linear image: the copy writes the buffer, and a later pass reads the same
memory through the texture's linear image. Vulkan 12.11 Memory Aliasing says "If two aliases are
both host-accessible, then they interpret the contents of the memory in consistent ways, and data
written to one alias can be read by the other alias". Buffers, and linear image subresources in
GENERAL or PREINITIALIZED, are host-accessible. The in-place form already rests on that sentence:
its linear image starts preinitialized and stays GENERAL through every use, copies included
(Image::copy_layout, "so that it and the buffer are aliases that interpret their bytes alike
(Vulkan's memory aliasing)"). The order between the copy and the read is the owed barrier, a memory
barrier from every command to every command.
Docs: RenderPassKind::ResolveUsage, the resolve texture's doc, resolve_attachment's and resolve()'s
docs, and the pass module say what resolves through the resolve image and what is still refused.
The runtime README's two Render encoders paragraphs and its counters list are updated, the card
names under "measured on". docs/REFUSALS.md is regenerated (two more AttachmentPlace sites, in
resolve_attachment), and so is the signatures table (the four new fields).
Test: every_device_resolves_a_loaded_pass_into_a_shader_read_texture_over_a_buffer runs the
guest's shape over a Managed and over a Shared buffer, at 2,400, at the row rounded to the alignment
answer, and at 2,560. On an in-place row whose linear image took no attachment usage, it asserts:
- the first resolve makes exactly one image;
- one resolve copy of 1,440,000 bytes, and bytes_copied equal to it;
- the buffer reads the clear within one code, with 0 bytes past the texels changed;
- a pass after it in the same command buffer reads the texture at each pixel (own_pixel_fragment
into a 600 x 600 target), its centre texel (299, 300) the clear within one code;
- a second resolve, in a command buffer of its own, makes no image and no allocation
(image_creates, consumer_allocations), and the resolve images gauge does not grow.
The other rows are unchanged: in place with the usage, 0 copies; copied, counted copies. Every
gauge is zero at device drop (each_device). Without this change, the RTX 3090's in-place row at
2,432 is refused with ResolveUsage (job m3-max-67081 on the resolve fix's tree).
|
||
|
|
ebbce6789c | Validation: the presented-extensions probe names its error type | ||
|
|
85972135f5 |
Validation: a --profiles-layer run takes the runtime route, the profiles layer set by the loader's environment
A run restricted to a committed profile took the executor's own context for every kernel and render case, because both runtime routes were gated off by requested_restriction(). The runtime makes its own instance, so the profiles layer now reaches it the way the validation layer already does: VK_INSTANCE_LAYERS stacks VK_LAYER_KHRONOS_profiles below the validation layer, and the layer's settings are the VK_KHRONOS_PROFILES_* variables its settings library reads, derived from the same ProfilesSettings the own context passes as VkLayerSettingEXT (ProfilesSettings::environment). The variables are set while an instance under them lives and removed after it. Before the run's device is made, the runtime route makes the own context's checks at the runtime's instance version (rt::floor::VERSION, the version the runtime reads its device at): the layer installed; the device as it is (emulation off) has every capability P states (check_within), else a typed Restriction refusal recorded with the device and the members; the extensions the layer presents for P read through an instance that hides none, and the ones P does not list hidden; through the run's instance the layer active and the device reporting exactly P (check_restricted). The row records the profiles layer as the own context does (tool, profile, its name and digest, the hidden extensions) and its census names P. The layer's reports go to the null device (debug_actions FILE, debug_filename /dev/null) in place of an empty report list: the settings library reads an empty variable as unset, which would print the layer's reports on the device worker's standard output. The two gates in engine::run_on_context are dropped. The own context's compute arm there has no caller now; it goes with the own-context executor. Verified: compile m3-max-67090 on the lane's tip (validation 1337/1337). The one committed restricted row (fdbf7c9b, RTX 5080 restricted to nvidia-rtx50-linux), re-run through the runtime route, reads match with the same output bff87e3cb4c5, job m3-max-67078 (validation and profiles layers, executor runtime-compute, 7 hidden extensions as the committed row lists). |
||
|
|
7193df2244 |
rt: a resolve into a texture over a buffer, whose linear image lies in place, resolves
A guest's pass on the Radeon 780M was refused with Gap::RenderPass of ResolveUsage. The pass resolves a 4-sample BGRA8Unorm_sRGB colour, which it loads beside a loaded and stored 4-sample Depth32Float_Stencil8 depth and stencil, into a 600 x 600 BGRA8Unorm_sRGB texture of ShaderRead usage made over a Shared buffer. The texture's linear image lay in place, and that image never took the colour attachment usage. Metal resolves into it. The probe resolve_texture_usage.m gains three cases of the guest's pass shape at 600 x 600: "over" at rows 2,400 bytes apart (the M3's alignment answer is 16), "over-padded" at 2,560, and "read600", a Private control. Results on an Apple M3 Max, macOS 27.0.1, job m3-max-66994: under Metal's validation layer and without it, the encoder was made, the status was 4 and there was no error. The buffer's own bytes at the pitch read the resolved texels, FNV-1a 64 829333cef7513925, each e1bc89ff, which equals the blit of the texture and the control. Over the padded rows, 0 of 96,000 bytes past the texels changed. The form: a linear image in place over a buffer of the runtime's own memory takes the colour attachment usage on the same terms as the optimal image of the same texture (Plan::resolves). It must be a one-sample colour 2D texture, the device's linear tiling features must hold COLOR_ATTACHMENT, and the image format query must make the linear image with it at the texture's extent (Plan::linear_resolves, decided in check_over). Before building, a count measured whether the usage moves anything. The count ran on the probe branch at eff584838b. It covers every colour format a texture over a buffer is made of, at 600 x 600 and 1920 x 1080, with ShaderRead and ShaderRead | ShaderWrite usage, the runtime's own plan of each, and today's linear image read with and without COLOR_ATTACHMENT. No cell in place today leaves the in-place form, and no row pitch, offset, size, alignment or memory type bits change. card (job) cells render in place CA held query layout equal Radeon 780M (m3-max-67028) 256 256 256 256 256 256 RX 550 (m3-max-67035) 256 252 218 252 252 252 RX 7900 XTX (m3-max-67029) 256 256 256 256 256 256 Iris Xe (m3-max-67030) 252 244 244 244 244 244 RTX 3090 (m3-max-67031) 252 232 232 0 232 232 llvmpipe (m3-max-67021) 248 244 244 244 244 244 KosmicKrisp (m3-max-67032) 252 252 252 0 0 - The linear tiling features of the RTX 3090 and KosmicKrisp hold COLOR_ATTACHMENT for no format. There, a texture in place over a buffer takes no attachment usage, and its resolve stays ResolveUsage. A resolve "may read and write back any memory locations within the image subresource bound for that attachment" (Vulkan's multisample resolve operations). So the image takes the attachment use only where its subresource lies within its own rows and the buffer, the render-reach rule a render target over a buffer already takes. Elsewhere the image stays in place without it, and is not copied to gain it. In a buffer that ends at the texture's last texel, the subresource reaches past the buffer in 140 cells on the 780M and XTX, 104 on the RX 550, 88 on llvmpipe and 0 on the Iris. In a buffer of height x pitch bytes or more it reaches past in none. A texture over a dma-buf's import keeps no attachment usage, as the count covered the runtime's own memory alone. The test every_device_resolves_a_loaded_pass_into_a_shader_read_texture_over_a_buffer runs the guest's pass shape. The texture is made over a Managed buffer and over a Shared buffer, at offset 0, at rows 2,400 bytes apart, at the row rounded up to the device's alignment answer and at 2,560. At the rounded row the texture is in place on every device. In place, the pass resolves where the device's linear tiling renders the format and copies nothing. The buffer reads the clear within one code and keeps every byte past the texels. Where the linear tiling does not render the format, the resolve is ResolveUsage. The old part of every_device_resolves_into_a_texture_of_shader_read_usage, which pinned the refusal, is gone. Without the fix the new test fails on the Radeon 780M: probe build 8c400c6204, job m3-max-67057, "the attachment usage" assertion at the in-place pitch. Docs: RenderPassKind::ResolveUsage, the resolve texture's and resolve_attachment's docs, and the runtime README's two paragraphs say what is left refused: the RTX 3090 and KosmicKrisp, formats the linear tiling does not render, a dma-buf's import, and a subresource past the buffer. docs/REFUSALS.md regenerates unchanged, as it lists Gap::RenderPass and not its kinds. |
||
|
|
333c3dec38 |
rt: count a compiled content a state's make drops because an equal one landed in the map first
For the consumer: Metrics gains kernel_makes_dropped. It counts the compiled contents, compute or
render, that a state's make dropped because an equal content landed in the device's map of
contents (kernel_map) first; the state takes the map's. The field is additive, with no Metal
counterpart.
Why: two makes of one content can compile it at once. KernelMap::keep_content keeps the second
through Lru::keep, which answers the entry already held and gives the new one back to be dropped.
The KernelEntries gauge is left unraised, as for an eviction, so today nothing tells a dropped make
from a kept one. Its end is set: if it reads 0 on every host class's cold walks, the count goes.
How: keep_content takes the address of the content it passes (Content::at, over either Arc), and
counts Metric::KernelMakesDropped where the content kept is another. Lru is unchanged. StageEntries'
"another caller may have ... meanwhile" branches (compile.rs) are not counted. The runtime README's
counters list names the metric, and the signatures table is regenerated.
Test: every_device_shares_one_compiled_kernel_between_states_of_one_content. With both kernels in
the map, it keeps the observing kernel's compiled under the tiled kernel's key, as a make whose
equal landed first. It asserts that the map answers the tiled kernel's own Arc and that
kernel_makes_dropped rose by exactly 1. The test's check that the map holds 2 entries then covers
the gauge. A device-free test cannot reach keep_content: a Content holds an Arc<Compiled> or
Arc<RenderCompiled>, both made on a device. Without the count, the assertion fails (read from
code).
Verified (tree 7fbe40d06d, the same tree as this commit, on
|
||
|
|
b6d367d7f1 |
Tests: the exported block's placement takes the live range first, where a freed one shares its addresses
7135c1bc6c's device test every_device_places_an_address_in_an_allocation_freed_at_its_idle_age
places an address 0x2000 into a buffer over a new exported block, and asserted that exactly one
range holds it. On the RTX 3090 (job m3-max-66993) the driver gave the exported block the
addresses of the 64 MiB pool allocation the test had freed just before, so the place had two
holders: the live export, named right, then the freed allocation. The report lists live ranges
first, then the freed ones newest first, as documented, so the line was right and the assertion
wrong: "0x9f42000: in export block 3 [0x9f40000, +0x100000) made 0.047 s before, live; in Shared
pool allocation 4 [0x9f40000, +0x4000000) made 0.394 s before, freed 0.144 s before with 0
command buffers in flight; ...".
The assertion now takes the first holder, which must be live and RangeKind::Export of the block's
number, and every holder after it must be freed: the export is the one live range there. No
product change.
Verified (tree fb93c412e2, the same tree as this commit, on
|
||
|
|
0d0c621ae1 |
rt: count the dispatches that run a kernel's emulated-SIMD-group module
For the consumer: Metrics gains emulated_simdgroup_dispatches. It counts the dispatches, direct
and indirect, that ran a kernel's emulated-SIMD-group module. That is a threadgroup whose thread
count is not whole groups of the width the kernel's own module runs only whole groups of
(Interface::multiples, the module's LocalSizeConstraint): 80 threads, say, or 32 on a device of
64-lane subgroups. The field is additive; Metrics has no Metal counterpart, and Metal runs any
threadgroup size at its own SIMD width.
Why: SIMD groups are one of the eight forms a Vulkan query chooses. Nobody has measured how often
a guest takes the slower side, such as a 32-thread group on a card whose subgroups are 64 wide.
How: encoder::decide picks Module::Emulated in its `Some(&width)` branch. The count is not taken
there, because ComputePipelineState::prepare_dispatch decides through it too. It is taken in
ComputeCommandEncoder's dispatch, once the dispatch's commands are recorded: the recording's
result is kept, and an Ok on the emulated module counts once. A dispatch refused on its way, or one
of a zero grid, which records nothing, is not counted. The runtime README's counters list and its
paragraph on the emulated-SIMD-group variant (Compute pipeline states) name the metric. The
signatures table is regenerated.
Test: every_device_runs_simd_groups_at_metals_width dispatches threadgroups of 64, 32, 80 and 1.
Each dispatch must count 1 where its size is not a multiple of every width in the kernel's
interface.multiples, and 0 otherwise.
Verified:
- On its own tree over the previous base (e063482211), compile job m3-max-66965. The signatures
and refusal-surface checks, fmt, clippy (plain, --cfg m2v_gpu, --cfg m2v_cpu_icd), workspace
Rustdoc -D warnings and scripts/api-docs all exit 0. The runtime suite on lavapipe: 642 passed
(1 slow), 3 skipped. Lavapipe's kernel runs no whole-group constraint ("pinned at None, whole
groups of [], the others on the same module"), so it checks only the zeros.
- On
|
||
|
|
7135c1bc6c |
rt: a fault report names the exported block an address lies in
For the consumer: RangeKind::Export becomes RangeKind::Export(BlockId), the exported block's
number (BlockInfo::id), and FaultPlace's line prints such a range as "export block N" where it
printed "export". No consumer code names the variant. At reims-vgpu 0ec951ecaf,
`git grep -n -E 'RangeKind|FaultRange|FaultPlace' 0ec951ecaf -- '*.rs'` gives 1 line: a doc
comment at crates/reims-vgpu-vulkan/src/rt_platform/fault.rs:35. The consumer only prints
FaultPlace, so this commit changes no consumer line.
Why: an exported block's BlockInfo now states no device address ("rt: an exported block's
BlockInfo states no device address, so its make hands none out"). So the consumer's own fault record can no longer place a buffer in an exported block: its
Exported::address() (rt_platform/export.rs:262 at 0ec951ecaf) reads block.gpu_address plus the
offset. rt's line is then the only one that places a fault address in an exported range, and before this commit it said only "export". That
cannot tell two exported blocks apart, nor a consumer's exported block from a copy-form surface's
own block, which is exported too. The block's number names it. The place inside it needs no field
of its own: it is the address minus the range's start, both on the line.
How: memory.rs note() passes the memory's number into RangeKind::Export. RangeKind::Import,
Surface and Sparse are unchanged. BlockId's field becomes pub(crate), so the crate's unit tests can
name a block; the public type is unchanged. The signatures table is regenerated.
Tests:
- The placement test an_address_is_placed_among_the_live_and_the_last_freed_ranges: its export row
is RangeKind::Export(BlockId(9)), read back from the place's nearest range above. The line says
"; nearest above: export block 9 [0x90000000, +0x100000) made ".
- a_block_of_no_buffer_is_placed_nowhere names its two blocks.
- every_device_places_an_address_in_an_allocation_freed_at_its_idle_age also makes an exported
block, where the device exports a handle. An address 0x2000 into a buffer over it is placed in
exactly one range, RangeKind::Export(that block's id). This shows note() passes the number.
Verified:
- On its own tree over the previous base (d2006ac0f1), compile job m3-max-66959:
- The signatures and refusal-surface checks, fmt, clippy (plain, --cfg m2v_gpu,
--cfg m2v_cpu_icd), workspace Rustdoc -D warnings and scripts/api-docs all exit 0.
- The runtime suite on lavapipe: 642 tests run, 642 passed, 3 skipped.
- The targeted run passed all three tests on lavapipe. The device test printed
"0x7f5e10018000: in export block 3 [0x7f5e10016000, +0x100000) made 0.000 s before, live;
nearest below: ...".
- On
|
||
|
|
77f3f2d99d |
Bless at 198cf51e5a: golden table under SEMANTICS 2273, census under its new route
The pin carries lane halfmoves (SEMANTICS 2273) and lane binddel's census step 2
(AUTHORED_COMPILE_CENSUS_VERSION 8). Test tables only; no product file changes.
- tests/golden_hashes.tsv: semantics 2272 -> 2273, and all 15 profile fingerprints move
(every committed profile listed robustBufferAccess, which halfmoves deleted from
VkFeature), so every cell is re-stamped. Halfmoves' own golden .ll run moved 0 of
1,855 rows (m3-max-66810 against m3-max-66811).
- corpus/authored-compile.tsv: the census re-blessed, 2,333 cases x 9 profiles, 20,997
cells, 15,585 compiled, 5,412 refused, 0 failed, 0 differences, 0 regressions. The
33 kernel cases the census now compiles as the runtime does (the emulated-simdgroups
module) change their rows, plus the artifacts_at line; 87 artifacts moved.
- The fixture inventory, the printouts and validation's opened chains are unchanged.
- The old render descriptor key holds its value at 2273 (suites at
|
||
|
|
198cf51e5a |
rt: AllocationInfo states when each allocation's make began and how long it took
For the consumer: AllocationInfo, the value BlockMappings::map receives, gains two fields. make_start is the host time (host_time) at which the allocation's make began. make_nanos is the make's length in nanoseconds, ending before the hook is called. The change is additive: AllocationInfo is #[non_exhaustive] and stays Clone + Copy. Why: the hook runs after the make. A consumer that sees a slow guest answer could tell only that a make ended during it, not whether the make covered it. How: both make sites already read both ends of the make for their timed parts. The pair is now kept on the pool's Allocation (made), set right after make_allocation returns, and Allocation::info passes it on: - The take's own allocation, memory.rs own(), timed as Part::TakeMake. - The block-maker's allocation made ahead of need, memory.rs ahead(), timed as Part::MakerMake. Device::new's first allocation of each class also comes through ahead() (stock()). make_allocation has no other caller. The values are the same ones the timed parts take. Docs: the two fields' docs (no Metal counterpart, as the struct says), BlockMappings::map's doc, and the runtime README's sentence on BlockMappings::map. The signatures table is regenerated. Test: the hook in the runtime's memory tests records, at each map, whether make_start is no later than host_time() at the map and make_nanos is not zero. assert_mapped asserts it for each block's allocation it checks. It runs in every_device_hands_out_blocks_and_buffers_and_frees_them_through_the_hook (each class's first allocations from Device::new, and a long take's own allocation) and in every_device_maps_each_allocation_before_its_blocks_go_out_and_refuses_one_not_mapped. Verified (tree 4204b286a4, the same tree as this commit): compile job m3-max-66884. The signatures and refusal-surface checks, fmt, clippy (plain, --cfg m2v_gpu, --cfg m2v_cpu_icd), workspace Rustdoc -D warnings and scripts/api-docs all exit 0. The runtime suite on lavapipe: 642 tests run, 642 passed, 3 skipped. The job's targeted run lists every_device_maps_each_allocation_before_its_blocks_go_out_and_refuses_one_not_mapped as passed on lavapipe; the job's log keeps no per-test lines for the full suite. |
||
|
|
0aab6200fb |
rt: a Managed buffer's device copy placed in an exported block is refused
Device::new_managed_buffer took a device copy in any Private block the consumer held, an
exported block included. The copy's zero fill and its copy-ins at Managed events write the block
through the runtime's own commands, and nothing marks those writes for the textures over the
block (over::ExportedOvers), so they wrote the block unseen. Metal has no way to ask for that
placement: it places a Managed buffer's second copy itself, so no Metal program puts it in memory
another API shares.
The consumer at reims-vgpu 0ec951ecaf makes no such placement.
- `git grep -n 'new_managed_buffer' 0ec951ecaf -- '*.rs'` gives 2 calls, both in
rt_platform/buffer.rs:
- At :1463 (own_managed) the copy is in a Private block taken for it.
- At :1625 (range_of) the copy is in a block taken the same way, or at the `copy` known_at()
found: a known block of class Private that holds the pin.
- `git grep -n -F '.know(' 0ec951ecaf -- '*.rs'` gives 7 lines. The known blocks come from
take_block (pool/rt_blocks.rs:121, rt_platform/heap.rs:648 and :907), from page imports
(rt_platform/buffer.rs:2429) and from tests (buffer.rs:3082, :3083 and :3635).
- None of these is an exported block. The one exported make (rt_platform/export.rs:208) is never
made known.
The placement is now Refusal::ManagedCopyExported { block }, checked after
ManagedCopyNotPrivate, on a device that keeps a device copy. No existing kind fit:
ManagedCopyNotPrivate says the block is not Private, and an exported block is. Wiring the copy's
writes into ExportedOvers would need a mark at its zero fill and at each copy-in; one check is
smaller. The refusal is a public call's own
check of its arguments, so it holds on every device; on a device with unified memory the copy is
refused before it as ManagedCopyOnUnified.
With the placement gone, a Managed buffer's device copy is no longer one of the routes by which an
exported block's address goes out. The runtime README's exported block rule and the ExportedOvers
doc drop it. The README's Managed buffer paragraph and new_managed_buffer's Err list name the new
refusal. docs/REFUSALS.md, error/basis.rs and the signatures table are regenerated.
Test: every_device_places_a_managed_buffer_s_device_copy_where_the_consumer_says. On a device that
keeps a device copy, it also places one in an exported block of the first handle the device
exports, and asserts ManagedCopyExported naming that block. Before this commit that call returned
a buffer, so the test fails without the change (read from code: no check stood between the Private
class test and the buffer's make).
Verified (tree 3b87fced96, the same tree as this commit):
- Compile job m3-max-66867: signatures and refusal-surface checks, fmt, clippy (plain,
--cfg m2v_gpu, --cfg m2v_cpu_icd), workspace Rustdoc -D warnings and scripts/api-docs all exit 0.
The runtime suite on lavapipe: 642 tests run, 642 passed, 3 skipped. Lavapipe is a CPU device,
so it keeps no device copy and does not reach the new check.
- The m2v_gpu archive is from job m3-max-66876. Each card ran the test, then the runtime suite:
- RX 550, job m3-max-66896 (a rerun of m3-max-66891, whose log filter dropped the printed line):
"managed placed: ...: a copy in a OpaqueFd exported block refused"; 644 passed, 3 skipped.
- RTX 3090, job m3-max-66922: "managed placed: ...: a copy in a OpaqueFd exported block
refused"; 644 passed (1 slow), 3 skipped.
|
||
|
|
48d7ded3aa |
Validation: the authored compile census compiles as the runtime does, through no binding plan's variant
The census compiled each case's pipeline through the binder's variant route: a kernel under the
key its plan, and its plan's dispatch_variant, asked for (BindingPlan::variant), a draw through
compile_render_variant, a mesh draw through compile_mesh_variant, each with the storage-format
loop. It now compiles through the translator's public pipeline API the way the runtime does:
- a kernel through the new PipelineRequest::Kernel, compile_kernel: its plain module, or its
emulated-simdgroups variant (LoweringInputs::kernel_variant) where the dispatch's threadgroup
is not a multiple of a LocalSizeConstraint the plain module states, the runtime encoder's
rule (encoder::decide);
- a draw with no shape (Device::compile_render_pipeline);
- a mesh draw through Device::compile_mesh_pipeline. The census was MeshDraw's only builder, so
its shape field and compile_mesh_for_shape go.
The own-context executor (a profiles-layer run, a render case off the runtime) keeps its
requests (BoundCompute, a draw with its shape) under the resident-table domains, where its plan
asks for variants the runtime route does not compile.
The artifact still digests the plan of the compiled pipeline for the run's bind shape, as the
own-context executor records it (artifact::CaseArtifact::record).
Why: on the probe branch (m3-max-66743, 9 profiles, 20,997 cells), the only variant field the
plan ever set was emulated_simdgroups. Yet the census's old route kept the plain module for 33
kernel cases (174 cells on the six real-GPU profiles) whose threadgroups (1, 4, 8, 16, 40 or 42
threads) are no multiple of the plain module's LocalSizeConstraint { multiple: 32 }. The binder
refuses to plan each of them under the runtime's identity domains, so the old route's variant
step never ran. Every one of the 33 observes its threadgroup partition, so the runtime's whole
module is the plain one and its encoder runs the emulated-simdgroups module for those
dispatches. The new route compiles exactly that module (route probe 8468646957, census
m3-max-66936, every cell compiled: the 174 differ only in stage, dependencies and requirements).
So the census's cells for those 33 described a module no guest gets.
AUTHORED_COMPILE_CENSUS_VERSION 7 -> 8: the compiles a cell is made of changed route.
Verified:
- compile m3-max-66813 and suites m3-max-66814 at the lane's base
|
||
|
|
85aa6c8dee |
rt: an exported block's BlockInfo states no device address, so its make hands none out
API change for the consumer: BlockInfo::gpu_address becomes Option<u64>. It is Some for every taken, imported and sparse block, as before, and None for an exported block (Device::new_exported_block). BlockInfo stays Clone + Copy. The only way to an address of an exported block's memory is now Buffer::gpu_address of a buffer in it, which marks the block and counts it in Metrics::exported_blocks_addressed as |
||
|
|
6bcd2062db |
Re-pin the runtime sources at the landing tip
The landed packet changed a runtime-sources input, so the committed digest no longer described the sources and `the_runtime_sources_are_the_committed_ones` would fail. Recomputed over the same inputs and committed by land-pkt.sh. |
||
|
|
4c060b7c8d |
Validation: twelve feature members carry their registry name, the two buffer robustness ones among them
The deletion of VkFeature's RobustBufferAccess and RobustBufferAccess2 maps validation's robust_buffer_access and robust_buffer_access2 members to no feature, each with its registry name, so a_member_the_vocabulary_does_not_name_carries_its_registry_name counts 12 such members, not 10 (m3-max-66741 at da086c9b0f: left 12, right 10). Tests only. |
||
|
|
251f64debf |
Tests: the integer rate-map test and the vertex-fetch imports follow the robustness deletion
The deletion of VkFeature's RobustBufferAccess and RobustBufferAccess2 two commits back left two things its compile job found (m3-max-66738, clippy in all three configurations): - engine_rate_map/integer.rs still called profile_with with the robust flag the parent module's helper no longer takes. Its test ran each profile twice, robust and not, the robust leg without the far coordinates (the interpreter traps a read robust descriptors would have contained); one leg remains, and integer_points always holds the far coordinates, which the in-shader check contains on every profile. - engine_vertex_fetch.rs kept a VkFeature import that only the robustness removals used. Tests only. |
||
|
|
8073c73816 |
Tests: the vertex-fetch tests run each committed profile once
profiles_both_encodings gave the vertex-fetch tests each committed profile twice: as committed, and "without robustness", a description with robustBufferAccess and robustBufferAccess2 removed. The translator reads neither (the commit before this one deletes both from the vocabulary, leaving that second leg the profile unchanged), so the two legs compiled the same modules under the same fingerprint and checked the same thing twice. The helper goes, and integer_formats_feed_float_attributes and a_source_buffer_shares_its_arguments_slot run each of PROFILES once, as the file's other tests do. Tests only; no product line changes. |
||
|
|
53dd17e008 |
Translator: delete VkFeature's RobustBufferAccess and RobustBufferAccess2, which nothing reads
The batch deleted the translator's choice between the driver's buffer robustness and the in-shader check: every buffer access is checked in the shader, and no lowering reads robustBufferAccess or robustBufferAccess2. The runtime enables neither (its floor table names neither; robustImageAccess, robustImageAccess2 and nullDescriptor are its robustness features, and robustImageAccess2 stays: memory::contain reads it for images). What still named the two was the enable-set vocabulary around them, so it goes with them: - VkFeature::RobustBufferAccess and VkFeature::RobustBufferAccess2, from the enum, its codec, the exposure table (Vulkan 1.0 core; VK_EXT_robustness2 keeps robustImageAccess2 and nullDescriptor), the Khronos reader's member table, the ash query's feature sources, and required_features (whose Vulkan 1.0 tier held robustBufferAccess alone and goes). - The co-enable rules only they took part in: robustBufferAccess2 needs robustBufferAccess (VUID-...-robustBufferAccess2-04000, a FEATURE_NEEDS row), and the update-after-bind features of buffer descriptor types beside robustBufferAccess without robustBufferAccessUpdateAfterBind (VUID-VkDeviceCreateInfo-robustBufferAccess-10247: device::enables' crate-private BUFFER_UPDATE_AFTER_BIND and BUFFER_UPDATE_AFTER_BIND_VUID, and its branches in co_enable_violation and co_enabled). The multiview rules stay. - DeviceDescription::robust_buffer_access_update_after_bind, which only that rule read, with its Khronos and ash readers and the Device's copy. So a recommendation now keeps every update-after-bind feature a device lists: runtime-floor's, which used to leave its two texel-buffer ones out beside robustBufferAccess, holds them, and a device made from it compiles texture buffers. docs/API.md's section 2 and the enable-set docs say that the recommendation names neither robustness feature, and that a consumer who enables robustBufferAccess itself keeps VUID 10247. The consumer's checkout (reims-vgpu development d80a432f3a, `git grep -n -w ITEM development -- '*.rs'`) names none of the deleted public items: RobustBufferAccess 0, RobustBufferAccess2 0, robust_buffer_access_update_after_bind 0 (BUFFER_UPDATE_AFTER_BIND 0 and BUFFER_UPDATE_AFTER_BIND_VUID 0, both crate-private). It names no VkFeature and no DeviceDescription at all, so no glob import or re-export hides a hit. No module changes: no lowering read either feature. Every committed profile's fingerprint moves (each listed robustBufferAccess, a Vulkan 1.0 requirement), so every golden cell and every key under one moves with it: bless-class, a changed fingerprint, no SEMANTICS bump. The codec names a variant by its tag, so no other feature's encoding moves; an artifact naming a deleted feature would sit under a fingerprint that no longer exists. The tests follow: those of the deleted rules go (recommendations_keep_robust_buffer_access_and_ vuid_10247, a_recommendation_keeps_vuid_10247, both robust_buffer_access_update_after_bind readers' tests); tests that ran every profile "with robustness and without" lose the leg that was the same profile (engine_access, _atomics, _binder, _buffer_table, _copy, _dynamic_roots, _gep_index, _index_words, _kernel_stage_in, _link, _pointer_memory, _pointer_values, _rate_map, _skeleton), and the out-of-bounds cases those tests ran only on the bare leg (short stage-in buffers, far rate-map coordinates, huge copy lengths, 8- and 16-byte leaves past the end) now run on every profile; image robustness lists keep their two image features. Validation maps the two members to no feature (registry names kept), its tier table's robustness-off leg removes the image features alone, and its tests check the two members unset in the chain. The runtime's tests stop naming them. profiles_both_encodings' second leg is now the profile unchanged; the next commit removes it. api_signatures.tsv re-blessed (3 records gone); refusal surface unchanged. |
||
|
|
8ed044f2e8 |
Translator: a replay variant under the identity domains is refused, typed
The commit before this one placed the RootTableAddress a device-replay variant
(VariantKey::replay_bindings) reads its buffer slots' addresses from, so under the identity
domains the variant no longer ends in the internal error "a strategy reads the unplaced push field
RootTableAddress". Its message said the variant then compiles there; it does not. With the field
placed, the plan reaches select::identity_admits, whose admitted push fields hold no
RootTableAddress: the identity domains read no root table, and the variant is refused,
Unsupported{IdentityDomains} (NotImplemented) naming "an encoder value the function reads as
RootTableAddress". That refusal is the true answer: only the binder (bind/replay, bind/dispatch,
bind/graphics) asks for a replay variant, and the runtime, the one consumer of the identity
domains, never sets replay_bindings (no hit in crates/metal2vulkan-runtime/src). The refusal
site and its row are the existing ones, so docs/REFUSALS.md does not change.
So the tests say the refusal:
- pipeline::compile::tests::a_replay_variant_under_the_identity_domains_is_refused_typed (was
..._reads_its_root_entries): icb_render_replay_template, icb_render_stride_template under the
pulled-vertex-buffer variant and icb_replay_template under the identity domains with replay
bindings are each refused, typed, with that feature, need and symbol.
- tests::engine_device_replay::
a_replay_variant_under_the_identity_domains_reads_its_slots_from_their_root_entries goes, with
its module-doc paragraph: no such module is made.
docs/API.md section 5 now says the variant is refused there, and slot_address_field's comment
names the admission that refuses it.
Verified: before this commit, on m3-max-66628 (the product suite at 84c6726dd8, a
card-free host build), both item tests failed with exactly this refusal at the three compile
calls and the engine kernel; without the placement, m3-max-66629 (probe branch
steelbrain/halfmoves-probe-nofix2) failed both with the internal error, so the new test fails
without the placement. This commit's own run is the next compile job.
|
||
|
|
46a9a57522 |
Docs: the runtime binds through no stage table; the validation executor sets its buffer ranges
docs/API.md section 5 said of StageTable::buffer_ranges "The runtime sets it on every table it reads." The runtime builds no StageTable and reads no BindState: crates/metal2vulkan-runtime names no StageTable, BindState, BufferRanges or buffer_ranges, and of the binder it takes only alpha_test_code, SamplerDescriptor and AstcDecode. The tables that set it are the validation executor's: every table its candidate engine builds for a compute, render or mesh case passes through candidate::engine::lengths_classed with BufferRanges::of its profile's limits. The sentence now says so. Verified: grep over crates/metal2vulkan-runtime/src for those four names (no hit) and for metal2vulkan::bind (the three items above); the validation builders read at candidate/engine.rs, engine/graphics.rs and engine/mesh.rs, the one other StageTable there (engine/variants.rs) inside a #[test]. Docs only. |
||
|
|
9df6908e36 |
Translator: a replay variant under the identity domains pushes the root table its slots are read from
Under the identity domains a device-replay variant (VariantKey::replay_bindings) ended in an internal error, "a strategy reads the unplaced push field RootTableAddress": a vertex function's buffer arguments, the attribute of the pulled-vertex-buffer variant and a kernel's buffers alike. The variant reads each buffer slot's address from its replayed command's root entry (access::replay_guest_base, which a replay variant's SlotGuestBase reads route to), and the translator already holds it so: the address is not biased in a replay variant (pointer::biased), and its accesses take no SlotBounds (access::identity_contained). But place_slots pushed every device-address slot's SlotGuestBase under the identity domains, whatever the variant, after plan_replay had replaced the selection's SlotGuestBase fields by RootTableAddress. So nothing pushed the root table's address the derived reads load. The field is placed: a device-address slot's push field is its own address only under the identity domains outside a replay variant (slot_address_field), in place_slots and in the census its spill decision reads, and the root table otherwise. No refusal changes, and no module of a compile that succeeded before changes: the combination never compiled. The branch's one SEMANTICS bump (2273, the half-move commit before this one) covers it. docs/API.md section 5 states where a replay variant's slot addresses come from under the identity domains. Verification: - pipeline::compile::tests::a_replay_variant_under_the_identity_domains_reads_its_root_entries, new: icb_render_replay_template, icb_render_stride_template under the pulled-vertex-buffer variant, and icb_replay_template compile under the identity domains with replay bindings, every buffer slot at its device address, RootTableAddress pushed and no SlotGuestBase or SlotBounds, every stage through L3. - tests::engine_device_replay:: a_replay_variant_under_the_identity_domains_reads_its_slots_from_their_root_entries, new: a kernel compiled so on every committed profile under the identity domains pushes RootTableAddress alone, and on the CPU interpreter reads and writes at the addresses its root entries name (guest plus bind_offset, 16 bytes into one buffer), above 4 GiB. |
||
|
|
4892518700 |
Translator: a half the lowering moves through a containment select or a candidate switch keeps its bits
A half moved without arithmetic must keep its 16 bits, a NaN's payload included: a move is not
the device's arithmetic, so no precision note covers it. bb44847705 fixed the contained load of
device memory. Four more moves the lowering makes itself lost the bits:
- the contained loads of the arenas (lower/access/local.rs) and of the constant blob (blob.rs)
selected the decoded f32 with no bits note;
- the switch-at-use over a pointer's candidate buffers (emit.rs: the device buffers' switch and
the blob-or-buffer switch) merged the arms' decoded f32 by a phi with no note.
A store of the moved half then re-encoded it by the device's narrowing. On the CPU interpreter
2045 of the 2048 all-ones-exponent patterns came back 0x7e00 (0x7c01 to 0x7e00, for example) at
each of the four, on every committed profile under the resident-table domains (job m3-max-66591,
the new test without this change).
One form for every move the lowering makes: the bits move beside the value and are noted for the
result, so a later narrow::to_bits returns them.
- A containment select is leaf::contained (bb44847705's narrow::select_zero) at every
containment select of a leaf: device views and addresses as before, the arenas, the constant
blob, and the pulled fetch's source read. The pulled fetch reads raw integer components and
decodes a half after the select, so its output does not change.
- A switch merge: each arm carries its value's parts and their bits (leaf::carried, the bits
from narrow::moved_bits: the bits noted for the value, else its to_bits), the merge's phis
carry both, and leaf::merged notes each part's bits phi for its value phi
(narrow::note_moved), chunk by chunk for a chunked vector.
Where the moved value is stored unchanged, the f32 select or phi and the decodes are dead and
leave the module; where it is computed with, the bits ones are.
Not changed: a leaf that is no narrow float (carried and merged pass its value alone); the
program's own select and phi of a half, which stay the device's moves under
PrecisionNote::NativeNanEncoding; typed objects, which hold a half widened.
SEMANTICS_VERSION 2272 to 2273 (2272 is lane irisvsimd's, landed first): a module that
stores a half moved through one of these paths changes.
Verification:
- tests::engine_half_moves::our_own_moves_keep_every_half_patterns_bits, new: four kernels move
the patterns through a contained private-arena load, a contained constant-blob load, the switch
over two device buffers (an eight-lane half vector, so chunked) and the switch over a constant
buffer or the blob, each module's path asserted (its census key, or its switch-at-use), on every
committed profile under the resident tables. Without this change it fails at all four (job
m3-max-66591: 2045 of 2048 changed, 5 distinct modules each); with it every pattern keeps its
bits (job m3-max-66584, 2 distinct modules each).
- Compile job m3-max-66584 at this tree: fmt, signatures, refusal surface, clippy plain,
--cfg m2v_gpu and --cfg m2v_cpu_icd, workspace rustdoc -D warnings, api-docs.
- The 252-row hash probe over the two app libraries on validation's runtime description: 252 ok,
0 of 252 module hashes move (job m3-max-66587 against m3-max-66590 at
|
||
|
|
015ece4929 |
rt: count the pipeline cache's replacements past its bound and the blob writes skipped past it
The reaper bounds the device's VkPipelineCache at 32 MiB (cache.rs, PIPELINE_CACHE_BOUND). When a look finds the cache past the bound, look_alone replaces it with a fresh, empty cache, and the pipelines the old one held then compile again wherever they are made again. write() skips data past the bound, which happens at the teardown's write of a cache that grew past the bound after the reaper's last look; the blob then keeps what it held. Today neither event leaves a trace: the replacement only sets the PipelineCacheBytes gauge, and the skip only returns. So a walk cannot tell a recompile storm caused by the bound from any other. Two metrics, counted where the events happen: - Metrics::pipeline_caches_replaced: at look_alone's replacement. - Metrics::pipeline_cache_writes_skipped: at write()'s early return past the bound. Both are fields of Metrics, whose type has no Metal counterpart, and each doc says Metal has none. The bound's shape is unchanged. Test: every_device_replaces_its_pipeline_cache_past_its_bound (tests/translate.rs), extended. The lowered bound (set_bound) makes its one replacement, and pipeline_caches_replaced reads 1. After the fresh cache's write, a creation is held open (cache::creation) so the reaper does not look again before the teardown. A fourth kernel (ob1_storage_buffer) grows the cache, and the bound is set to 1 byte. The device's teardown, run while a clone of its core holds the core, stops the reaper with no look made. The skip count reads 0 until the core's drop, whose close() writes the grown cache; then it reads 1, and the blob still holds the fresh cache's data (24 bytes plus the size written at the last look). README: the cache directory's paragraph on the bound names both counters; so does the counters line. The signatures table gains both fields (scripts/api-signatures/signatures.py --bless). Verified at 76be5d46aa, on development |
||
|
|
a9c1a7d012 |
Re-pin the runtime sources at the landing tip
The landed packet changed a runtime-sources input, so the committed digest no longer described the sources and `the_runtime_sources_are_the_committed_ones` would fail. Recomputed over the same inputs and committed by land-pkt.sh. |
||
|
|
7c2eda477b |
Validation: the runtime guard's list drops the SPIR-V serializer and verifier, which no runtime input reaches now
With the device replay's preprocess module gone, the binder's files reach the SPIR-V builder only through the merged draw's reads (bind/replay), which the compile emits, and no runtime input reaches spirv/serialize or spirv/verify: the_runtime_sources_are_the_committed_ones listed them as unreached (job m3-max-66689 at 13cc8fdae8). The builder's reason says what reaches it now. |
||
|
|
4c21ead93c |
bind: the items nothing outside bind/'s own tests reached go, with the tests of them alone
What goes: every item of the translator's bind/ that no product code, no other crate of the
workspace and no consumer reaches, by rustc's own dead-code answer with bind/'s items made
crate-private (no table is trusted), and the tests that test only them. Six files go whole
(acceleration, chroma_decode, rate_map/regions, replay/rules, sample_interleave, tile_map), and
with them replay/draws, replay/generated, fan_out's tests, the device replay's preprocess and the
host replay (replay.rs keeps the merged draw's reads), the heap element and raw-form readers, the
resident set, the mesh arguments module, the rate-map regions, the sparse tile map, the chroma
decoders and the sample interleave modules. Also the empty `impl Device {}`, and the three Device
calls nothing in the tree made: render_descriptor_key, mesh_descriptor_key and
compile_function_with_report (compile_function keeps its body). The old-key test
(the_old_render_descriptor_key_keeps_its_value) goes with render_descriptor_key: one bless item
fewer at every pin.
What stays: what anything reaches. The consumer-reached ArgumentBufferLayout family, the merged
draw's reads (replay/merged and the helpers replay.rs keeps), ycbcr_convert's and
mesh_arguments' reached items, and every bind item validation, conformance, the runtime, the
harness or the examples name. A CPU oracle, accessor or constructor that only tests call, and
whose tests check kept behaviour, becomes #[cfg(test)] test support where it is (812 lines: the
argument layout's `argument`, the YCbCr read model, YCbCrPlanes and YCbCrInPlace's constructors
and accessors, the rate map's accessors and constructors, FunctionTableWords and the snapshot's
bytes, the ASTC and ETC texel formats and block values, heap_classes and image_classes). The
public types without a constructor (TexelRows, YCbCrInPlace, IndirectRef, ViewMapping,
TileThreadgroupMemory, TileThreadgroupArgument, ArgumentFunctionTable, ResidentRange,
BoundAccelerationStructure) stay: a public field or parameter of the library takes each.
Lines (from the batch's tip): product 9,219 removed and 728 added; test 7,758 removed and 381
added. 137 test functions or helpers outside the deleted ones are edited off a deleted item, the
largest by 22 lines. Validation, conformance, the harness and the runtime change only in doc
comments that named a deleted item.
Docs: docs/API.md says what is true now (no replay, no heap element reader, no has_shape, the
texel-buffer parts rule stated inline), docs/REFUSALS.md regenerated, api_signatures.tsv blessed
(522 records out), the api_surface table drops 79 bind names.
Consumer hits at its development (git grep -n -w ITEM development -- '*.rs'). The consumer
imports from metal2vulkan::bind only ArgumentBufferLayout, ArgumentDescriptor,
ArgumentLayoutError and ArgumentType, with no glob, and the runtime re-exports only
bind::SamplerDescriptor; every non-zero count below is a generic word whose hits are the
consumer's own items (none of their lines names metal2vulkan; its 22 `.argument(`/`.place(`
calls are on its own types).
Device::render_descriptor_key 0, Device::mesh_descriptor_key 0,
Device::compile_function_with_report 0.
Deleted public top-level items (93):
ARGUMENT_BYTES 0, bit_index 0, bit_set 0, ChromaDecode 0, draw_merge_module 0, draw_replay_draw 0,
draw_replay_indexed 0, draw_replay_merges 0, draw_replay_module 0, draw_replay_preprocess 0,
draw_replay_primitive_type 0, draw_replay_slots 0, draw_replay_state 0, draw_replay_vertex_layouts
0, DRAW_REPLAY_WRITES 0, DrawMergeModule 0, DrawReplay 0, DrawReplayLayout 0, DrawReplayModule 0,
DrawReplayPreprocess 0, DrawReplayRule 0, extent_of 0, FORMAT 5, GeneratedLayout 0, GeneratedReplay
0, GeneratedVariant 0, geometry_flags 0, GEOMETRY_NO_DUPLICATE_ANY_HIT_INVOCATION 0, GEOMETRY_OPAQUE
0, geometry_table_offset 0, handle_entry_flags 0, HANDLE_TABLE_CAPACITY 0, heap_element 0,
heap_raw_form 0, HeapElement 0, HeapElements 0, InheritedBytes 0, instance_record 0, InstanceRecord
0, interleave_merge_modules 0, interleave_split_module 0, InterleaveMergeModules 0,
InterleaveSplitModule 0, level_extent 0, MAX_DRAW_REPLAY_TYPES 0, MAX_REPLAY_DISPATCHES 0,
MAX_REPLAY_REGIONS 0, MAX_REPLAY_SLOTS 0, MAX_REPLAY_VARIANTS 0, MAX_SEGMENT_COMMANDS 0,
merge_fragment_typed_module 0, MERGED_CHUNK 0, MERGED_HEADER_BYTES 0, MergedLayout 0, MergePhase 0,
mesh_arguments_module 0, MeshArgumentsModule 0, MeshGridRule 0, MetalInstance 0,
NEUTRAL_HEAP_ELEMENT 0, NO_HOLE 0, PARAMS_BYTES 0, PlanesCopy 0, primitive_wrap 0, RateMapRegion 0,
RateMapRegions 0, REGION_BYTES 0, RegionError 0, RegionLimits 0, replay_preprocess 0,
replay_preprocess_generated 0, replay_preprocess_module 0, ReplayExecution 0, ReplayLayout 0,
ReplayPreprocess 0, ReplayPreprocessModule 0, ReplayVariant 0, resident_view 0, ResidentSet 0,
ResidentView 0, resolve 179, SCRATCH 0, SLOT_TABLE_BYTES 0, SOURCE 7, SparseTileMap 0,
split_typed_module 0, STATUS 42, TEMPLATE_HEAD_BYTES 0, texel_buffer_parts 0, TileMapError 0,
TileMapping 0, typed_module 0, VARIANT_BYTES 0
Deleted public methods and associated items (126; the count is of the member's name):
ArgumentFunctionTable::at_address 0, BindingPlan::heap_elements 0, BindingPlan::instantiate_replay
0, BindingPlan::relisted_sampler_tables 0, BindingPlan::sampler_tables 0,
BindingPlan::unit_axes_variant 0, BindState::has_shape 0, BindState::has_shape_beside_used 0,
BoundBuffer::same_shape 0, ChromaDecode::ALL 62, ChromaDecode::BLOCK_BYTES 0,
ChromaDecode::block_extent 0, ChromaDecode::decode 2087, ChromaDecode::decode_into 26,
ChromaDecode::of 20774, ChromaDecode::TEXEL_BYTES 0, ChromaDecode::texel_format 0,
DrawMergeModule::HEADER_PUSH 0, DrawMergeModule::LOCAL_SIZE 0, DrawMergeModule::PUSH_BYTES 0,
DrawMergeModule::push_constants 0, DrawMergeModule::STATUS_PUSH 0, DrawReplay::new 9170,
DrawReplayLayout::argument_offset 0, DrawReplayLayout::fragment_table_offset 0,
DrawReplayLayout::params_offset 0, DrawReplayLayout::vertex_table_offset 0,
DrawReplayModule::LOCAL_SIZE 0, DrawReplayModule::PUSH_BYTES 0, DrawReplayModule::RECORDS_PUSH 0,
DrawReplayModule::RESIDENT_PUSH 0, DrawReplayModule::STATUS_PUSH 0, EtcDecode::block_extent 0,
ExecutionStatus::WORDS 7, GeneratedLayout::count_offset 0, GeneratedLayout::dispatch_offset 0,
GeneratedLayout::INDEX_OFFSET 0, GeneratedLayout::max_sequences 0, GeneratedLayout::PUSH_OFFSET 0,
GeneratedLayout::sequence_offset 0, GeneratedVariant::new 9170, HeapElements::element 103,
ImageViewDesc::new 9170, InstanceRecord::bytes 7067, InstanceRecord::BYTES 29,
InterleaveMergeModules::SET 43, InterleaveMergeModules::WIDE_BINDING 0,
InterleaveSplitModule::LOCAL_SIZE 0, InterleaveSplitModule::SET 43,
InterleaveSplitModule::SOURCE_BINDING 0, InterleaveSplitModule::WIDE_BINDING 0,
MergedLayout::draw_offset 0, MergedLayout::group_count 0, MeshArguments::ARGUMENT_BYTES 0,
MeshArguments::new 9170, MeshArguments::OBJECT_RECORD 0, MeshArguments::scratch_bytes 0,
MeshArgumentsModule::PUSH_BYTES 0, MeshArgumentsModule::SCRATCH_BINDING 0, MeshArgumentsModule::SET
43, MeshArgumentsModule::SOURCE_BINDING 0, MeshArgumentsModule::STATUS_BINDING 0, MeshGridRule::of
20774, MetalInstance::new 9170, ObjectFold::bytes 7067, PlanesCopy::ALL 62, PlanesCopy::format 3896,
PvrtcDecode::BLOCK_BYTES 0, PvrtcDecode::block_extent 0, PvrtcDecode::decode 2087,
PvrtcDecode::decode_rows 0, PvrtcDecode::level_bytes 0, PvrtcDecode::linear 144,
PvrtcDecode::TEXEL_BYTES 0, PvrtcDecode::texel_format 0, RasterizationRateMap::regions 39,
RateMapRegion::scissor_extent 0, RateMapRegion::scissor_offset 0, RateMapRegion::viewport 45,
RateMapRegions::admits 17, RateMapRegions::admits_planned_layers 0, RateMapRegions::MAX_REGIONS 0,
RateMapRegions::physical_size 4, RateMapRegions::precision 24, RateMapRegions::regions 39,
RegionLimits::new 9170, ReplayExecution::new 9170, ReplayFaults::ACTION 4, ReplayFaults::BARRIER 2,
ReplayFaults::BUFFERS 0, ReplayFaults::ENCODING 0, ReplayFaults::GROUP_COUNT 0,
ReplayFaults::PIPELINE 11, ReplayFaults::RANGE 0, ReplayFaults::RECORD 15, ReplayFaults::REGIONS 0,
ReplayFaults::VARIANT 0, ReplayFaults::VERTICES 0, ReplayLayout::argument_offset 0,
ReplayLayout::params_offset 0, ReplayLayout::region_offset 83, ReplayLayout::table_offset 0,
ReplayPreprocessModule::PUSH_BYTES 0, ReplayPreprocessModule::RECORDS_PUSH 0,
ReplayPreprocessModule::RESIDENT_PUSH 0, ReplayPreprocessModule::STATUS_PUSH 0, ReplayVariant::flat
30, ReplayVariant::new 9170, ReplayVariant::with_imageblock_size 0, ResidentSet::bytes 7067,
ResidentSet::holds 3097, ResidentSet::is_empty 1066, ResidentSet::len 4763, ResidentSet::with 6328,
RootTable::resident_ranges 0, SparseTileMap::byte_len 0, SparseTileMap::is_mapped 4,
SparseTileMap::new 9170, SparseTileMap::tile 141, SparseTileMap::to_bytes 6, SparseTileMap::update
185, StatusWord::ALL 62, TexelRows::elements 50, TexelRows::new 9170, TexelRows::size 3417,
TypedModule::requirements 11
Out of the public API into #[cfg(test)] test support (41; the count is of the last name):
ArgumentBufferLayout::argument 298, ArgumentPlace 0, AstcDecode::block_values 0,
AstcDecode::texel_format 0, EtcDecode::ALL 62, EtcDecode::texel_format 0,
FunctionTableSnapshot::byte_len 0, FunctionTableSnapshot::bytes 7067, FunctionTableWords 0,
FunctionTableWords::byte_len 0, FunctionTableWords::new 9170, heap_classes 0, image_classes 0,
RasterizationRateMap::from_layers 0, RasterizationRateMap::layer 325,
RasterizationRateMap::parameter_data_size 0, RasterizationRateMap::physical_granularity 4,
RasterizationRateMap::physical_to_screen 4, RasterizationRateMap::shader_physical_to_screen 0,
RasterizationRateMap::shader_screen_to_physical 0, RasterizationRateMap::vertical 19,
RateMapAxis::from_tiles 0, RateMapAxis::granularity 24, RateMapAxis::screen_extent 0,
RateMapAxis::tiles 148, ycbcr_read 0, ycbcr_texel 0, YCbCrCodes::units 507, YCbCrInPlace::bits 940,
YCbCrInPlace::element_bytes 0, YCbCrInPlace::elements 50, YCbCrInPlace::format 3896,
YCbCrInPlace::of 20774, YCbCrInPlace::view_bytes 3, YCbCrInPlace::with_planes_image 0, YCbCrPlanes
0, YCbCrPlanes::new 9170, YCbCrPlanesSampler::bits 940, YCbCrPlanesSampler::format 3896,
YCbCrPlanesSampler::matrix 122, YCbCrPlanesSampler::range 1784
|
||
|
|
9f3ff1aa75 |
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. |
||
|
|
be1b2cfe46 |
rt: an exported block's textures owe their copy for an address write only once its address went out
|
||
|
|
cf27dd3eab |
Bless at pin a4cea24962: golden table and render key under SEMANTICS 2272, census
The pin carries the batch (SEMANTICS 2271, ARTIFACT_FORMAT_VERSION 591) and lane
irisvsimd (SEMANTICS 2272). Test tables only; no product file changes.
- tests/golden_hashes.tsv: every profile fingerprint moved, so every cell is re-stamped
(the suites' GOLDEN line read "bless due (stale cells only, keys changed)", not a missing
bump). Among the moves: 519 cells on the three lavapipe profiles go from
Unsupported{IdentityDomains} to compiled with the ordered fetch's deletion (285 in .ll
rows, 234 in .air.ll rows).
- tests/public_fixture_expectations_engine.tsv (inventory parts 3, 4 and 5): the sample
interlock alternative, post-depth coverage and ulong atomics refusals, and one
runtime-floor cell compiled.
- validation's opened_chains.txt: 2 contexts, runtime-floor among them (alphaToOne leaves
the floor; the batch's enables).
- corpus/authored-compile.tsv: the census re-blessed, 2,333 cases x 9 profiles, 20,997
cells, 0 failed, 0 differences, 0 regressions.
- pipeline/compile/tests.rs: the old render descriptor key's value at SEMANTICS 2272,
ed9de2605383ba4540fdb4df1cd101800462f9e5c70bb694248038cc53af4cec.
Verified: bless job m3-max-66616 on the M3 (inventory, golden, printouts, opened chains and
census each exit 0); key read in m3-max-66661 at a4cea24962; quick m3-max-66613 green;
suites m3-max-66614 failed only in the six tables this commit rewrites.
|
||
|
|
a4cea24962 |
Re-pin the runtime sources at the landing tip
The landed packet changed a runtime-sources input, so the committed digest no longer described the sources and `the_runtime_sources_are_the_committed_ones` would fail. Recomputed over the same inputs and committed by land-pkt.sh. |
||
|
|
d94bcda22c |
Fragment quad lane: the subgroup lane's low bits wherever the fragment stage has subgroups, without the quad class
A fragment's [[thread_index_in_quadgroup]] used to take the subgroup lane route (SubgroupLocalInvocationId & 3) only where tier(CrossLane(QUAD), Fragment) held, and it raised the function's class with QUAD. Vulkan does not ask for that class. Section 9.27.9 defines the quad scope over adjacent subgroup invocation indices "in all shaders": (s0) = (s1 - 1) = (s2 - 2) = (s3 - 3), with s0 an integer multiple of 4, and in a fragment shader quad index i is the 2x2 position. Section 9.29 selects OpGroupNonUniformQuad*'s invocations by that same i. None of this mentions the quad operation bit. What changed: - The lane route now asks for what reading the lane uses: the fragment stage's subgroups (tier(LaneArithmetic, Fragment)), holding whole quads (a PartialFragment subgroup of a multiple of 4 lanes, as before). - The route raises the basic class alone. - FragCoord parity stays only for a fragment stage with no subgroups, or ones narrower than a quad. There a quad function is refused by its tier, so nothing can disagree with the parameter. - This is the same query inside the SIMD-groups form, narrowed. No new form. Tests: - tests::engine_simd::a_fragment_quad_lane_needs_fragment_subgroups_and_no_quad_class. On MoltenVK's description without the quad class, quad_lane_f reads SubgroupLocalInvocationId and declares no quad capability. Without this change it takes the parity route, and the test fails. With the fragment stage cleared from subgroupSupportedStages, it reads FragCoord parity and declares no subgroup capability. - a_fragment_quad_lane_is_its_subgroup_lane_or_its_place_in_the_pixel_quad now keys its expected route on the lane's tier. On every committed profile the route is unchanged: each one with fragment subgroups lists the quad class. No card job: every lab card lists the quad class and already ran the lane route. Their fragment quad cases are the evidence for that route. Nothing is claimed for a device without the quad class; none was run. Translation changes only on such a profile, which shares the SEMANTICS 2272 bump on this branch. |
||
|
|
03e13a12c9 |
Docs: object and mesh SIMD-group functions are a recorded refusal; the vertex quad row says shuffles
- docs/API.md, "Mesh pipelines": an object or mesh function that calls a SIMD-group, quad-group or SIMD-group matrix function is refused on every device, including a device that lists the task and mesh stages in subgroupSupportedStages. The translator models no subgroup facts for those stages (device/subgroup.rs, UNMODELED_STAGE). [[thread_index_in_simdgroup]] alone compiles there (the Linear tier). Until now no doc recorded this open gap where a user reads it. Of the corpus index's 14 object and 32 mesh functions, none calls an air.simd* or air.quad* intrinsic. - fixtures/public/engine/README.md, gsm2_vertex_quad_permutes' row: it said the translation emits Vulkan's quad instructions where the vertex stage takes them. It lowers each one to a subgroup shuffle through the ballot of the live lanes, on every device: a group plan takes quad instructions only in a kernel, as tests::engine_simd's vertex_quad_permutes_shuffle_through_the_live_lanes asserts. The runtime-sources.sha256 move from 032b641117 (device/derive.rs and device/subgroup.rs are runtime inputs) is a hash-only re-pin at landing, with no RUNTIME_VERSION bump. A run's behaviour does not change: the device's enables and caps are the same, and only the translator's subgroup model loses a field. |
||
|
|
8db6d705da |
Vertex quads ask nothing of subgroupQuadOperationsInAllStages: their modules hold no quad instruction
A vertex function's quad broadcasts and shuffle-xors lower to subgroup shuffles on every device: quad instructions are emitted only in kernels (lower/simd/mod.rs, GroupPlan::quad_instructions), and Vulkan exempts the compute and fragment stages from subgroupQuadOperationsInAllStages. So no module this translator emits needs that property. The tier still refused a vertex function with quad operations on a device without it (QuadOperations). That refusal was false: the function runs there as it runs on any other device. What changed: - SubgroupModel::quad_all_stages is deleted, with the tier's refusal and quad_instructions' vertex clause. - The requirement derived from a module (spirv/requirements) adds SubgroupQuadOperationsInAllStages for a quad instruction in every execution model except Fragment and GLCompute. Before, it was added for Vertex alone, so a TessellationEvaluation, task or mesh module that held a quad instruction would have missed it. No emitter writes one today; the derivation follows Vulkan's rule for any module. - The description's quad_operations_in_all_stages and VkProperty::SubgroupQuadOperationsInAllStages stay. Enabled caps and that requirement read them. Consumer check: `git -C reims-vgpu grep -n -w quad_all_stages development -- '*.rs'` has 0 hits. The removed field is the only public item that goes; api_signatures is blessed and loses that one record. docs/REFUSALS.md is regenerated: the QuadOperations row no longer names the property, and it has one site. Test: tests::engine_simd::vertex_quads_need_no_quad_operations_in_all_stages. It compiles gsm2_vertex_quad_permutes' three vertex functions on the Iris Xe (RPL-P) description with the property cleared, and each is a valid module that holds no quad instruction or capability. Without the change, each is refused with QuadOperations. No committed profile has vertex subgroups without the property, so the tier table is unchanged. The vertex quad cases on the measured cards read as before: every one of them lists the property. SEMANTICS: this is a refusal turned into a translation on such a profile. It shares the bump to 2272 with PrecisionNote::VertexSimdgroupGrouping on this branch, since the two land together. |
||
|
|
fd6b93d4a0 |
Validation: the vertex quad rationales say a vertex function's quad broadcasts are subgroup shuffles
Four authored vertex quad cases (1c0387d9, d78b048f, e9af4d38, 4a7dd540) said the translation emits Vulkan's quad instructions where the vertex stage takes them. It does not: a group plan takes quad instructions only in a kernel (lower/simd/mod.rs, GroupPlan::quad_instructions), so a vertex function's quad broadcasts and shuffle-xors by constants are subgroup shuffles on every device. Rationale text only; the case ids and every other field are unchanged (the lines round-trip byte-exact through compact sorted JSON). |
||
|
|
c018016565 |
Validation: the authored vertex simd and quad cases no longer cite Apple's packing
The 16 authored vertex cases whose functions run a simdgroup or quad operation (the 8 that
mismatched on the Iris Xe and 8 that matched there) said which vertices share a simdgroup or a
quad on Apple GPUs ("two full simdgroups on Apple GPUs", "on an M4 vertices 0 to 31 form one
simdgroup", "a quad is the four vertices 4k to 4k + 3"). Metal's shading language defines these
functions for kernel and fragment functions only, so each rationale now says the grouping is the
device's and the row is a deferred near-equivalent under PrecisionNote::VertexSimdgroupGrouping.
Rationale only: no case identity, input, AIR or observation changes.
|