ca796ca5ff7c8e87cbcb960681ffd96e2ce96d2f
388
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
dc3e7e5add |
Conformance ledger: NVIDIA's render-then-sample-magnified-linear row returns, the device's own linear filter
What: the NVIDIA venue's render-then-sample-magnified-linear row, as |
||
|
|
f3a820799e |
Translator and runtime: a runtime pixel sampler samples once, at the quotient, as at pin W
The planner's ruling on pin X's fragment growth (12-04). The level-0 arm that |
||
|
|
2a406a848e |
Conformance ledger: the XR families' extended-swizzles rows on the RX 7900 XTX, Iris Xe and NVIDIA venues; NVIDIA's render-then-sample-magnified-linear row goes
What: 132 rows, 44 for each card venue (RX 7900 XTX, Iris(R) Xe, NVIDIA), of extended-swizzles-bgra10xr and -bgr10xr: the 44 sites the llvmpipe rows ( |
||
|
|
303638b080 |
Conformance ledger: half-texel-nans' rows on KosmicKrisp; the runtime README's unexplained-rows bullet goes
What: 12 rows of venue Apple M3 Max for what KosmicKrisp (Mesa 26.3.1) answers in half-texel-nans: - 9 rows of R16Float, RG16Float and RGBA16Float at a nearest sample, a read and a read through a sample (515, 1026 and 2045 elements): every differing element is a NaN in both answers, the device's NaN bits (rule 1), Metal's texel bits kept where the device answers 0x7e00. - 3 rows of R32Float, RG32Float and RGBA32Float at a nearest sample (42, 85 and 171 elements): 0x7bff in Metal's answer, 0x7c00 in the device's, a texel past 65504 that Metal saturates and the conversion takes to the infinity of its sign (PrecisionNote::HalfTexelConversion), as the other venues' rows at these sites record. Each row names its notes and marks the cause of the move as expected, not verified: the device converting in the shader rather than in its texture unit since the extended-range select ( |
||
|
|
35ca0e4606 |
Conformance ledger: the XR families' rows on KosmicKrisp
What: 62 rows of venue Apple M3 Max for what KosmicKrisp (Mesa 26.3.1) answers in the XR families, the same gaps the other venues' rows record: - 18 rows of the device's blend of the codes (PrecisionNote::ExtendedRangeBlend and ExtendedRangeBlendWindow) and its resolve (DeviceRoundedResolve): xr-blend (4), xr-gamut (9), xr-gradient (3), xr-masked (2). The two premul blends differ from the other venues past the window (the largest difference 53,463 against 24,637), unexamined against Vulkan's clamp of a fixed-point source, as their rows say. - 44 rows of extended-swizzles-bgra10xr and -bgr10xr, with the llvmpipe rows' cause: a sample past the edge through a border address mode reads the device's border in code space, and a BGRA10_XR linear sample filters in the fields' low 6 bits (the runtime's known gaps, not built). docs/CONFORMANCE-COVERAGE.md is regenerated. Why: the replay of KosmicKrisp at development (m3-max-86361) listed them as unlisted; the planner ruled both families rows, the extended-swizzles fix a bug row of its own. Verified: the answers are KosmicKrisp's own, from that replay. The replay of the whole ledger on KosmicKrisp with these rows (m3-max-86387, an Apple M3 Max): 12 unexpected, every one half-texel-nans (not these families), 0 of the 62. |
||
|
|
ff6e54b4ae |
Conformance ledger: the mesh rows on the RX 7900 XTX
The RX 7900 XTX (RADV, Mesa 26.2.6) replayed the 44 cases of mesh pipelines at 19bf5ff006 (job 86024, carry b11f9ecd63) and answered as the RTX 5080 Laptop, the RTX 3090 and the Radeon 780M did: 9 exact, 5 announced, 1 divergent, 29 refused. Its 25 lines of drift are exactly the rows those venues carry, so the same rows are written for the venue "RX 7900 XTX": the ThreadgroupMemoryLength and IndirectObjectGrid refusals, the two CommandTypes cases, the eight divergent sites of mesh-barrier-readers with the reason quoting the header and note 3 of the feature set tables, and the twelve mesh-limits cases refused at maxTotalThreadsPerThreadgroup. docs/CONFORMANCE-COVERAGE.md regenerated (coverage.py). Verified: job 86024 printed the 25 lines these rows answer, and the same job's device tests passed 8 of 8 with the validation layer. A replay of this commit on the card, to show no drift, follows. |
||
|
|
1d1a16aaf6 |
Conformance ledger: the mesh rows on the Radeon 780M
The mesh replay on the Radeon 780M (RADV, Mesa 26.2.6), job m3-max-85955 at 26d0420861 with the carried binaries, held the same 25 sites as the RTX 5080 Laptop and the RTX 3090 (jobs 85920 and 85935), case for case, site for site and answer for answer, and nothing else: 9 exact, 5 announced, 1 divergent (mesh-barrier-readers, the ruled rows), 29 refused. Those 25 rows come in for venue 780M. The runtime's 7 mesh device tests passed there under the validation layer. The RX 550 (RADV, Mesa 26.2.6), which lists no VK_EXT_mesh_shader, replayed the same 44 cases in job m3-max-85949 with exit 0: 25 lacking the feature, 7 exact (the creations Metal refuses), 12 refused at the `*` rows, so no per-venue row fires on a venue without mesh stages. docs/CONFORMANCE-COVERAGE.md is regenerated in this commit (coverage.py --check passes locally). |
||
|
|
e5a9b6d7d0 |
Conformance ledger: the mesh rows on NVIDIA
The mesh replay on the RTX 5080 Laptop (NVIDIA 615.71.09), job m3-max-85920 at 26d0420861 with the carried binaries, held exactly the rows lavapipe holds and nothing else: 25 sites "not listed" on this venue, every one the same case, site and answer as its llvmpipe row (IndirectObjectGrid at the two indirect object draws, ThreadgroupMemoryLength at the lengths case, CommandTypes at the two command cases, the tile getter at the 12 made mesh-limits states, and mesh-barrier- readers' 8 fragment-to-* sites). Those 25 rows come in for venue NVIDIA. The same run: 9 exact, 5 announced (the draw cases, under the device's native NaN encoding note), 1 divergent (mesh-barrier-readers, the ruled rows), 29 refused; mesh-partial-barrier- uniform is exact (its PredicationVote refusal is fixed in 0d7bbee12c). The runtime's 7 mesh device tests passed there under the validation layer 1.4.363.0. docs/CONFORMANCE-COVERAGE.md is regenerated in this commit (coverage.py --check passes locally). |
||
|
|
6639653a97 |
Conformance ledger: the mesh rows as the runtime now answers, on lavapipe
The mesh cases were 49 rows of `*` refusing a call the runtime's side lacked (mesh_pipeline,
mesh_pipeline_limits, mesh_pipeline_for_commands, mesh_pipeline_bindings,
mesh_descriptor_facts). The adapter answers all five, and the lavapipe replay of job
m3-max-85712 (c6bd918103) read each of those rows as no longer held. They go, and the rows the
replay holds come in (47):
- `*`, the calls that make no pipeline: the mesh descriptor's label and binaryArchives (3 cases,
the consumer's own, as the render descriptor's) and the two reflection cases' 8 option sites
each (the consumer's own reflection).
- llvmpipe, the calls that make one, so a venue without mesh stages reads them as lacking the
feature and holds no row (a `*` row there fails as no longer held, now lacks the feature):
- IndirectObjectGrid at the indirect draw of mesh-object-draws and of
mesh-barrier-indirect-object-reader (the step-4 ruling: refused at the draw);
- ThreadgroupMemoryLength at indirect-mesh-commands-object-threadgroup-lengths' pipeline (the
object function's [[threadgroup(n)]] argument, refused at the creation, as ruled);
- CommandTypes at both mesh-commands cases' command buffer (the ICB ruling; its row's count:
0 of 22 kept streams, jobs 85614/85615);
- maxTotalThreadsPerThreadgroup, a tile getter, at 12 mesh-limits cases whose state is made
(an M3 Max answers 0 there; the runtime makes no tile state);
- mesh-barrier-readers, divergent at the attachment and drawn count of its four rows whose
barrier names the fragment stage in afterStages. main's ruling: the documented answer stands.
MTLRenderCommandEncoder.h says the barrier makes stores at or before afterStages coherent
with loads at or after beforeStages, which the runtime does; the M3 recorded the reader
without the fragment's words, and the Metal Feature Set Tables (October 23, 2026, note 3)
say Apple3 through Apple11 GPUs don't support barriers with the fragment stage in after.
The other mesh rows stay: function facts, the pipeline handler pair, the binary archive adder
and the visible-table stages answer as before. mesh-partial-barrier-uniform holds no row: its
PredicationVote refusal is fixed in 0d7bbee12c. The GPU venues' rows follow their runs.
docs/CONFORMANCE-COVERAGE.md is regenerated in this commit (coverage.py --check passes locally).
|
||
|
|
132e7a16c6 |
Conformance: a made mesh state's sites are its own method, so the coverage reads its Field
Job m3-max-85712 (c6bd918103) failed conformance_coverage's
the_conformance_coverage_document_is_what_the_sources_derive: MeshStateLimits'
max_total_threads_per_threadgroup became a Field in the adapter commit, and the coverage
generator finds a Field's leaf only as `Node::leaf("site", field(&self.x, ..))`. The node
recorded it through `state.` inside Creation<MeshStateLimits>::node.
The made state's leaves move to MeshStateLimits::with_sites (&self), in the same order and with
the same values; the creation's node adds them where the state was made. docs/CONFORMANCE-
COVERAGE.md is regenerated: MeshDescriptorFacts (label, binary_archives) and MeshStateLimits
(max_total_threads_per_threadgroup) join the table of refusable fields.
Verified: `python3 -I -B scripts/conformance-coverage/coverage.py --check` passes on this tree
(run locally, no cargo); the conformance suite runs in the next job.
|
||
|
|
3e3deb25b9 |
Translator and runtime: BGR10_XR and BGRA10_XR render targets take Metal's writes, clears, masks and covered blends
The red commit's test, and the conformance cases that render into either format, which the runtime refused (Gap::TextureFormat on a RenderTarget texture). Attachments. A BGR10_XR or BGRA10_XR color attachment is its texture's UNORM image (FormatEmulation::ExtendedRangeUnorm, now admitted as a color attachment and, blended, as a blended one): A2R10G10B10_UNORM_PACK32, and R16G16B16A16_UNORM with red and blue exchanged. The formats' second, raw candidate and ExtendedRange::of_attachment are gone; the runtime makes a RenderTarget texture of either, and a device whose format query lacks the usages is refused the pipeline, naming them (the runtime's floor does not require R16G16B16A16_UNORM as a color attachment). Writes (lower::stage_io::extended_unorm_color). A fragment function writes Metal's code of its output (rounded to half, nearest even, then encoded as a kernel write encodes it) as the field's value over its maximum, a little above the code (metal::format::extended_unorm_field: 10-bit (c + 0.0005) / 1023, 16-bit (64 c + 0.25) / 65535), which a device's conversion stores as that code whether it rounds to nearest, toward zero, by floor(x 1024) or, as lavapipe does for a 10-bit target, through 16 bits (round(x 65535) >> 6; an offset of 0.25 stored code + 1 for the 251 codes from 772). BGR10_XR's two alpha bits are written as ones, as Metal writes them. Clears store Metal's clear codes (metal::format::extended_unorm_clear, the runtime's clear values). Masks are Metal's on the image's channels (BGRA10_XR's red and blue exchanged; BGR10_XR's alpha bits written with any color channel). A resolve is the device's AVERAGE of the codes, which average as the values do; PrecisionNote::DeviceRoundedResolve now names a BGRA10_XR field's low bits. A fetch of either attachment is refused NotImplemented(Format) at compile, and at link where the function does not write it. Blends (pipeline::extended_blend). Metal's blend into these formats, measured on an Apple M3 Max (macOS 27.0.1) over the xr-blend recordings: the source clamped to the values of codes 0 and 1022 (a NaN to code 0) and alpha to [0, 1], a destination color code to 1022, half arithmetic, the result rounded to a code. That model is every recorded channel's but 9 of 172,032 (premultiplied source-over, one code each, listed in the ledger rows). The function clamps its output as Metal's blend does; a blend that stores its source (one and zero, added) stores the clamped codes exactly. Any other blends the codes in Vulkan with a source factor of one, the function writing the term X that makes Vulkan's blend of the codes Metal's blend of the values; destination factors that read the source read it from a second output (dualSrcBlend, in the floor), BGR10_XR's alpha too, so its alpha bits stay ones. A factor pair the module does not cover (a BGRA10_XR destination alpha among them) is refused NotImplemented(Format). Notes, static per pipeline: PrecisionNote::ExtendedRangeBlend on every blend that does not store its source (the device rounds each draw's result to the field, a BGRA10_XR field keeping the fraction of a code in its six low bits); PrecisionNote::ExtendedRangeBlendWindow where the corrected term or a second-output factor can leave [0, 1], which Vulkan clamps (pipeline::extended_blend::window_holds, from the factors and operations at the corners of the source's range; a unit test classifies every factor pair and operation at both formats). Both are in docs/API.md's catalogue with counts, and the runtime's README records the window as a known gap with its trigger. Ledger: 18 llvmpipe rows of the B cases that differ (the xr-blend addition and premultiplied source-over, xr-gamut, the blended xr-gradient and xr-masked over draws, and xr-gradient's unblended resolve), each citing its note, with counts from a model of our blend whose count of differing elements is lavapipe's replay's to within 11; and the same cases' rows on the RTX 3090 (NVIDIA 620.70.06, m3-max-85796; there xr-gradient-bgra10xr-unblended-x1 too, 39 fields a code off by the device's arithmetic of the gradient), the RX 7900 XTX (m3-max-85797) and the Iris Xe (m3-max-85798), each pointing at the case's llvmpipe row, with that device's counts. Cache key: LoweringInputs::extended_unorm_colors is hashed into the function key where it is set (pipeline::compile::key), so a fragment function compiled for a BGR10_XR or BGRA10_XR attachment never takes another's translation; the key test asserts that the attachment and the format each change the key. SEMANTICS_VERSION 2378 and ARTIFACT_FORMAT_VERSION 612. RUNTIME_VERSION 2577 (XR render targets are made); runtime-sources.sha256 re-pinned. api_signatures blessed and api_surface extended (ExtendedUnormBlend, ExtendedUnormColor, extended_unorm_clear); docs/REFUSALS.md regenerated (the fetch's refusal site). |
||
|
|
e9290d8138 |
Runtime tests: BGR10_XR and BGRA10_XR render targets store Metal's codes (red)
An arm64 guest walk met render pipelines and passes into MTLPixelFormatBGR10_XR (554) and MTLPixelFormatBGRA10_XR (552); the runtime refuses a texture of either with RenderTarget usage (Gap::TextureFormat), so no pass draws into one. every_device_renders_extended_range_targets_as_metal_stores_them, on every device of the cfg's kind, for both formats in Shared and Private storage (a Private target read back by a blit into a buffer): a pass clears an 8 by 8 target to Metal's specials and code boundaries and the words come back as Metal's clear stores them; rt6_samples' half4 fill over 64 values across and past the codes' range (a NaN, the infinities, the ends) draws unblended, then blended with Metal's default factors, one and zero, and each texel holds Metal's store (unblended: the half's code; blended: the source clamped to codes 0 to 1022, a NaN to code 0, alpha to [0, 1]); over a Shared BGR10_XR target whose words' two top bits are zero, a draw under straight alpha-over leaves those bits ones, as Metal's store writes them. The ledger's refused rows of the conformance cases that render into either format, which this change's fix makes run, go: xr-draw, xr-clears, xr-clear-routes, xr-masked, xr-blend, xr-gamut, xr-gradient and xr-unwritten, BGR10_XR and BGRA10_XR without sRGB (168 rows); the sRGB twins' and the two-plane forms' stay. Coverage regenerated. |
||
|
|
f43cff7e76 |
METAL-COVERAGE: the sparse tile sizes and region conversions are sparse tiles, not tile pipelines
Six MTLDevice items were filed in the coverage map as tile render pipelines ("tile render
pipelines; metal2vulkan-runtime makes none", size L, group tile): sparseTileSizeInBytes,
sparseTileSizeInBytesForSparsePageSize:, the two sparseTileSizeWithTextureType:pixelFormat:
sampleCount: forms and convertSparsePixelRegions:toTileRegions:... and
convertSparseTileRegions:toPixelRegions:.... They answer a sparse texture's tile size and convert
regions between pixels and its tiles, and have nothing to do with tile render pipelines. They now
read "sparse tiles", size S, group sparse, as MTLTexture.firstMipmapInTail, tailSizeInBytes and
isSparse already do; that group's name, "placement sparse page sizes", becomes "sparse page and
tile sizes", which it held already with those three. The tile render pipeline group keeps its
other 20 items.
docs/METAL-COVERAGE.md is regenerated: missing by size S 178 -> 184 and L 313 -> 307, the sparse
group 5 -> 11 items, the tile group 26 -> 20; the status totals do not move.
Verified, on the CPU with no device: scripts/metal-coverage/coverage.py --check reads the document
current; the table's status counts, which the validation suite's
the_coverage_documents_totals_are_the_tables compares with the document, are unchanged, and every
missing row keeps a size and a group.
|
||
|
|
bb7661f09a |
Conformance ledger: the linear pixel-samplers slot rows of five cards and lavapipe's rgba8 pair read the exact form
A linear runtime pixel sampler's slot site hands the bound state's unnormalized twin the coordinate itself at the texture's level-0 element. So each card's slot digest moves off the one its normalized sampler gave at x / N. Answers change on the 6 slot rows (rgba8 and rgba16f linear edge, zero and border) of: - RX 7900 XTX (m3-max-85879, RADV 26.2.6) - RTX 3090 (m3-max-85881, 620.70.06) - 780M (m3-max-85882) - RX 550 (m3-max-85883) - Iris Xe (m3-max-85938, Mesa 26.2.6) Each digest comes from that card's replay of the 20 pixel-samplers cases at 82b6989d59. The linear arm is unchanged by 9cc5655c57. Every row of those cases at those venues takes a text naming the new grouping of the four sources' digests. Answers change on slot rows alone: 32 rows, checked against the parent's ledger. On the 3090 (m3-max-85937, the same build with each source's results dumped), slot is nearer Metal's answer than the normalized sources in every linear case. For example, rgba16f edge: slot differs from Metal at 24 of 800 coordinates by at most 0.0142, the others at 45 by at most 0.0215. lavapipe's two rgba8 rows (linear zero and border, case/output/slot) move to 7423f6db70a5. This is the exact form's change, not an image change: - The pinned-lavapipe check m3-max-85860 (msi's Mesa 26.2.4, LLVM 23.1.1) gives that digest. - The merged check m3-max-85692 counted the same 4 drift lines among its 10, at the same product code (3777af5b7a changes a test alone). - Mesa 26.2.6 (m3-max-85845) gives it too. Per element (85845's dumps, same sha256), slot differs from norm at 79 of 800 coordinates by at most 2.35e-7, and from Metal's at 489 where norm does at 495, each by at most 0.00181. That is the device's filter at Metal's coordinate. So the pin and the ledger's "# llvmpipe:" line stay. No nearest or subnormal row changes. 9cc5655c57 keeps a nearest runtime pixel sampler's texel centre, as shipped. Coverage regenerated (scripts/conformance-coverage/coverage.py). |
||
|
|
82b7d9e4a2 |
Conformance ledger: the llvmpipe rows of three rgba16f pixel-samplers cases read the exact form
The exact form (86b5171e25) hands a runtime pixel sampler's coordinate itself to the device's unnormalized sampler through the texture's level-0 element, where `arg`, `norm` and `const` (a constexpr pixel sampler, normalized under the identity domains) hand its normalized sampler the coordinate over the size. lavapipe filters RGBA8 at 8-bit weights, where both coordinates read one answer, but weighs an RGBA16Float texel pair at its own sub-texel precision, so the `slot` site of pixel-samplers-rgba16f-linear-edge, -zero and -border answers its own digest; mirror stays on the normalized path and nearest reads the same texel either way. My miss: group C's gate replayed only the pixel-downscales cases on lavapipe, not the pixel-samplers family, which also samples through a runtime pixel sampler; the staged check (job m3-max-85692, lvp_conf on the pinned lavapipe) found the three rows stale. Checked per element (job m3-max-85845, lavapipe Mesa 26.2.6, the same slot digests as 85692's pinned 26.2.4), each source's 800 results against Metal's recorded answers: `slot` differs from `norm` at 107 (edge) and 81 (zero, border) of 800 coordinates, by at most 1.31e-6, 81 and 55 of them nearer Metal's answer and 21 farther; the largest difference from Metal's, 0.0107, is the same for every source. RGBA8 and mirror: `slot` equals `norm` bit for bit on edge and mirror. The device's filter at Metal's coordinate (rule 1, note device-sampling). Each case's four llvmpipe rows take the new text; the slot rows take the new digests. docs/CONFORMANCE-COVERAGE.md is regenerated. |
||
|
|
ed46bdbfc5 |
Conformance ledger: the pixel-downscales rows of six venues read the exact form
The texture slot's runtime pixel sampler (`slot`) now samples the texture's level-0 element through its state's unnormalized twin at the coordinate as given, so its answers moved. Each venue's rows are rewritten from a clean replay of the seven cases at 306a517dc4 (the product code of this tip), with new waiting-on texts: - NVIDIA (RTX 3090, 620.70.06, job m3-max-85099) and Iris(R) Xe (Mesa 26.2.6, same job): `slot` answers the argument buffer's normalized control's (`norm`) digest at every set, bit for bit over every element (the probe's dumps, 172,665 a set). - RX 7900 XTX (job m3-max-85100), 780M (alone on its node, job m3-max-85101) and RX 550 (job m3-max-85161), RADV Mesa 26.2.6: `grid` and `ulp` answer Metal's digests; at `frac` `norm` lies within 0.031/255 of Metal's and `slot` within 0.95/255, 1.5% of the samples at another sub-texel step. The probe's half-step set shows RADV rounding a half step of the 1/256 grid to the even step where Metal rounds up (every even one of 86,333, none of the 86,332 odd), the device's own arithmetic: the same module answers Metal bit for bit on KosmicKrisp (job m3-max-85028). - llvmpipe (Mesa 26.2.4, LLVM 23.1.1, the pinned image's; job m3-max-85083): `slot` and `norm` answer one digest at `grid` and `ulp`; at `frac` `slot` lands within 1.375/255 of Metal's in the compared windows, `norm` within 1/255. No row says ours. docs/CONFORMANCE-COVERAGE.md is regenerated (scripts/conformance-coverage/coverage.py). |
||
|
|
24cb048066 |
Conformance ledger: the pixel-downscales rows of the Apple M3 Max go
The texture slot's runtime pixel sampler now samples through the level-0 arm, at the coordinate
itself, so on KosmicKrisp (Apple M3 Max), whose filter is Metal's, the seven pixel-downscales
cases are announced with no divergence at any set: the 18 frac/slot rows of that venue no longer
diverge ("it now matches", job m3-max-85022, a clean replay of the seven cases on KosmicKrisp at
28d28599bd). docs/CONFORMANCE-COVERAGE.md regenerated.
|
||
|
|
58988c6b83 |
Translator and runtime: BGR10_XR and BGRA10_XR textures are held as the UNORM codes of their bits and read as Metal's values
An arm64 guest walk met MTLPixelFormatBGR10_XR (554) and MTLPixelFormatBGRA10_XR (552), which the runtime refused (Gap::TextureFormat): the translator held them raw in an integer format whose values the identity domains do not convert. A texture of either is now held in the UNORM format of its bits (FormatEmulation::ExtendedRangeUnorm): BGR10_XR in A2R10G10B10_UNORM_PACK32, bit-identical, its alpha read as one; BGRA10_XR in R16G16B16A16_UNORM, viewed with red and blue exchanged. Copies, blits, getBytes and replaceRegion move Metal's bytes unchanged. The emulation is admitted for sampling, linear filtering and min/max reductions; a device whose format query lacks the usage is refused the texture. The runtime's form admits it. Every float or half sample, gather and read of a sampled colour image (lower::texture::extended_unorm) tests the texture's word: a slot's pushed resource ID word, format (word >> 16) in 552..554; an argument buffer member's handle, which now carries the word's low bits and bit 30 where the word names one of those formats (AccessPlan::heap_extended). Where it does, each lane holding a channel's code (the word's border-texel bits: code lanes, and alpha lanes) is mapped from the field's value u to Metal's (c - 384) / 510: w = u * m (m = 1023, or 65535 / 64), a read's and a gather's code taken whole (a 16-bit field's floor(w + 1/128), whatever its low 6 bits hold; a 10-bit field's nearest code, floor(w + 1/2), as NVIDIA's gather on the RTX 3090 widens a 10-bit code by replicating its bits, (c << 6 | c >> 4) / 65535, up to 0.015 of a code low, m3-max-85756), alpha clamped to [384, 894], and the quotient formed as n * KH + n * KL (KH + KL the f32 split of 1/510), which rounds once to Metal's correctly rounded value at every code, fused or not (unit tests over all 1024 codes of both formats, and of a replicated 10-bit code). The difference, both products and the sum are decorated NoContraction: lavapipe otherwise factored the sum into n * fl(1/510), which misrounds 572 of the codes (the first try replay's reads one f32 step off at exactly the codes that misround). A read the device's robustness bounds tests its operands inside the branch and reads a code lane outside as 0, Metal's out-of-bounds texel. A sample is the device's filter of the codes, which the affine map keeps. On a real card a nearest sample is Metal's value exactly: the RX 7900 XTX's every nearest sample of both formats, m3-max-85664. Lavapipe converts a field by its reciprocal, c * fl(1 / (2^b - 1)), as PrecisionNote::DeviceTexelConversion records, and the map keeps that: its nearest sample of BGRA10_XR's code 602 is four f32 ulps from Metal's (m3-max-85482, LLVM 23.1.1; m3-max-85612, LLVM 23.1.4). The runtime test compares nearest samples exactly, on lavapipe (cfg m2v_cpu_icd) against lavapipe's conversion so mapped. A render pipeline with a 552 or 554 colour attachment is made as before, through the formats' second, raw candidate (R32_UINT, R16G16B16A16_UINT; emulation ExtendedRange): their render targets are not built, and a texture of either with RenderTarget usage takes that candidate, which the runtime refuses (Gap::TextureFormat), so no pass draws into one. A storage element is not built (the storage choice refuses the emulation). Not built (the runtime's known gaps, docs/API.md): a sample past the edge through a border address mode reads the device's border in code space (opaque white 1.2529, BGRA10_XR's 1.2549; black -0.7529); a linear sample of a BGRA10_XR texel whose fields' low 6 bits are set filters them in (within 63/64 of a code step); every float sample, gather and read of a sampled colour image pays the word's test and branch. SEMANTICS_VERSION 2373 (module words: the arm, the handle's bits). RUNTIME_VERSION 2572 (a run views an extended-range format held as its UNORM codes); runtime-sources.sha256 re-pinned. api_signatures blessed: FormatEmulation::ExtendedRangeUnorm added (a consumer matching FormatEmulation exhaustively meets a new variant; the enum is non_exhaustive). REFUSALS.md unchanged. The ledger's llvmpipe rows for extended-swizzles-bgr10xr gain the four border sites (0ag1/g2, 0ag1/sl, 0ag1/sn, ar10/g1) the replay on lavapipe at the CI pin (Mesa 26.2.4, LLVM 23.1.1) shows, m3-max-85482, and its BGRA10_XR rows of nearest and linear samples name the low-bits gap beside the border's: most of the case's random fields hold low bits, which a sample filters in. Lavapipe's conversion shows at none of the case's elements (each texel's fields checked against lavapipe's reciprocal conversion). Coverage regenerated. |
||
|
|
5d628eeee8 |
Tests: BGR10_XR and BGRA10_XR textures are made and read as Metal's values (red)
The runtime refuses a texture of MTLPixelFormatBGR10_XR (554) or MTLPixelFormatBGRA10_XR (552) (Gap::TextureFormat): the translator holds them raw in an integer format whose values its identity domains do not convert. An arm64 guest walk met them. A new runtime test, every_device_reads_samples_and_gathers_extended_range_values, makes a 4 by 2 texture of each, holding codes at the ends, at the values 0 and 1, and alphas outside [0, 1], with the bits Metal does not read set in every other texel, and through the owned fixture fpv_swizzled_reads checks: the bytes come back from getBytes as replaceRegion wrote them; a read and a nearest sample of each texel answer (c - 384) / 510 correctly rounded, alpha clamped to [0, 1] and BGR10_XR's alpha 1; a gather of each component answers its four texels; a linear sample between four texels answers the mean of their codes' value within 1e-3; and through a view of the swizzle alpha, blue, zero, red each lane its source. The conformance ledger drops the refused rows of texture-round-trip-552 and -554, fresh-pattern-552 and -554, and extended-swizzles-bgr10xr and -bgra10xr, whose textures are made next; the coverage doc is regenerated. Red: the test fails at new_texture with the refusal, and the six cases' replays fail on the unlisted refusal, until the next commit. |
||
|
|
ee45758ba9 |
Translator: a sparse read through a sampler reads its texel, resident
Metal 4.1's sparse_read(sampler s, coord, offset, lod), a read through a sampler whose function
observes bit 0 of its status word (sparse_color::resident()), was refused in the texture family
(Unsupported{Lowering(Texture); NotImplemented}): what a sampler's addressing does to the residency
of a sparse texture's texels was unmeasured, the M3 having read only a texture that is not sparse.
With an observed residency now the constant resident word and the runtime making no sparse
texture, the question is Metal's answer over a texture that is not sparse, through each kind of
addressing, inside the texture and outside it.
Measured, with the new owned fixture engine/a2_sparse_read_through (a texture2d<float> read at
p[i] through constexpr clamp_to_edge, clamp_to_zero, clamp_to_border of opaque white, and repeat,
storing each colour and each resident()), over a 4x4 RGBA32Float texture of two levels at twelve
positions: inside the texture, one and several texels past each edge, at level 1, and at levels 2
and 5, past its last. On the Apple M3 Max (macOS 27.0.1), plain and under Metal's validation layer
(which reported nothing), every residency is resident, at every position through every sampler,
and every colour is the one a read through that sampler reads (the read_through family's rules:
the edge texel through clamp_to_edge and repeat, the border texel through the two border modes,
zero in every lane past the last level). So the read takes the constant word as every other
observed residency does, and select_read's refusal goes. Nothing else changes: the read through a
sampler and the word were each built already.
Tests:
- engine_texture_oob/through.rs's
a_sparse_read_through_a_clamp_to_edge_sampler_reads_its_texel_resident runs sparse_edge (the
test's Metal 4.1 module, storing 1.0 in lane 3 where resident) and edge_plain (the same read with
its word unused) on every profile and class over a two-level 4x4 texture: inside, past each edge,
at i32::MIN, at level 1 and past the last level, each reads the clamp-to-edge texel (zero past
the last level) and sparse_edge's lane 3 reads 1.0 at every row; it links and passes spirv-val
on every profile where it translates. It replaces
a_sparse_read_through_a_clamp_to_edge_sampler_is_refused.
- engine_identity's a_sparse_access_of_a_texture_slot_is_resident compiles a2_sparse_read_through
too, on every identity profile and moltenvk-m3 without robustImageAccess2: L3 passes, the
interface states no specialization constant but the dispatch's, and the module holds no
OpImageSparse* instruction.
- The conformance case sparse-read-through (cases/sparse_read_through.rs, the fixture's kernel,
12 threads) records the M3 Max's colours and residencies, and Metal's times. It declares
simdgroup-access-order, which loosens no value: the kernel writes out[5 * i + k] for five k,
stores the translator does not find disjoint between two threads of one SIMD-group, so the
runtime's pipeline notes it on every device (announced on lavapipe), as for the other cases
with that store.
Docs: lower::texture's module docs (the read through a sampler, the status words) and API.md's
texture paragraph say a sparse read through a sampler reads resident, with the M3 Max's answer.
docs/CONFORMANCE-COVERAGE.md is regenerated.
The new fixture's companions (.ll, .air.ll, TOOLCHAIN's line) come from
scripts/regen-air-fixtures on the M3 Max; its air_input golden printout is blessed under the
pinned LLVM. Engine inventory: the new rows engine/a2_sparse_read_through.air.ll and .ll, ok on
all 15 profiles. The .air.ll row, which only macOS assembles, carries the .ll row's answer, as
every blessed pair in the table does (1,724 pairs equal; the 10 that differ are the previous
commit's, which the next bless moves); the M3 bless confirms it.
SEMANTICS_VERSION 2365 -> 2366 (a placeholder, renumbered at landing): a function with such a
read translated to a refusal and now translates. The golden table gains the new fixture's rows at
the next pin's bless; no other cell moves (the cells that change at this commit are the previous
commit's 237, cell for cell).
Verified:
- m3-max-85077, the Apple M3 Max (macOS 27.0.1): the fixture's companions from
scripts/regen-air-fixtures, and its kernel plainly and under the validation layer (the answers
above).
- m3-max-85084 and m3-max-85200, the M3 Max: the recording of sparse-read-through, plain and under
the validation layer, and its times.
- m3-max-85550, the M3 Max: the air_input golden printout, blessed under Homebrew LLVM 21.1.8,
the pinned major.
- m3-max-85515, on the CPU with no device, at this change before its golden and row: the engine
inventory's eight llvm_as parts differ from the table only by the new row (ok on all 15
profiles, now in it). Red, with lower/texture/mod.rs at the previous commit:
a_sparse_read_through_a_clamp_to_edge_sampler_reads_its_texel_resident and
a_sparse_access_of_a_texture_slot_is_resident fail, and the control
a_clamp_to_edge_read_clamps_its_coordinate_into_the_texture passes. Green: all three pass.
- m3-max-85600, on the CPU with no device, at this change before the .air.ll row and the
declaration: the golden table's cells at this commit and at the previous commit are the same
237, cell for cell; the refusal surface's check, fmt, signatures, clippy (plain, --cfg m2v_gpu,
--cfg m2v_cpu_icd), Rustdoc, private docs, doctests and scripts/api-docs pass; the metal2vulkan
suites ran 3,471 tests: 3,469 passed, 24 skipped, and the failures are
golden_hashes_match_the_table, whose table is blessed at the next pin, and
inventory_lists_every_fixture_in_order, which the .air.ll row now answers; validation ran 1,343
tests, all passed, 2 skipped; conformance ran 1,055, all passed. In CI's lavapipe image,
sparse-status-plain differed only as justified, and sparse-read-through differed only at its
notices, by simdgroup-access-order, which it now declares.
- m3-max-85750, at this commit: inventory_lists_every_fixture_in_order passes, conformance ran
1,055 tests, all passed, and in CI's lavapipe image both cases differ only as justified:
sparse-read-through by the simdgroup-access-order notice it declares, sparse-status-plain by
native-nan-encoding.
|
||
|
|
e9e52050d0 |
Runtime and translator: a compute encoder binds a buffer with its attribute stride, and a dynamic stage-in layout fetches at it
What:
- ComputeCommandEncoder gains three methods:
set_buffer_with_attribute_stride (setBuffer:offset:attributeStride:atIndex:;
setBuffers:offsets:attributeStrides:withRange: is a loop of it, as every
other range call of the runtime is), set_buffer_offset_with_attribute_stride
(setBufferOffset:attributeStride:atIndex:) and
set_bytes_with_attribute_stride (setBytes:length:attributeStride:atIndex:).
- Each buffer slot's binding (Slot::Buffer, Slot::Bytes) keeps the stride's
low 32 bits, so MTLAttributeStrideStatic is 2^32 - 1. A new
FieldValue::StageInStride(slot) pushes it. It is mapped from the
translator's PushField::StageInStride, and the interface accepts
RuntimeFact::StageInStride.
- set_buffer, set_buffer_offset and set_bytes bind a stride of 0, which
clears an earlier one. That includes set_buffer of the buffer and offset
the slot already holds, which used to return early.
- Translator: the identity domains accept PushField::StageInStride
(lower/select.rs), as they accept the vertex analogue
PushField::VertexBufferStride. Before, a dynamic layout was their typed
refusal, EncoderValue "StageInStride(1)". The translator test
a_fixed_layout_records_no_stride_and_a_dynamic_one_records_its_own now
makes the pipeline, which records RuntimeFact::StageInStride of layouts 1
and 2 and none for layout 3, the constant step.
- Deleted: StageInKind::DynamicStride, unbuilt_stage_in and its call at
state creation. Gap::StageIn now names only IndirectRegion.
- Conformance:
- The runtime side plays the four attributeStride steps and
setStageInRegion:.
- The four DynamicStride ledger rows of attribute-stride-buffer,
-buffer-offset, -inline-bytes and -plural-buffers are replaced by each
case's dispatchType row (case/outcome/dispatch_type, the consumer's own),
which every compute-pass case carries.
- CONFORMANCE-COVERAGE.md is regenerated.
- Regenerated:
- REFUSALS.md and error/basis.rs;
- METAL-COVERAGE.md and coverage.tsv (the four setters are implemented);
- api_signatures.tsv (three methods added, one variant removed).
- Docs:
- The runtime README's compute section and its known gaps.
- Validation's ToolingRequirement::DynamicStageInStride doc: the runtime
builds the layout, and the engine's candidate does not yet bind with the
stride form. Its classification is unchanged.
- Versions, renumbered at landing: RUNTIME_VERSION 2570 and
SEMANTICS_VERSION 2370, because the
translator's refusal becomes a pipeline. runtime-sources.sha256 does not
move: lower/select.rs, cache/mod.rs and the runtime crate are not among
its inputs.
Why: the planner ruled DynamicStride BUILD. The translator already lowered
the fetch at PushField::StageInStride. The runtime refused the state because
its compute encoder had no attributeStride setter and no field that pushed
the stride, and the identity domains refused that encoder value.
What a plain bind reads: Metal documents no answer for a plain bind of a
slot that a dynamic layout reads, and the debug layer answers differently.
Probe dynamic_stride_plain_binds.m, job m3-max-85456 (Apple M3 Max, macOS
27.0.1), read stride 0 for every plain bind, alone and after a stride bind
(setBuffer:offset:atIndex:, setBufferOffset:atIndex:,
setBytes:length:atIndex:). Its stride-8 control read stride 8. The planner
ruled to build that answer without pinning it against Metal: there is no
conformance row for it. The setter's doc says Metal documents no answer, and
the runtime device test below holds the runtime's own behaviour.
Consumer search (git grep -n -w DynamicStride in the consumer's checkout at
a34e93e4fa): 8 hits.
- Code that will no longer compile:
- rt_platform/diag.rs:3077 and :3085 name rt::StageInKind::DynamicStride
in a test.
- Tests that will fail:
- rt_platform/compute.rs:1394 expects the dynamic-stride state to be
refused (StageIn-DynamicStride).
- Docs and comments:
- rt_platform/compute.rs:18 and :1246.
- rt_platform/diag.rs:7 and :3081.
- docs/accuracy-ledger.md:129.
Per compute.rs:14, the consumer binds the attributeStride selectors as the
calls without them. It can now call these setters.
Tests: every_device_fetches_a_dynamic_stride_layout_at_the_stride_each_bind_gives
makes ten binds and dispatches:
- strides 40 and 80, 2^32 + 40 (reads at 40), and MTLAttributeStrideStatic
(thread 0's element, then zeros);
- set_buffer of the same buffer and offset after a stride bind (stride 0);
- set_buffer_offset after a stride bind (stride 0, one element on);
- set_buffer_offset_with_attribute_stride;
- set_bytes_with_attribute_stride;
- set_bytes after a bytes stride bind, and after a buffer stride bind
(stride 0).
Verified, at this tree (2f654e598c before the fold):
- Device tests, filtered test(stage_in) | test(dynamic_stride), 8 tests
each, every one passed; each card printed the dynamic-stride test's line:
- lavapipe, job m3-max-85611 (998 skipped);
- RX 7900 XTX (RADV, Mesa 26.2.6), job m3-max-85587, --cfg m2v_gpu;
- RTX 3090 (NVIDIA 620.70.06), job m3-max-85588, --cfg m2v_gpu;
- Iris Xe (ANV, Mesa 26.2.6), job m3-max-85601, --cfg m2v_gpu.
- Conformance replay of attribute-stride-buffer, -buffer-offset,
-inline-bytes and -plural-buffers on the same four devices, same jobs:
EXIT=0. Each case's one refusal is its dispatchType ledger row, with no
divergence, so every stride slot read the words the M3 recorded,
MTLAttributeStrideStatic and the 2^32-truncated strides included.
- Suites, job m3-max-85586:
- product: 3471 passed, 4 failed, 24 skipped. One failure is
golden_hashes_match_the_table (the SEMANTICS placeholder; golden tables
are re-blessed on development). The other three are the fixture tables
inventory_lists_every_fixture_in_order,
engine_fixtures_match_their_golden_printout and llvm_as::part_5_of_8.
All three fail on engine/dvw_depth_views, which development's
|
||
|
|
619e977d63 |
Translator: a texture's observed residency is the constant resident word
A sparse_sample, sparse_gather or sparse_read (and a sparse block read) whose function observes
bit 0 of its status word (sparse_color::resident()) was refused under the identity domains:
the observed residency made the slot's RuntimeFact::SparseTexture, a texture state the identity
domains do not source (Unsupported{IdentityDomains; NotImplemented}, IdentityCause::TextureState).
The golden table and the engine inventory held the refusal for engine/a2_sparse_status, and the
runtime's README listed it as a known gap.
Metal's answer over a texture that is not sparse, measured with this kernel plain and under
Metal's validation layer (which reported nothing): every residency resident on the Apple M3 Max
(macOS 27.0.1) and on the AMD Radeon Pro 5300M (macOS 26.7.1), not resident on the Intel UHD
Graphics 630 of the same MacBook (macOS 26.7.1), with the same colours on all three. Both answers
are Metal's. The runtime makes no sparse texture: it has no sparse heap or sparse texture API, and
the consumer tells no guest it has sparse textures (every Apple family's supportsFamily NO,
sparseTileSizeInBytes 0, isSparse NO, and a sparse heap refused at newHeapWithDescriptor:).
So the word is the M3 Max's and the 5300M's answer, a constant: an observed residency is 0,
resident, of a slot and a heap element alike, with no query, no precision note and no second
form. lower::texture::residency answers false wherever the word's other bits are not observed (a
word with another bit observed stays refused), so no access marks its slot's residency and no
slot states a SparseTexture fact. The extended-range sample, which refused an observed residency,
takes the constant word too.
Tests:
- engine_identity's a_sparse_access_of_a_texture_slot_is_resident compiles a2_sparse_status on
every identity profile and moltenvk-m3 without robustImageAccess2: L3 passes, the interface
states no specialization constant but the dispatch's, the plan no SparseTexture fact, and the
module holds no OpImageSparse* instruction.
- engine_texture_oob's block_reads_read_their_texels_as_reads_do runs br_sparse (a sparse block
read storing 2.0 where resident) on every profile and class, where it asserted the refusal:
its alpha lane reads 2.0 at every point, inside the texture and outside.
- The conformance case sparse-status-plain (cases/sparse_status.rs, the a2_sparse_status kernel
over two 4x4 RGBA32Float textures, 16 threads) records the M3 Max's colours and residencies,
and Metal's times; its module docs state all three Macs' answers.
Docs: the runtime README's known gap for this residency goes, with the sparse residency in the
list of texture state the identity domains do not source; API.md's texture paragraph says an
observed residency reads resident, with the Macs' answers, and PixelSamplerScaling's entry (here
and on PrecisionNote) loses its observed-residency case.
Engine inventory (public_fixture_expectations_engine.tsv): 147 .ll cells move from
Unsupported{IdentityDomains; NotImplemented} to ok, every profile's of a2_sparse_status,
kernel_block_read's br_sparse, sps2_residency_probes, spse_address_probes, spse_array_probes,
spse_level_probes and spse_volume_probes (15 each), and every profile's but runtime-floor's of
spse_write_probes, spse_write_barrier and a27_spse_write_barrier (14 each; runtime-floor's stays
Unsupported{IdentityDomains; NotImplemented}). Their .air.ll twins, which only macOS assembles,
move at the M3 bless.
SEMANTICS_VERSION 2367 -> 2368 (renumbered at landing): the residency-observing fixtures' golden
cells change from the refusal to modules. The golden table is blessed at the next pin.
Verified:
- m3-max-85059, on the CPU with no device, at this change on an earlier development
(004f68b48f; rebased since onto
|
||
|
|
0ae54b7ec4 |
Conformance: the M3's recording of the imageblock slice past the grid
Recorded on the Apple M3 Max (macOS 27.0.1) by job m3-max-85134 (record, three runs, one outcome, the validated leg ran without a stop; times --runs 8 --write). Every grid thread's texel holds its own value, (1 + x + 8y) / 64 and three zeros, and every one of the 22 cells past the grid holds zero, neither the -1 sentinel nor any thread's value: the answer the case's test pins, read from these bytes. docs/CONFORMANCE-COVERAGE.md regenerated (coverage.py) for the case and its dispatchThreads step. |
||
|
|
c43c130d1a |
Tests: a sampler of Metal's undeclared filter 2 is made and filters as nearest (red)
MTLSamplerMinMagFilter's raw value 2 (MTLSamplerMinMagFilterCubic) is declared by no SDK header, by Apple's page, or by the Metal Shading Language, and nothing a program can ask tells it about the value. Metal makes a sampler state of it on every Mac measured. The case's own inputs read a footprint wider than one texel on an Apple M3 Max (macOS 27.0.1, job m3-max-85004) and the nearest texel on a Radeon Pro 5300M and an Intel UHD Graphics 630 (macOS 26.7.1, job m3-max-85003). Undocumented Metal is not emulated, so the runtime is to make the state and filter it as nearest, the x86 Macs' answer, on every device. The tests that hold that: - rt every_device_shares_sampler_states_device_samplers: a state with a Cubic min and mag filter is made (no Gap::CubicSampler), its word is the nearest state's, and it takes no device sampler of its own. - translator a_cubic_filter_is_the_nearest_filters: a Cubic min filter, mag filter or both is the nearest filter's word, device sampler of each use, and unnormalized reading, at normalized and pixel coordinates; and a_sampler_word_holds_each_field_at_its_bits: a Cubic filter's word is 0. - conformance sampler-cubic-filter: its ledger row (refused on every venue) goes. The case drops its bicubic-filter-arithmetic declaration and lets each lane's runtime red hold its own texel where the M3 Max's recording differs (every lane but lane 0), under the new accepted difference in docs/API.md. the_cubic_allowances_are_the_lanes_nearest_moves pins those lanes to the recording. docs/CONFORMANCE-COVERAGE.md regenerated (coverage.py): one ledger row fewer, one tolerance more. |
||
|
|
6af0aa8c9b |
Conformance: depth-colour-reads carries Metal's times; coverage regenerated
The suite's every_case_carries_its_timing failed on the new case (job m3-max-84879). `conformance times --runs 8 --write depth-colour-reads` on the Apple M3 Max (macOS 27.0.1, 26A434; job m3-max-85057) kept its figures in the recording; its answers are unchanged. docs/CONFORMANCE-COVERAGE.md regenerated (coverage.py): one module more declaring a notice, from the depth notices the case now declares. |
||
|
|
8e2ae4e702 | CONFORMANCE-COVERAGE.md: regenerated for depth-colour-reads | ||
|
|
e5b7498833 |
Translator: an argument buffer's texture read through a sampler takes its border texels from its resource ID's word
Metal 4.1's read(sampler, coord) of a texture an argument buffer holds was refused as
Unsupported{IdentityDomains} with cause HeapResource ("a texture handle that reads its table
entry beyond its element (Indexed ...)"): a read that may hand back the border texels made the
handle search's indexed form (Lookup::Indexed), whose uses read the border texels from a
handle-table entry, and the one form has no table. Metal gives the read to every guest device,
so it is built. The golden table's engine/kernel_read_through rt_heap_zero, rt_heap_ow and
rt_heap_arg, and the conformance cases read-through-a8, -heap-border, -heap-sampler, -r32f,
-rgba8 and -rgba8-swizzled, were refused.
The form is the slot's. Bits 0-11 of the texture's resource ID's word hold its border texels
(docs/RESOURCE-ID.md), and an argument buffer's member holds the whole ID, word included:
- AccessPlan::lookup no longer has an indexed form; a function with heap_border yields Element or
Flagged (alpha) as any other, which the admission takes;
- emit_identity_handle carries the word's low 14 bits (HANDLE_WORD, above the 16-bit element) in
every texture handle of such a function, ungated (the texture-buffer words keep their
TexelBufferWords gate where they alone need them);
- heap_element_index masks such a handle to its element at every use;
- heap_border_texels takes bits 0-11 of the carried word, and for a texture buffer whose word
holds a word layout's fields there, its format's border texels from its code, as a slot's read
does (words::slot_border_texels). It was an error stub;
- the read's words estimate counts that extraction (32 words) in place of two indexed flag reads.
Nothing builds Lookup::Indexed now, so it goes, with what only it used: HANDLE_ENTRY,
FLAG_BORDER_TEXELS, INDEXED_FLAGS_WORDS, heap_flags (a check for the indexed form; its two
callers wrap the handle themselves), the search's indexed arm and its test rows.
Test: engine_identity's
an_argument_buffer_textures_read_through_a_sampler_takes_its_border_texels_from_its_word compiles
rt_heap_zero, rt_heap_ow and rt_heap_arg on lavapipe, moltenvk-m3 and moltenvk-m3 without
robustImageAccess2. Each passes L3, plans heap_border, states no BorderTexels fact and no
specialization constant but the dispatch's, and on the CPU interpreter reads Metal's border
texels (metal::sampler::border_texel) of R32Float, RGBA8Unorm, A8Unorm and a swizzled RGBA8Unorm
for each entry's border colors, and the texel inside the texture. engine_texture_oob's
every_read_through_a_sampler_validates_or_is_refused_typed now validates the three entries where
it counted their refusal.
Conformance ledger (known-gaps-rt.tsv): the six `*` rows of those cases' rt_heap pipelines go.
With the pipelines made, each case runs whole, and llvmpipe's answers at 96 sites that a refusal
had left uncompared differ from Metal's by one f32 ulp in A8Unorm, RGBA8Unorm and swizzled
RGBA8Unorm texels. Those are the device's own 8-bit conversion (rule 1, note
device-texel-conversion), and each gets an llvmpipe row. docs/CONFORMANCE-COVERAGE.md is
regenerated.
Docs: the runtime README's forms list loses the entry for this read. API.md's identity paragraph
and RESOURCE-ID.md say an argument buffer's texture reads its border texels as a slot's does.
Engine inventory (public_fixture_expectations_engine.tsv): the 45 cells of
engine/kernel_read_through.ll's rt_heap_zero, rt_heap_ow and rt_heap_arg move from
Unsupported{IdentityDomains; NotImplemented} back to ok. Their .air.ll twins, which only macOS
assembles, move at the M3 bless.
SEMANTICS_VERSION 2360 -> 2361 (renumbered at landing: 2359 and 2360 went to checked naming and the seq_cst fence): the rt_heap cells of the golden table change from the refusal to
modules. The golden table is blessed at the next pin, not here. runtime-sources.sha256 moves for
memory/handles.rs alone: the deleted indexed form is translation code, and no run of an
unchanged artifact changes.
Verified, at this commit's tree:
- m3-max-84730, on the CPU with no device. Red: the new test and the read-through validation test
with the lowering and memory/handles.rs at the base fail (EXIT 100). Green: both pass, with the
search's tests (EXIT 0). fmt, signatures, clippy (plain, --cfg m2v_gpu, --cfg m2v_cpu_icd),
Rustdoc, private docs, doctests and scripts/api-docs pass. The metal2vulkan suites ran 3,494
tests, 3,493 passed, and the one failure is golden_hashes_match_the_table; the engine inventory
parts pass. Validation ran 1,348 tests, all passed, 2 skipped; conformance ran 1,053, all passed.
- m3-max-84829, on the CPU with no device: of the golden table's 28,950 changed lines, all are
"profile changed" lines of the table not yet blessed since the resident core's deletion, and 45
change a cell, every one an rt_heap cell of engine/kernel_read_through.ll, from the refusal to a
module.
- m3-max-84715, the pinned lavapipe image (llvmpipe, LLVM 23.1.1, 256 bits): the conformance
replay of the 13 read-through cases ends EXIT 0 with "the 96 row(s) above are exactly the open
gaps known-gaps-rt.tsv expects on this venue".
- m3-max-84619, on the Iris Xe (Mesa 26.2.6), at the same change on the base before the inventory
bless: the 13 read-through cases report 0 gap rows, EXIT 0.
|
||
|
|
436dd1045e |
Conformance ledger: the buffer-depth-samples rows of the Apple M3 Max go
KosmicKrisp (Mesa 26.3.1) on the M3 Max runs the family's five cases at
|
||
|
|
439a45aa2e |
Conformance ledger: the buffer-depth-samples rows the runtime now copies, on five venues
Each of the family's five cases now runs where it refused (Gap::TextureBytes): the stencil cases compare exact and the 16-bit depth cases announce their note (rounded-sample-depth-copy), which they declare, on the RTX 3090 (NVIDIA 620.70.06, job m3-max-84576), the RX 550 (RADV, Mesa 26.2.6, 84577) and the RX 7900 XTX (RADV, Mesa 26.2.6, 84578), at d81831ad09, the change's tip before its rebase. Their rows go, and so do the 780M's and the Iris Xe's, whose device test copies every row bit for bit on the same runs (their conformance replays are next). On lavapipe (job m3-max-84579) the 4-sample stencil cases are exact, and the 4-sample 16-bit depth case differs only in its samples site, where the device's decode of a 16-bit depth to float is one ulp from Metal's, as depth16-texel-reads records: a row of the device's own answer. The 2-sample rows there stay (no texture of 2 samples). The three every-venue rows narrow to the Apple M3 Max, whose KosmicKrisp venue is not yet run. CONFORMANCE-COVERAGE.md regenerated. |
||
|
|
6521f16ed5 |
Conformance ledger: the pixel-sampler quotient at group C's sites is ours on the six other venues
What. The KosmicKrisp venue (Apple M3 Max) reads 22 sites as ours, not the device's
(
|
||
|
|
dbc0f04ef3 |
Conformance: block-writes-only-writes recorded on Metal
The case's Metal answer, recorded on an Apple M3 Max under macOS 27.0.1 (job m3-max-83930): for both usages, ShaderRead | RenderTarget | BlockWritesOnly (0x10005) and the bit alone (0x10000), the dispatch completes and every texel holds its four codes (00 ff 00 ff, 10 ef 25 fe, ...), with no notice announced. The coverage table is regenerated with scripts/conformance-coverage/coverage.py. |
||
|
|
4b68322b79 |
Conformance ledger: the Iris Xe's rgb10a2unorm texture-buffer write matches Metal now
What: drops the known-gaps-rt.tsv row norm-storage-codes-rgb10a2unorm | Iris(R) Xe | divergent | case/hsw_buffer/texels, and regenerates docs/CONFORMANCE-COVERAGE.md from it. Why: pin S's real-card round replayed the ledger on the Iris Xe (RPL-P, Mesa 26.2.6) and reported "now matches: 1": that case no longer diverges there, and the ledger must not outlive the gap it stands for. Pin R's round passed the same leg (job m3-max-83399), so the change came between R and S: there a read-write texture buffer whose format's own view reads none without a format became words ( |
||
|
|
5eeeb8d752 |
Conformance ledger: the KosmicKrisp venue's 30 held lines, each under its read cause
The Apple M3 Max venue (KosmicKrisp, Mesa 26.3.1) held 30 lines after its re-record, kept back until their causes were read. Each now has a row whose text names that cause: - a2c and a2one, 8 texel sites: KosmicKrisp computes alpha-to-coverage in the fragment shader with NIR's nir_lower_alpha_to_coverage (kk_shader.c, msl_nir_lower_common.c). The mask is Mesa's mapping, not Metal's. Note device-alpha-coverage. - half-output-blends-r32f sa-1msa: KosmicKrisp blends in the fragment shader (kk_lower_fs_blend, nir_lower_blend), compiled under Metal's fast math, so the products round in Mesa's order. Note device-color-conversion. - pixel-downscales frac/slot digests, 7 sites: ours, not the device's. The slot's pixel coordinate goes to the normalized sampler as coordinate over size (pixel-sampler-scaling). The norm control matches Metal on this venue. - The venue's 11 downscale frac/slot head and tail rows, landed with the earlier re-record, now carry the same "ours" text in place of "the device's own answer". - pixel-samplers rgba8 and rgba16f linear-mirror, slot and arg, 4 sites: ours, the same scaling under mirrored repeat. KosmicKrisp maps mirrored repeat to Metal's own mode, and norm and const give Metal's digest. - texture-buffer-fill-groups, -fill-streams and -long-fills: KosmicKrisp's minTexelBufferOffsetAlignment of 16 (KK_MIN_TEXEL_BUFFER_ALIGNMENT) refuses the offset-4 texture buffer typed (Refusal::TextureBufferAlignment), before the fillTexture step. - texture-fills-41: A1BGR5Unorm is not made on this venue. - texture-fills-236: KosmicKrisp offers ASTC HDR, so the case reaches fillTexture (Unavailable). Those five cases' every-venue rows split into llvmpipe, NVIDIA, RADV and Intel rows, since KosmicKrisp answers otherwise there. In the split texture-fills-236 rows, "on any venue" now reads "on this venue". docs/CONFORMANCE-COVERAGE.md is regenerated (coverage.py). Answers taken from the KosmicKrisp replay of job m3-max-82902. The KosmicKrisp replay at this commit (Apple M3 Max, job 83133) reports 0 unexpected lines. docs/CONFORMANCE-COVERAGE.md re-run with coverage.py on development: unchanged. |
||
|
|
965e707277 |
Conformance ledger: the Apple M3 Max venue (KosmicKrisp) re-recorded, but the sites still to be read
The M3's conformance replay on KosmicKrisp (Mesa 26.3.1) at 6989666062 (job m3-max-82902; the product of development's |
||
|
|
28e4da1f17 |
Docs: Metal's resolve rounds a tie as its GPU does, and the alpha-to-coverage note's devices at 8 samples
The planner's ruling on resolve rounding: rule 1 counts a resolve among the device's own answers, and two Macs round an average that lies exactly halfway between two codes differently, so Metal fixes no answer there for a guest. An Apple M3 Max (macOS 27.0.1) rounds the tie up, as the conformance recordings sample-positions-default-2x and -4x hold (red 1/255 over half the samples resolves to 1); an AMD Radeon Pro 5300M (macOS 26.7.1) rounds it to the even code (red 0 at 1 of 2, 2 of 4 and 4 of 8 samples, an alpha of 127.5 to 128; m3-max-82284). The device's own rounding stands; no behaviour changes and neither Mac's rounding is emulated. - PrecisionNote::DeviceRoundedResolve's doc and docs/API.md's catalogue entry name both measured answers with their sources. - The seven known-gaps-rt.tsv rows of sample-positions-default-2x and -4x (Iris Xe, RADV, NVIDIA, llvmpipe) say they differ only by how a tie rounds, and why that stands; docs/CONFORMANCE-COVERAGE.md regenerated from them. - PrecisionNote::DeviceAlphaCoverage's doc and its catalogue entry say exactly which devices are measured at 8 samples: the 5300M (m3-max-82239); the M3 Max, which renders no 8 samples and so has no answer there; no device the runtime runs on. They said before both that the 5300M was measured at 8 and that 8 was unmeasured on every device. |
||
|
|
c1e6805526 |
Conformance: the sample positions family at 8 samples, carried from an AMD Radeon Pro 5300M
The oracle, an Apple M3 Max, renders no 8 samples (supportsTextureSampleCount: answers no for 8), and a Mac with an AMD GPU does. Three rows run the family's pass at 8 samples: the device's own positions against an edge at 5/8 of the pixel (5 of 8 samples), eight positions at x 0.25 (8 of 8) and one at 0.25 with seven at 0.75 (1 of 8). Their Metal answer is carried from an AMD Radeon Pro 5300M under macOS 26.7.1, plain and under Metal's API validation layer, which passed the passes (job 82284, the usage-edges probe sample_positions_8.m): the resolved texels 01 00 00 9f, 01 00 00 ff and 00 00 00 20, record mode forbidden on the oracle. Each row's coverage avoids a resolve halfway between two codes: there the 5300M rounds to the even code (4 of 8: red 0, alpha 128; and 1 of 2 and 2 of 4: red 0) where the M3 Max rounds a half up (red 1), which is the device's own rounding (PrecisionNote::DeviceRoundedResolve), not where the samples are. The probe's sweep of the default positions, an edge at each even sixteenth, covered 0 to 8 samples in order, as Vulkan's standard 8 locations do. The rows are sample-positions-8x-default, -8x-custom-left and -8x-custom-mixed, one prefix that tests::a_carried_answer_taken_on_another_chip_names_it lists beside managed-named-* as the 5300M's. Their recordings were written on the oracle by record mode's carried path, which runs no Metal, with the timing record `times --write` keeps for a case whose Metal leg is forbidden (m3-max-82412). Verified: the conformance suite and its clippy (m3-max-82421); the rows replayed through the runtime on lavapipe (m3-max-82337, m3-max-82421), an RTX 3090 (m3-max-82314), an RX 7900 XTX (m3-max-82315) and an Iris Xe (m3-max-82316): every byte equal to the 5300M's, each row announced only by the device's own colour conversion or point size notes. The 2x and 4x default rows, whose resolve halves a code, stay the known gaps the ledger holds on those cards. |
||
|
|
cb98ac0cb5 |
Conformance: srgb-storage-fragment-writes recorded on Metal, the coverage regenerated
Metal's run on an Apple M3 Max with its validation layer (job m3-max-82183, record then times --runs 8 --write): each fragment's write stores the same bytes the kernel case's writes store, all four stored sites equal to srgb-storage-writes' recording. On the runtime at development's tip the case's draw is Gap::StorageElement; the runtime's draw test is red on lavapipe (job m3-max-82181, filtered, 3 tests: 2 passed, 1 failed, the new one, refused StorageElement Absent). |
||
|
|
3ecfe8f034 |
Conformance ledger: the BGRA4Unorm texture buffer's rows follow the device's texel-buffer query
|
||
|
|
bbdf8d4d90 |
Conformance recordings: the five managed-named cases, carried from the 5300M's measurement
Each recording holds the case's carried answer as record mode writes a carried case's: the transcript of the reader's content as an AMD Radeon Pro 5300M under macOS 26.7.1 read it, 8 rounds a reader (jobs 81602 and 81644), measured_on amd-radeon-pro-5300m, validated not run. The compute slot, the declaration, the vertex slot and the blit source read the bytes as of the reader's commit; the reach through the address alone reads the bytes the GPU's copy last took. The oracle's own run is forbidden by the cases (one copy), so nothing here ran on Metal. They were written by record::carried and record::write, the calls record mode makes for a carried case, through a scratch test of a CPU-only job's own workspace (job m3-max-81916, at c098a9848e), never committed. docs/CONFORMANCE-COVERAGE.md is regenerated with them (scripts/conformance-coverage/coverage.py): 192 case modules, 1347 recordings, 85 carried. Verified: in the same job the conformance suite ran 1050 tests, 1048 passed; the two failures are the coverage document, regenerated here, and the cases' missing Metal time records, which the oracle's times run adds next. |
||
|
|
e4195ee560 |
Conformance recording: indirect-range-gpu-written-indexed-patch-draws on Metal
Metal's answer for the indexed-patch-draws range row, recorded on the Apple M3 Max (macOS 27.0.1, 26A434) by job m3-max-81637 at 992794d8bd (the AIR commit, d244877fb2 after the rebase onto 685bde8009, the same patch), with its times (8 rounds, the same job). The execution completes, and commands 1 to 5 draw rows 2 to 11 whole: each command's quad, whose four corners are stored out of order and named in order by its 16-bit control-point indices, covers its two rows. Each texel holds the command's mark, the patch index i, the instance and the base instance i, the patch-draws row's texels exactly. The ledger's Iris Xe row is the Extension refusal, as for the other range rows: the Iris Xe lists no VK_EXT_device_generated_commands. CONFORMANCE-COVERAGE.md is regenerated. |
||
|
|
39423d92f1 |
ICB: a kernel's indexed patch draws into an indirect command buffer, executed through a layout of indexed patch draws
The owner's 3406 order, the planner's next indirect command kind: MTLIndirectCommandTypeDrawIndexedPatches. The records (pipeline::IndirectDrawLayout) grow by 8 bytes a command for every kind. The control-point indices' address is a third u64 that an execution pushes, and VUID 11103 asks each token's offset to be at or past the one before it, with the draw token last (VUID 11100). So the address cannot go after the draw; it lies past the index token's 16 bytes, at index() + 16. Every command's tail is now 16 + 8 + 4 + 20 = 48 bytes: the stride is index() + 48 (was + 40), the sequence index's place index() + 24 (was + 16), and the draw's arguments index() + 28 (the translator's DRAW_AT, was 20). The cost is 8 bytes a command in every buffer: 160 bytes for 7 vertex and 7 fragment slots (was 152, 5% more), 48 for none (was 40), 544 at most (was 536), which the floor's stride and token-offset limits are checked against. One record shape for every kind stays: a kernel cannot know a buffer's kind when it is translated, so it writes one shape whatever buffer it reaches. The main lane accepted this on the condition that the already-landed kinds' rows run again at the new layout. Translator (lower/access/icb.rs): a render_command's draw_indexed_patches writes what draw_patches writes (the draw's VkDrawIndirectCommand of patches, the factors' and the patch indices' Metal addresses) and the control-point indices' Metal address at the new place (CONTROL_POINTS_AT, IndirectDrawLayout::control_point_indices). Its operands are draw_patches's, with the control-point indices at operand 6. Runtime: Device::new_indirect_command_buffer takes DRAW_INDEXED_PATCHES alone (CommandDraw::IndexedPatches), refused as patch draws are on a device whose executions run no tessellation stage (TessellationStages). Its layout pushes the control-point indices' address where the control stage reads it (FieldValue::ControlPointIndices), holds no index buffer token, ends in TOKEN_DRAW and names the tessellation stages. An execution checks the state's control-point index type against the buffer's kind, as a direct draw checks it against the call: patch draws with a state of an index type are Refusal::PatchDrawWithIndexType, and indexed patch draws with a state of none Refusal::IndexedPatchDrawWithoutIndexType. This replaces the patch draws' check through an empty PatchReads. Docs: the runtime README's ICB section (records, tokens, refusals, floor limits); the API guide's section 1; METAL-COVERAGE (coverage.tsv); CONFORMANCE-COVERAGE and REFUSALS.md regenerated (the two refusals gain the draw site); the API signature table blessed for control_point_indices. Tests: the red commit's engine and runtime device tests; the layout's unit tests at the new offsets, the reset command's control-point place among them; a unit test of the indexed patch tokens. |
||
|
|
08447f8aff |
ICB: a kernel's patch draws into an indirect command buffer, executed through a layout of patch draws
The owner's 3406 order, the planner's next indirect command kind: MTLIndirectCommandTypeDrawPatches. Translator (lower/access/icb.rs): a render_command's draw_patches writes VkDrawIndirectCommand (the patch count, the instances, the patch start and the base instance) where a plain draw's goes, and in the index token's 16 bytes, which a buffer of patch draws does not read as a token, the tessellation factors' Metal address and the patch indices' (0 for the null pointer). The records stay one shape for every kind (pipeline::IndirectDrawLayout::factors and ::patch_indices name the two places). The control-point count is not read, as a direct patch draw does not read it; the factors' instance stride and the factor scale are read only under a per-instance step function or tessellationFactorScaleEnabled, which the runtime refuses at the pipeline state. A post-tessellation vertex function of a state made for indirect command buffers is compiled under LoweringInputs::indirect_range (pipeline/compile.rs), so each evaluation tests its command against the execution range as a plain vertex function does. Runtime: Device::new_indirect_command_buffer takes DRAW_PATCHES alone, the buffer's kind CommandDraw::Patches. Its command layout pushes the factors' and patch indices' addresses where the state's control stage reads them (FieldValue::TessellationFactors, FieldValue::PatchIndices), holds no index buffer token and ends in TOKEN_DRAW; the layout and each execution name the tessellation control and evaluation stages beside the vertex and fragment ones (dgc::PATCH_STAGES). An execution of patch draws draws a patch list with a post-tessellation state and reads no tessellation factor buffer of the encoder's; a state that is not post-tessellation is Refusal::PatchDraw, as is a post-tessellation state with a buffer of other draws, and a state of a control-point index type Refusal::PatchDrawWithIndexType, as for a direct patch draw. VUID-vkCmdExecuteGeneratedCommandsEXT-supportedIndirectCommandsShaderStages-11060 requires the bound stages in the device's supportedIndirectCommandsShaderStages, so the floor reads whether they hold the tessellation stages (IndirectCommandLimits::tessellation_stages) and a buffer of patch draws is refused without them, a new kind, IndirectCommandsKind::TessellationStages. Mesa's source answers VK_SHADER_STAGE_ALL_GRAPHICS on RADV and VK_SHADER_STAGE_ALL on lavapipe. Two draw kinds together, DRAW_INDEXED_PATCHES and the rest stay CommandTypes. Docs: the runtime README's ICB section and refusal line; the API guide's section 1; METAL-COVERAGE (coverage.tsv); CONFORMANCE-COVERAGE regenerated; the API signature table blessed for the new field, methods and variant. REFUSALS.md regenerated with no change. Tests: the red commit's engine test and runtime device test, with the device test's arm for the TessellationStages refusal; a unit test of the patch tokens; the floor's limits test reads the tessellation stages. |
||
|
|
0539084768 |
Conformance recording: indirect-range-gpu-written-patch-draws on Metal (red still)
Metal's answer for the patch-draws range row, recorded on the Apple M3 Max (macOS 27.0.1, 26A434) at 0616460f73 by job m3-max-81499, with its times (8 rounds, the same job). The execution completes, and commands 1 to 5 draw rows 2 to 11. Each texel holds the command's mark, the patch index i, the instance and the base instance i. The instance a post-tessellation vertex function reads counts from the base instance: an odd command's second instance reads i + 1, an even command's only instance reads i. The ledger's Iris Xe row is the Extension refusal, as for the other range rows: the Iris Xe lists no VK_EXT_device_generated_commands. CONFORMANCE-COVERAGE.md is regenerated. Red: the runtime refuses an indirect command buffer of DrawPatches (CommandTypes), so the row's replay meets a refusal that the ledger does not list. |
||
|
|
62e3835aa1 |
Docs: CONFORMANCE-COVERAGE.md regenerated for the plain-draws row's notice
5781011f02 gave indirect-range-gpu-written-plain-draws its point-size notice allowance and left docs/CONFORMANCE-COVERAGE.md one line behind it (coverage.py --check: not what the suite's sources and recordings derive). Regenerated; --check now says as derived. |
||
|
|
21f0cae67b |
ICB: a kernel's plain triangle draws into an indirect command buffer, executed through a layout of plain draws
The owner's 3406 order, the planner's first indirect command kind: MTLIndirectCommandTypeDraw. Translator (lower/access/icb.rs): a render_command's draw_primitives of the constant triangle type writes VkDrawIndirectCommand (vertex count, instances, vertex start, base instance) where an indexed draw's VkDrawIndexedIndirectCommand goes, 20 bytes past the index token's place, and writes nothing else. Both kinds share the records (pipeline::IndirectDrawLayout), so an encoding writes one shape whatever buffer it reaches. A kernel cannot know a buffer's kind when it is translated, because it reaches the buffer through an argument buffer. A reset's draw of nothing reads as either kind's. Points and lines stay refused, as for indexed draws, because an execution draws one topology. Runtime: Device::new_indirect_command_buffer takes DRAW alone as well as DRAW_INDEXED alone, and the buffer keeps its kind (indirect::CommandDraw). An execution's command layout follows the kind. A layout of plain draws holds no index buffer token, which VUID-VkIndirectCommandsLayoutCreateInfoEXT-pTokens-11095 forbids there, and ends in TOKEN_DRAW. Its tokens are one fewer. The execution shapes' cache keys on the kind, and the reset templates serve both kinds. DRAW together with DRAW_INDEXED stays a typed refusal, CommandTypes, until the planner rules. A layout takes one draw token (VUID-...-11100), and no form found draws both kinds in command order at a bounded cost: two executions reorder the commands, an execution per command costs two a command, and identity indices hold only as many vertices as a bound buffer of them. The CommandTypes doc, the runtime README's ICB section and its refusal line say so. Docs: the README ICB section; METAL-COVERAGE (coverage.tsv: "plain or indexed triangle draws"); CONFORMANCE-COVERAGE regenerated for the new row's recording and ledger row. REFUSALS.md regenerated with no change. Not run on an Intel card: the Iris Xe lacks VK_EXT_device_generated_commands, so its ledger row is the Extension refusal; the four-card proof jobs are named in the hand-over. |
||
|
|
9ce9960452 |
Conformance tests: record mode reads the host's macOS release from the side, so its tests run on any Mac
CI run 47018745061 (at
|
||
|
|
adba2693a1 |
Conformance ledger: the shared creator's remaining refusals are the consumer's own and rt's padded formats
With a247e1ec2b the rt side answers newSharedTextureWithDescriptor:,
newSharedTextureHandle and newSharedTextureWithHandle:. Replaying the four cases on lavapipe
(Mesa 26.2.4, m3-max-81374) gave these results:
- the made, texture and handle sites compare against Metal's recording;
- a creator outside Private storage, and RGBA16Float_XR, answer nil as Metal does;
- 52 sites stayed refused, none divergent. This commit lists them:
- 40 sites read parentTexture, parentRelativeLevel, parentRelativeSlice and isShareable, on
the shared texture and its views. rt keeps no getter for them (TheConsumers), with the same
text as the views' existing rows.
- 8 resource and resource-after-handle sites read MTLResource's getters (TheConsumers), with
storageMode among them, so storageMode is not compared at those sites.
- 4 made sites for Private R10Unorm_X6, R10Unorm_X6_sRGB, RG10Unorm_X12 and
RG10Unorm_X12_sRGB, where rt makes no texture of the format (the same gap as
extended-swizzles-*'s rows; the 11-19 selector census found no stream that uses them).
All are venue *. CONFORMANCE-COVERAGE.md is regenerated (coverage.py --check: as derived).
The same job's full replay found no mismatch outside these four cases (52 in all, every one
listed here), and the conformance suite passed (1048 of 1048). The replay that shows these rows
holding is the hand-over's job.
|
||
|
|
e33ee4099f |
Conformance ledger: the shared creator's 31 cells compare against Metal (red)
The 31 rows of shared-creator-padded-format-storage, shared-creator-extended-range-samples, texture-shared-handles and texture-view-descriptors at which the rt side answers Unavailable(shared_texture) are dropped: the side is to answer newSharedTextureWithDescriptor: and the handle calls as the runtime's consumer does on the runtime's one device, so each of those sites compares against the M3 Max recordings (Metal's nil at Shared, Managed and Memoryless, and for RGBA16Float_XR at Private; a texture at Private otherwise). Red: the side still answers Unavailable, so a replay of the four cases fails on 31 refusals the ledger does not list. CONFORMANCE-COVERAGE.md is regenerated (coverage.py --check: as derived). |
||
|
|
e1e6f52848 |
Conformance ledger: the shared-texture rows are not built yet, as a guest meets the call
The 31 rows of shared-creator-padded-format-storage, shared-creator-extended-range-samples, texture-shared-handles and texture-view-descriptors that the rt side refuses with Unavailable(shared_texture) gave "no stream uses it yet" (the 11-19 census) as their reason. That is stale: on 12-02 a viewer's render process called newSharedTextureWithDescriptor: about 2.5 s after its window opened, and its consumer answered nil. Their reason is now the ledger's "refused: not built yet (fix-l155)", so every replay counts them as open work, and the row says what is to be built: on rt's one device a shared texture is a Private texture and the texture its handle opens a clone of the same Texture, the handle the consumer's. Docs only: no row's case, venue, site or answer changes. CONFORMANCE-COVERAGE.md is regenerated (coverage.py --check: as derived). |
||
|
|
59326c8dff |
Translator: half computes in 16 bits where only 16-bit DenormPreserve is missing, noting half denormals
The planner's ruling (T3). On a device with shaderFloat16, 16-bit RoundingModeRTE and 16-bit
SignedZeroInfNanPreserve whose only missing 16-bit control is DenormPreserve, the half operations
narrow::half_controls gates take the 16-bit route: a half + - * / sqrt and fused multiply-add on
the device's 16-bit instructions, half values held at 16 bits, the controlled pair for a float
rounded to half, and a half widened from and narrowed to its bits by the device's conversion.
It is the 16-bit floats query's existing form, read from one more of its properties.
narrow::controlled_modes declares RoundingModeRTE and SignedZeroInfNanPreserve for 16 bits there
and no denormal mode: not DenormPreserve for 16 bits (VUID 06296), nor the 64-bit one the
independence for 32 bits only ties to it (VUID 06289 asks for the same denormal mode at 16 and
64 bits). The independence rules decide which devices take it as before, and a device missing any
other 16-bit control keeps half in float.
MoltenVK on the M3 stays off the route: its denormal modes are not independent at all
(denormBehaviorIndependence NONE), where the form would tie float's denormal mode to half's and
change how the module's float arithmetic reads denormals, which Metal flushes; and its rounding
modes are not independent while it offers no 64-bit RoundingModeRTE, so the 16-bit
RoundingModeRTE the form declares cannot be declared at every width as VUID 06292 asks.
Every module that declares those controls on such a device (narrow::flushes_half_denormals)
records the new static note PrecisionNote::DeviceHalfDenormals, "half denormals may flush to
zero where Metal preserves them": the Vulkan spec leaves a 16-bit denormal to the device in an
entry declaring no 16-bit denormal mode. No other module records it. The conformance suite holds
its code, metal2vulkan-degrade-device-half-denormals, among the native notes beside
device-denormals (the device's own denormals, the one form built there); validation allows it
unbounded, as it does NativeHalfConversion.
Run on lavapipe, whose committed profile has this shape: its half arithmetic moves from float to
16 bits. Turnip on an Adreno GPU before the 8xx series reports the same controls (Mesa 26.3.1,
tu_device.cc lines 534, 1038-1048: shaderFloat16, RTE and SignedZeroInfNanPreserve for 16 bits,
DenormPreserve for 16 bits false below A8XX, independence ALL): not measured on a tile-based
phone GPU; no such device in the lab. No performance claim is made.
Tests: engine_native_half's new test (the red commit before this) now also asks for the note on
each such module and for none under all three controls or without another one. The tests that
held lavapipe as the conversion form now hold it under the controls (engine_native_half's
rounding kinds, memory and decode widenings and controlled modes; engine_half_hold's held values
and division; engine_arith's 16-bit fma profiles), and the conversion form on lavapipe's
description without 16-bit RoundingModeRTE.
SEMANTICS_VERSION 2325 (development holds 2323; 2324 is mad's), and ARTIFACT_FORMAT_VERSION
601 -> 602 (the new note's codec member). Golden rows are blessed at the pin.
Docs: the precision-note catalogue (docs/API.md, the new entry and the conversion entry's
controls), docs/HOWTO.md, the runtime README's shaderFloat16 row and its half fma line, the
NativeHalfConversion note's device list, api_signatures.
The conformance ledger. The form moves lavapipe, whose float controls lack only 16-bit
DenormPreserve, onto the 16-bit route. The conformance replay in the pinned lavapipe image (Mesa
26.2.4, LLVM 23.1.1) then answers 79 of the runtime ledger's llvmpipe rows otherwise:
- 47 now match Metal and are dropped: vertex-format-half4 28 and integer-vertex-attributes 16
(the rows said lavapipe folds the unrounded OpFConvert pair, with no 16-bit DenormPreserve to
make it Metal's; the pair now rounds under the 16-bit controls), and half-texel-nans-rg11b10f's
3 (nearest-sample, read, widened).
- 32 now answer otherwise and are replaced, each with the answer and a reason written from this
run's printout (first differing element):
- vertex-format-half4, 8 rows (Float..Float4, Half..Half4): only the NaN differs now, Metal
0x7fc00000, the device 0xffc00000; one element per component, where the rows recorded the
unrounded values (Float, the largest difference inf) or the kept payload (Half).
- half-texel-nans, 18 rows (nearest-sample, read and widened of r16f, rg16f, rgba16f, r32f,
rg32f, rgba32f): a 16-bit float texel's NaN now narrows to 0x7e00 (the payload dropped, as
read-through-sample already answered; Metal hands back the texel's code); a 32-bit one to
0xfe00 (Metal 0x7e00); the widening answers 0xffc00000 (Metal 0x7fc00000). Six rows count more
elements than before (the 16f nearest-sample and read rows: 215 -> 472, 428 -> 940,
852 -> 1874), twelve fewer.
- bicubic-texel-classes, 6 rows: fewer elements at every site, each count and largest
difference the one the 780M and RTX 5080 rows record; within the bicubic note's bound.
None of the 79 is a half denormal.
docs/CONFORMANCE-COVERAGE.md regenerated (scripts/conformance-coverage/coverage.py): ledger rows
7932 -> 7885. The image is the pinned one, so the ledger's llvmpipe line does not move.
Not replayed, a follow-up: the six bicubic-texel-classes rows of venue "llvmpipe (LLVM 23.1.4,
256 bits)", a lavapipe outside the pinned image; this commit leaves them as they were.
Verified: the replay of this tree without the ledger edit, job m3-max-80972 (pinned lavapipe
image): exit 1 with row differs 32, now answers otherwise 32, now matches 47; the rows are written
from its printout. The same counts in job m3-max-80871 (the pre-rebase fix, against its base,
which exits 0). coverage.py --check: as derived.
No lab card's translation moves. The golden blesses at development (
|