2fb00a15ae6414c1ce13e14fd41c839094fed5fa
356
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
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 (
|
||
|
|
c50fd04219 |
rt: drawIndexedPatches, and patch draws through a patch index buffer
The runtime refused a patch draw through a patch index buffer
(Gap::Draw of DrawKind::PatchIndexBuffer) and had no indexed patch draw.
The viewer draws every patch with drawIndexedPatches, indirectly, through
a nil patch index buffer and a UInt32 control-point index buffer (reims's
walk at development
|
||
|
|
a3fb852de3 |
rt: a heap makes texture buffers in place in its bytes
Metal's heap makes a texture buffer (MTLTextureTypeTextureBuffer): heapTextureSizeAndAlign answers its texels' bytes at an alignment of 16, and newTextureWithDescriptor:offset: lays the texels linearly in place at the offset (m3-max-80369, m3-max-80398). rt refused both with Refusal::TextureBufferNotOverBuffer. Now: - Device::heap_texture_size_and_align of a texture buffer answers width x texel bytes, unrounded, at 16, or at the device's texel-buffer offset alignment for the format where that is larger (minimum_texture_buffer_alignment). No Vulkan call. - Device::new_heap_texture and new_heap_texture_for_views of a texture buffer place a buffer of those bytes at the offset as new_heap_buffer places one, and make the texture buffer over it as Buffer::new_texture makes one, through the same texel_texture: one buffer view, one form on every device, no query. It takes the heap buffer's heap id and placement, so its uses are the heap's in the hazard sets and its writes mark the heap's aliasing textures stale. - Its backing is TextureBacking::Texture, as Metal answers its buffer with nil. - A placement past the heap or off the alignment is Refusal::HeapTexturePlace. A heap in an exported block makes one too: a buffer view needs no image. - texel_texture's descriptor checks move to texel_shape and texel_width, shared with the size answer. TextureBufferNotOverBuffer stays for new_texture, new_texture_for_views, new_managed_texture and new_drawable_texture. The test also checks HeapTexturePlace at offset 8 and past the heap's end. Docs: the runtime's README (textures, heaps, exported blocks), docs/API.md's heap-size accepted difference, the refusals' docs; docs/REFUSALS.md regenerated. Conformance ledger (docs/CONFORMANCE-COVERAGE.md regenerated): - 22 rows of a one-level RGBA8Unorm, R8Unorm or RGBA16Float texture buffer's heap size in the texture-pairs cases are dropped: the replay now matches them; - 6 rows of a texture buffer of 2 or 7 levels now record Refusal::TextureLevelCount, as Buffer::new_texture refuses it, where Metal's heap answers one level's footprint; - 11 rows of RGBA16Float_XR, YCBCR8_420_2P, Unspecialized and BGRA4Unorm texture buffers' heap sizes now record Gap::TextureFormat; - the device's newTextureWithDescriptor: rows keep TextureBufferNotOverBuffer, their reason naming the heap as the other way to make one. Verified (the change at 6d5f748347 on |
||
|
|
f1689ad668 |
conformance: a ledger row lists each answer its venue's hosts give, where they part by what the venue does not state
The CI's ubuntu leg at
|
||
|
|
b723c90272 |
rt: Device::default_sample_positions answers getDefaultSamplePositions:count:
The runtime answered no default positions (its README's known gap). Device::default_sample_positions answers a count with the positions a pass of that many samples that sets none rasterizes at: Vulkan's standard sample locations, which the floor's standardSampleLocations makes every such pass take, and which are plain Metal's answers at 1, 2 and 4 samples on an Apple M3 Max, macOS 27.0.1 (probes/default_sample_positions.m, m3-max-78953). supports_texture_sample_count answers at most 1, 2 and 4, so no other count is answered. A count it does not answer is Refusal::DefaultSamplePositions (basis metal-measured: plain Metal asserts "count (n) is not supported on this device." and ends the process, at 0, 3, 5, 6, 8, 16, 17, 32 and 33 on the M3). README (the device's answers; the sample-positions gap sentence), coverage.tsv (I), and the generated REFUSALS.md, basis.rs, api_signatures.tsv, METAL-COVERAGE.md and CONFORMANCE-COVERAGE.md. Verified on lavapipe, job m3-max-79650: clippy, doc and private doc EXIT=0; the runtime suite 923 passed, 3 skipped. Metal's answers: m3-max-78953 (Apple M3 Max). |
||
|
|
a3a91a10f2 |
Conformance ledger: the Accumulate cases' rows as the replay of the Reset answer gives them
The rows of visibility-boolean-accumulate, visibility-counting-accumulate (both),
visibility-counting-accumulate-one-command-buffer and visibility-counting-accumulate-revisit
named the Gap::Draw{AccumulatedVisibilityResults} refusal, which is gone. The conformance
replay on lavapipe at efa04c576a (job m3-max-79548) read those five rows as fixed and gave
six in their place, pasted as it printed them with the venue widened to every venue, as the
rows they replace were:
- divergent at case/pass-0/words and case/pass-1/words of the Boolean and the Counting
shapes, and at case/pass-1/words of the one-command-buffer shape: Metal on the M3 Max adds
into the words, the runtime writes each result in place of its word;
- refused at case/pass-0/calls/0-render of the revisit shape: its first mode is now taken,
so the second mode at the same offset meets Refusal::VisibilityResultOffsetTaken, the
refusal of visibility-counting-revisit's row, whose text it takes.
No other row moved in that run. docs/CONFORMANCE-COVERAGE.md regenerated.
|
||
|
|
9c375eb504 |
Conformance ledger: the sample-positions cases answer on the runtime, so their seventeen refused rows go
The rt side of the suite now hands a pass's positions to the runtime's RenderPassDescriptor
instead of answering `setSamplePositions:count:` Unavailable, so the answer those rows expect,
`Err(Unavailable({call: "setSamplePositions:count:"}))`, can no longer occur on any venue. The
fourteen `*` rows (custom-left, custom-mixed, custom-right, the three fewer-, high, off-grid,
off-grid-low and the five rounded- cases) and the three venue rows of sample-positions-custom-2x
(Iris(R) Xe, RADV, NVIDIA) are dropped. A venue without VK_EXT_sample_locations, or whose
properties fall short of the answer, would answer at the same site with
`Refusal::SamplePositions` of `Unsupported` or `Gap::RenderPass`, which its replay would print as
unlisted; no venue run here does. docs/CONFORMANCE-COVERAGE.md is regenerated (7979 ledger rows to
7962); docs/METAL-COVERAGE.md is unchanged.
Verified: `conformance replay` of the 19 sample-positions cases and pass-sample-positions at
33865b2a57, before this edit, on each venue: every one of them listed exactly these rows as no
longer held ("now matches: 15", 14 on the Apple M3 Max, which has no custom-2x row) and nothing
unlisted; the custom and rounded cases read announced (justified by notices) on each.
- RX 7900 XTX, RADV NAVI31, Mesa 26.2.6: m3-max-78702
- Radeon 780M, RADV PHOENIX, Mesa 26.2.6: m3-max-78710
- RX 550, RADV POLARIS12, Mesa 26.2.6: m3-max-78713
- RTX 2080, NVIDIA 620.70.06: m3-max-78703
- RTX 3090, NVIDIA 620.70.06: m3-max-78711
- Iris Xe (RPL-P), Mesa 26.2.6: m3-max-78704
- Apple M3 Max, KosmicKrisp Mesa 26.3.1 (VK_EXT_sample_locations revision 1): m3-max-78722
lavapipe's replay with this ledger runs in the green job. Not run: the RTX 5080 Laptop GPU and the
Windows host's UHD Graphics 630.
|
||
|
|
1c307b4608 |
Runtime: a pass rasterizes at the sample positions its descriptor sets, through VK_EXT_sample_locations
L168: a pass's custom sample positions were dropped while the guest could be told they are supported, so a non-default set rendered at the standard positions with no refusal. What changed: - VK_EXT_sample_locations joins the floor's OPTIONAL_EXTENSIONS (enabled where listed; it has no feature). Device::programmable_sample_positions_supported (programmableSamplePositionsSupported) is true where the device lists it with locations at every sample count above 1 it renders, a 1 x 1 grid, every sixteenth from 0 to 15/16 and variableSampleLocations; false elsewhere. No second form: a device that answers no refuses positions other than the defaults. - RenderPassDescriptor::sample_positions is checked as the pass begins (crate::positions): each coordinate is taken to the nearest sixteenth, a tie up, at most 15/16, and each sample past the positions given at the pixel's corner, as the conformance suite's sample_positions rows measured an Apple M4. A set that comes to Vulkan's standard locations (Metal's defaults at 1, 2 and 4 samples) rasterizes as an empty one on every device. - Refusal::SamplePositions (Count, Coordinate, OneSample, Unsupported) where Metal's validation stops the descriptor or the device answers no. Gap::RenderPass of SamplePositions for other positions beside a depth attachment (Vulkan needs a sample-locations-compatible depth image whose layout transitions name the last locations) or at a count the device's locations lack. Gap::Draw of SamplePositions for a draw in such a pass whose fragment module uses InterpolateAtSample (VUID-01524), read from the translator's GraphicsState. - A draw in such a pass takes a VkPipeline of its class made with sampleLocationsEnable and the locations as dynamic state (Raster::positions), one pipeline for every set; the encoder records vkCmdSetSampleLocationsEXT before the pass's first draw. Every coordinate handed to Vulkan is a sixteenth in [0, 15/16], which Vulkan's required 4 sub-pixel bits hold exactly, so no precision note. - The translator's description of a device that enables the extension states it (floor::shader_extension), as for every extension creation enables that the translator names; the translator reads none of its properties. tests::translator_fields gives GraphicsState::interpolates_at_sample its verdict (refused at custom positions). - The conformance rt side passes a case's positions to the runtime; the replay player sets them on the runtime's descriptor and drops its count of passes at other positions (docs/REPLAY-STREAM.md says so). - README (floor table, the device's answers, the known gap rewritten), REFUSALS.md and basis.rs, api_signatures.tsv, METAL-COVERAGE.md and CONFORMANCE-COVERAGE.md regenerated. Tests: the device test every_device_rasterizes_a_pass_at_its_sample_positions now gates on the device's answer and holds the answer to the extension's properties; new device tests every_device_refuses_the_positions_metal_refuses and a_draw_that_interpolates_at_a_sample_is_refused_at_custom_positions; new device-free tests (placed::) of the answer's gates (each count above 1 the device renders in sampleLocationSampleCounts, a 1 x 1 grid, a range holding 15/16, 4 sub-pixel bits, variable locations) and of the placement (every coordinate in [0, 1) on a sixteenth from 0 to 15/16, refusals, the corner, the standard sets, the count and depth gaps); the replay device test sample_positions_play_through_the_runtime_s_descriptor. Verification: the lane's jobs, named in the ledger commit that follows. |
||
|
|
6750442c22 |
rt: a draw reads its target over a buffer in place through the feedback loop, or through its shadow
Row L291: a texture over a buffer laid in place (a linear image on the
buffer's memory, rule 3's form) took neither the feedback usage nor a shadow,
so a draw that read it as an attachment of its own pass, through a texture or
by a fetch, was Gap::Draw (AttachmentRead, FetchedAttachment) on every device.
Metal reads any render target this way.
Form (the ruled one: rule 2's attachment feedback loop form, with the counted
shadow copy where it is not available, a known gap):
- Plan::linear_loop. check_over sets it where the plan reads attachments, the
device has the feedback loop, the format's linear tiling features sample it,
and the linear image query makes the image with the sampled and feedback
usages at the texture's extent (asked with the dma-buf handle for a dma-buf's
import). Plan::linear_usage then adds both usages.
- If the linear image with those usages does not lie as the texture's bytes do
(Unmade::Unfit), it is made again in place without them, and a draw reads it
through its shadow where the device makes one (Plan::shadow_offered), as a
device without the loop does. Only after that does a texture fall back to the
copied form, as before.
- The pass moves the image from the general layout to the feedback layout and
back, through the same moves a surface plane takes. Once it is back in
general, the image and the buffer are again aliases that read their bytes
alike. vkspec, memory aliasing: "Buffers, linear tensors, and linear image
subresources are considered host-accessible subresources when they are in
any of these layouts: VK_IMAGE_LAYOUT_PREINITIALIZED, VK_IMAGE_LAYOUT_GENERAL,
VK_IMAGE_LAYOUT_ZERO_INITIALIZED_EXT" and "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."
Docs: the runtime README says where the image leaves the general layout
(Memory blocks and buffers) and how a draw reads it (Render encoders). Its
known gaps of render encoders gain the shadow for an in-place target whose
linear image takes no feedback usage, and drop the refusal. error.rs's
AttachmentRead doc is updated, and REFUSALS.md is regenerated (unchanged).
known-gaps-rt.tsv drops the 15 rows the change fixes, each of which the replay
printed as "the gap looks fixed" once the draw read its target in place:
- pass-start-barrier-over-buffer-{read, sample, barrier-read, barrier-sample,
draw-barrier-read} on llvmpipe and the Iris Xe (10 rows): their targets are
in place on these two, and the reading draw was refused; it now reads its
target in place. The 780M, the RX 7900 XTX and the RX 550 had no rows for
these cases; their replays report "differed, justified" (the case's
accepted difference).
- pass-start-barrier-new-texture-chain on llvmpipe, the Iris Xe, the 780M, the
RX 7900 XTX and the RX 550 (5 rows): its new texture over a buffer is in
place on all five (the refusal arose only there), and its reading draw was
refused the same way; it now reads its target in place.
CONFORMANCE-COVERAGE.md is regenerated.
Verified:
- Green, on lavapipe, m3-max-78715 (at 60d2af3017, this change before the
ledger and layouts edits): 12 of 12 passed (876 skipped). Both forms read
in place through the feedback loop.
- Cards, at 921a33a894, running over_reads, fetch-over and the layouts
in-place test, 3 of 3 passed on each:
- Radeon 780M (RADV, Mesa 26.2.6), m3-max-78784: in place, through the loop.
- Iris Xe (ANV, Mesa 26.2.6), m3-max-78819: in place, through the loop.
- RTX 3090 (NVIDIA 620.70.06), m3-max-78785: its linear tiling lays these
targets in the copied form, so the in-place path did not run there.
- The shadow form for an in-place target (a linear query that refuses the
feedback usage) ran on no lab device: unaudited.
- Conformance replay (the case selection, or every case for lavapipe) with
the 15 rows dropped, EXIT=0 with no surprise either way:
- llvmpipe, m3-max-78743 (at 580fecacb7, every case);
- RX 7900 XTX, m3-max-78749; RX 550, m3-max-78750; Radeon 780M,
m3-max-78751; Iris Xe, m3-max-78760 (each at f9f3178302).
The trees differ from 921a33a894 only in other venues' rows and the
layouts test.
- m3-max-78783 at 921a33a894: workspace clippy (all targets, all features,
-D warnings) EXIT=0 in all three configurations (plain, --cfg m2v_cpu_icd,
--cfg m2v_gpu); Rustdoc EXIT=0. The runtime suite on lavapipe: 885 tests
run, 885 passed, 3 skipped.
- m3-max-78757 at f9f3178302: private Rustdoc of the runtime EXIT=0. The
conformance crate's suite: 1047 of 1047 passed, 0 skipped.
|
||
|
|
d5b2379d91 |
Conformance: the between case declares its interpolation notice, and its refusal is a ledger row
`conformance replay --cpu` of both unattached-colour cases on lavapipe (job m3-max-75983,
at
|
||
|
|
1af54e162d |
Conformance and runtime README: the UHD 630's rows for the read-write and sRGB storage cases
What: the known-gaps ledger's 14 rows for Intel's Windows driver 101.2145 on the UHD Graphics 630
in srgb-storage-writes, read-write-tier-held and read-write-tier-round-trip-float, which that venue
had not run before. Two entries in the runtime README's known gaps of textures. Coverage
regenerated. No product code.
- srgb-storage-writes RGBA8Unorm_sRGB fpv_srgb_write/dispatch, refused: the driver makes no
extended image for an 8-bit sRGB texture made for shader writes, so there is no UNORM twin and
the write at a slot is Gap::StorageElement (Absent). README entry: the image format query rt
makes for the extended image (R8G8B8A8_SRGB, optimal, MUTABLE_FORMAT | EXTENDED_USAGE, the format
list with R8G8B8A8_UNORM, the plain usage with STORAGE) answers no. That is read from
tests::storage_element's every_device_writes_an_srgb_texture_through_its_unorm_view, which
asserts the image is extended exactly where that query takes it and passed there (m3-max-74877),
and from the case (m3-max-74873). Not probed apart; the README says the resolve usage's part
was not asked.
- read-write-tier-held RGBA8/BGRA8 sRGB stored-bytes and texels: the same cause through the
argument buffer, in the A8Unorm "*" rows' words (an undeclared write to a texture with no
storage element is dropped; the read answers zeros).
- BGR10A2Unorm (held stored-bytes and texels, round-trip refused) and A8Unorm (round-trip
refused): no storage image by the device's format queries, in the NVIDIA, llvmpipe and RX 550
rows' words (vulkaninfo of that card lists no STORAGE_IMAGE bit for A2R10G10B10).
- R8Unorm tier2, RG8Unorm beyond and RGBA8Unorm tier2 texels, one ulp: rule 1, the reciprocal
product, in llvmpipe's words.
- BGRA8Unorm beyond texels (held 256 elements, round-trip 1,024): the driver lists
VK_FORMAT_FEATURE_2_STORAGE_READ_WITHOUT_FORMAT_BIT for B8G8R8A8_UNORM while
shaderStorageImageReadWithoutFormat is false; rt follows the per-format bit on every device
(VUID-vkCmdDispatch-OpTypeImage-07028), and the reads differed from Metal's (the largest
difference is what a read of zero gives). BGRA8Unorm is outside Metal's read-write tiers. A
known gap at rung 4 by the planner's ruling, with a README entry; not reproduced outside the
runtime.
Verified: every row is one of the 14 lines conformance leg m3-max-74873 printed as unlisted
(Windows UHD 630, pin
|
||
|
|
d9b644bae7 |
Conformance: Metal's recording of vector-word-phases-vec16-4-8, taken on the M3 Max
Recorded on an Apple M3 Max, macOS 27.0.1 (26A434), by `conformance record` and
`conformance times --runs 8 --write` in job m3-max-74565 (build m3-max-74559), three runs, one
outcome. Plain Metal ran the pass to completion; its API validation stopped it ("Compute
Function(vwp_vec16): the offset into the buffer a that is bound at Buffer index 0 must be a
multiple of 16 but was set to 4", and the same for b at 8), which the recording keeps as its
validated fact. The case's tests hold plain Metal's four buffers equal to answer_at (every
access at its own address) and the validated words to those two messages.
docs/CONFORMANCE-COVERAGE.md regenerated (scripts/conformance-coverage/coverage.py).
(cherry picked from commit 944d20922983e7932a591b6c3d0e1090dc5f3300)
|
||
|
|
4fadeef846 |
Conformance: the ledger's 8-bit sRGB rows after the twin form
What, from the whole replay at
|
||
|
|
5bcb3c3253 |
Conformance: srgb-storage-writes' Metal recording, from the M3 Max
What: conformance record and times --runs 8 --write srgb-storage-writes on the Apple M3 Max, macOS 27.0.1 (26A434), job m3-max-74594 at 121122cd7f; the recording copied out of its workspace. docs/CONFORMANCE-COVERAGE.md regenerated (the case module now holds 1 case, its Metal leg reaching 39 items). What Metal stored, read off the recording: in every one of the four sweeps (RGBA8Unorm_sRGB and BGRA8Unorm_sRGB, float and half) each row-0 texel holds codes (i, 255 - i, (i * 37) & 255, i) in the format's channel order, 0 mismatches of 256; row 1's values past either end clamp to 0 and 255 before the encode, alpha linear. |
||
|
|
71388e89d7 |
Conformance: srgb-storage-writes, what access::write stores into an 8-bit sRGB texture
What: a case over the owned fixture fpv_srgb_storage's fpv_srgb_write and fpv_srgb_write_half, each writing a 256 by 2 RGBA8Unorm_sRGB texture and a BGRA8Unorm_sRGB one from buffer 0 and recording the texture's bytes, one code a channel. The values are the linear values each code decodes to (every code in red, green and blue, each in its own order, alpha i / 255), and row 1 starts with values past either end, which Metal clamps. A unit test checks each value encodes within a hundredth of a code of its code in float and a twentieth through its half, so no side's encode meets a value between two codes. half_bits is extended_range_targets'. Why: Metal promises write access to both formats on every device (8.7.7: the write encodes, alpha linear); the runtime now stores them through the UNORM twin with the encode in the kernel. read_write is not in any read-write tier for an sRGB format, so the case writes only. Verified: not yet run; the recording on the M3 follows. docs/CONFORMANCE-COVERAGE.md regenerated. |
||
|
|
8f74582eb3 |
Docs: CONFORMANCE-COVERAGE.md regenerated for pass-sequence-aspect-actions' NVIDIA ledger row
|
||
|
|
dd3f16a656 |
Conformance: Metal's answer for the compressed small-level copies, recorded with its times
What: the recordings of compressed-small-levels-bc1-rgba and compressed-small-levels-bc3-rgba.
Metal's times are kept in each. docs/CONFORMANCE-COVERAGE.md is regenerated: 188 case modules,
1335 recordings, compressed_small_levels 2 cases, every field compared. A new unit test,
the_recorded_copies_are_the_model, holds each recorded site to the case's model. program()'s doc
no longer links to the private `reads`, which rustdoc refused (job m3-max-73736).
Why: this is the recorded Metal answer the suite holds the runtime to, for the guest's 4 x 4 copy
of a level smaller than one block.
Verified:
- Job m3-max-73751 (Apple M3 Max, macOS 27.0.1, build 26A434), in the workspace job m3-max-73737
built `conformance` in, release, at 7af2733ddc.
- It ran `conformance record` of both cases: plain Metal 3 runs, one outcome, three command
buffers Completed.
- The validated leg stopped at the work, on the copy from a buffer: "(destinationOrigin.y +
sourceSize.height)(4) must be <= height(2)".
- It then ran `conformance times --runs 8 --write` of both.
- Every recorded byte site equals the case's model: levels 8 to 11 of the t2t, b2t and replace
destinations, and the 64 bytes of t2b and get at levels 9, 10 and 11. I checked this with a
Python decode of the recordings here. The new test checks the same and has not run yet.
- coverage.py --check: as derived.
|
||
|
|
88beca43a0 |
Docs: CONFORMANCE-COVERAGE.md regenerated for the stencil form's four known-gap rows
The stencil form (
|
||
|
|
3c52ee1cf1 |
Render pass: a colour attachment renders one depth plane of a 3D texture's level
What: RenderPassColorAttachmentDescriptor takes `depth_plane` (Metal's `depthPlane`). A 3D texture of RenderTarget usage is made 2D-array-compatible (VK_IMAGE_CREATE_2D_ARRAY_COMPATIBLE_BIT, in its image format query too: Plan::flags, from the image's type and its colour attachment usage, no query). attachment_view then takes the plane of a 3D texture's level as a 2D view of that one layer (base layer = depthPlane, at the level), checked against the level's depth (Refusal::AttachmentPlace past it). Every barrier on a 3D texture's image (its attachment's, its copies' and its moves', texture::barrier_layers) names the image's layers as 0 and VK_REMAINING_ARRAY_LAYERS, so each moves every plane of the level it names. Before, every such pass was Gap::RenderPass of RenderPassKind::TextureType. Still TextureType: a 3D texture in a layered pass (renderTargetArrayLength 2 or more), a depth or stencil attachment of a 3D texture, a 3D resolve texture, and a resolve's depth plane but 0. A draw that reads, through a shadow (a device without the attachment feedback loop), a 3D texture whose plane its pass renders is Gap::Draw of DrawKind::AttachmentRead: a shadow's copies are of layers. The floor asks a device that lists VK_KHR_portability_subset for imageView2DOn3DImage too (VUID-VkImageCreateInfo-imageView2DOn3DImage-04459), as it asks multisampleArrayImage. Why: a guest route meets the refusal. A browser's GL layer clears every 3D texture of an RGB-family format (RGB8, RGB16F) at creation through a pass on each plane, to set the alpha it emulates; it also renders into a plane for framebufferTextureLayer(TEXTURE_3D, k) then a clear or a draw, for a level sampled before a full upload, and for copyTexSubImage3D. The consumer's route showed the key at |
||
|
|
50a851487c |
Conformance: a copy between two Depth32Float_Stencil8 textures, recorded on Metal
What: the case depth-stencil-copies-d32s8 (cases/depth_stencil_copies.rs), its recording from the
M3, and docs/CONFORMANCE-COVERAGE.md regenerated with it. Two 8 x 4 Depth32Float_Stencil8 textures
of ShaderRead | RenderTarget | PixelFormatView usage, private. Each plane of each is written from a
buffer through the plane options, every texel a depth and a stencil of its own, the two textures'
apart. One copyFromTexture:...toTexture:... moves 5 x 2 texels from the source's (1, 1) to the
destination's (2, 2). Both planes of both textures are then copied out through the plane options
and read: four byte sites, laid out in the textures' rows.
Why: the runtime now copies such a texture whole, both aspects in each vkCmdCopyImage region,
because Metal's texture-to-texture copy takes no plane option. The case puts that to Metal and
holds the runtime to Metal's own bytes. The unit test the_recorded_copy_moved_both_planes holds
the recording to the host's model, so a release in which Metal moves one plane alone shows as a
failing test naming the site. The case declares the restricted-depth-upload notice allowance, as
format_copies does: the depth planes take their bytes from a buffer, and every depth written lies
in [0, 1], so the note moves no byte the case reads.
Verified:
- Job m3-max-73350 (Apple M3 Max, macOS 27.0.1) ran `conformance record
depth-stencil-copies-d32s8`. Plain Metal: 3 runs, one outcome, status Completed. The
destination's region holds the source's depth and stencil, every other texel of both textures
is what was written. The validated leg ran. An earlier attempt, m3-max-73338, ended in its build
(the compiler cache's daemon) before any Metal call.
- Job m3-max-73383 (msi, lavapipe, Khronos validation layer 1.4.363.0) at the case and its
recording, the coverage doc regenerated in the job:
- coverage.py wrote docs/CONFORMANCE-COVERAGE.md, the one committed here (187 case modules,
1333 recordings, depth_stencil_copies one case, every field compared);
- fmt; clippy of metal2vulkan-conformance plain, --cfg m2v_gpu and --cfg m2v_cpu_icd;
- the case's three unit tests passed, the_recorded_copy_moved_both_planes among them;
- rustdoc -D warnings; coverage.py --check;
- `conformance replay --cpu depth-stencil-copies-d32s8` exited 0: verdict announced, every
byte site Metal's, the one difference the restricted-depth-upload notice the case declares
(its allowance fired);
- the conformance suite on lavapipe under the validation layer: 1038 run, 1037 passed. The one
failure was times::every_case_is_timed (the new recording held no timing), which the next
commit, Metal's times for this case, answers.
|
||
|
|
14c6cab653 |
Conformance coverage: regenerated with quad-helpers
scripts/conformance-coverage/coverage.py at |
||
|
|
62ab49b966 |
Conformance ledger: the reconvergence rows on the Iris Xe
The Iris Xe (RPL-P, Mesa ANV; job m3-max-72186) answers the four trilinear sites of reconvergence-handle-choices exactly as every AMD venue does: 1128, 1136, 2240 and 490 elements, each one step of a half, on the second source only. Everywhere else it matches Metal, so four rows are scoped to "Iris(R) Xe". The llvmpipe diagonal rows now list every GPU replayed that answers Metal's there. CONFORMANCE-COVERAGE.md regenerated. |
||
|
|
17802357be |
Conformance ledger: the AMD trilinear rows hold on every AMD venue
The four trilinear rows of reconvergence-handle-choices were scoped to the 780M. The RX 550 (POLARIS12, job m3-max-72170) and the RX 7900 XTX (NAVI31, job m3-max-72171) under RADV answer the same four sites with the same counts (1128, 1136, 2240 and 490 elements, each one step of a half) as the 780M under RADV and AMDVLK, and match Metal everywhere else. So the rows are now scoped to "AMD Radeon", which every one of those venue names holds. The RTX 2080 (job m3-max-72171) matches Metal on both cases. CONFORMANCE-COVERAGE.md regenerated. |
||
|
|
baae603de4 |
Conformance ledger: the llvmpipe diagonal rows say what differs, and point at nothing private
The two level-and-pair rows on llvmpipe (rc_loop, rc_break) pointed at a bug list outside the repository. Each now says, on its own, what differs: the fine pair along the full-screen triangle's diagonal x + y = 62 to 63, the same with and without MaximallyReconvergesKHR. It also says where it was measured (LLVM 23.1.1, 256 bits, AVX2) and which drivers answer Metal's. Only the text field changed, so neither row's identity (case, verdict, site, answer) moved. CONFORMANCE-COVERAGE.md, which quotes the rows, was regenerated. |
||
|
|
2a8cfdec04 |
Docs: CONFORMANCE-COVERAGE.md regenerated for the reconvergence ledger rows and declarations
The doc derives from the ledger and from each module's declarations as well as from the recordings. It went stale at dbcc0a89df (the reconvergence module stopped declaring notices: modules declaring a notice 43 -> 42) and at 853a406696 (18 ledger rows, 7969 -> 7987). 884a70ab0d's body says coverage.py --check still passed there. That is wrong: the check failed there, for these two causes. It passes at this commit. |
||
|
|
5216a5cde1 |
Conformance: Metal's answers for the reconvergence cases, recorded on the M3; coverage regenerated
reconvergence-constructs and reconvergence-handle-choices were recorded on the reference M3 Max (macOS 27.0.1, 26A434) by `conformance record` at a1ffe24d32 (job m3-max-72140, after the build m3-max-72139). Each case ran 3 times with 1 distinct outcome, and the validated leg ran. A script over the recordings checked Metal's nearest samples against the module's hash model, and rc_pick's fine pair too: every draw matches. That is 4096 pixels for each full-screen draw and 896 for rc_pick over the small triangles. The module's test makes the same check in Rust. docs/CONFORMANCE-COVERAGE.md was regenerated by scripts/conformance-coverage/coverage.py. |
||
|
|
e8a3feef6b |
docs: CONFORMANCE-COVERAGE.md without the level-sizes-storage gap row
The ledger row went with the storage levels' form; the generated coverage document counted it. Checked by: scripts/conformance-coverage/coverage.py --check (the conformance suite's the_conformance_coverage_document_is_what_the_sources_derive failed on it in m3-max-70944). |
||
|
|
a4cb24f20e |
Conformance: read-write-srgb-unorm-views' Metal timing, and llvmpipe's two rows
The case's recording now carries native Metal's timing on the M3 Max, macOS 27.0.1 (job m3-max-70889, conformance times --write; 23 calls), which every case keeps (times::every_case_is_timed::every_case_carries_its_timing). The lavapipe replay (job m3-max-70875, llvmpipe LLVM 23.1.1) matches Metal at every site but the view's read-back on both backings: 438 of the 1024 words one f32 ulp apart (0x33 reads 0x3e4cccce, Metal 0x3e4ccccd). That is the device's own conversion of an 8-bit code (device-texel-conversion), the same one read-write-tier-held's llvmpipe rows hold, so the ledger holds the two sites for llvmpipe with that row's words. The swizzle's bytes, by getBytes: and in the buffer, match Metal exactly there. |
||
|
|
684ce1ab7b |
Conformance: Metal's recording of read-write-srgb-unorm-views
Recorded on the M3 Max, macOS 27.0.1 (build 26A434), job m3-max-70866 on 29dbc6290a: three runs folded into one outcome, and the API validation layer's run ran. Metal writes the RGBA8Unorm_sRGB texture through its RGBA8Unorm view on both backings: the swizzle's bytes are the fill's codes in yxwz order exactly, by getBytes: of the texture and, over the buffer, in the buffer's own bytes (rows at the texels' pitch of 64 bytes), and the view's read gives each code over 255. Plain and over a buffer answer alike. docs/CONFORMANCE-COVERAGE.md regenerated (one more recording and metal_run case; an SDK item moves from loosened to not loosened). |
||
|
|
1080a17fc1 |
Docs: CONFORMANCE-COVERAGE.md counts MTLDevice.maxThreadgroupMemoryLength
Device::max_threadgroup_memory_length ( |
||
|
|
0eb982e471 |
Runtime floor profile, conformance notices and ledger rows for the LOD-clamp variants
The committed runtime-floor profile (and its generator's RUNTIME_FLOOR block) states the floor's raised sampler limits: 24,000 maxPerStage and maxDescriptorSet UpdateAfterBindSamplers, 286,144 maxUpdateAfterBindDescriptorsInAllPools. tests::floor::the_floor_profile_states_exactly_the_floor failed without it on lavapipe (job m3-max-70138) and on the 780M, Iris Xe and RTX 3090 (m3-max-70152, -70153, -70151). The two sampler-bind-lod-clamps cases declare pixel-sampler-scaling, the static note of a sample through a runtime sampler slot, which fired on every venue (same jobs). The kernel case takes the ledger's dispatch_type row every compute-pass case of the rt side takes. compute-plural-texture-and-sampler-binding now compares its four-bindings site on lavapipe, which reads lavapipe's one-ulp 8-bit conversion, as compute-inline-bytes does over the same texture and kernel: a llvmpipe row. The cards compared it exact. |
||
|
|
29e54794ca |
Runtime: a sampler state bound with LOD clamps of its own samples with them
A bind's LOD clamps (setSamplerState:lodMinClamp:lodMaxClamp:atIndex:, its
vertex and fragment forms and the range forms) that read otherwise than the
state's own were Gap::LodClamps. Metal takes the call; on the M3 Max
(conformance cases sampler-bind-lod-clamps-kernel and -fragment) the pair
replaces the state's clamps, a lower bound above the upper reads at the upper's
level, and a plain bind afterwards reads the state's own clamps again.
How: such a bind takes the state's variant of the pair, the state's descriptor
with the pair as its clamps, its device samplers from the shared sampler table,
placed at a variant element of set 1's sampler arrays. The three sampler arrays
grow from 4,000 to 8,000 elements in the runtime's layout; elements 4,000 to
7,999 are the variants'. Shaders declare the heap arrays unsized, so the
translator is unchanged: a slot's sampler index is the runtime's push, and an
argument buffer's sampler index of 4,000 or more still reads element 0, so no
program-written ID reaches a variant. A state keeps its 16 most recently bound
variants; a new one past them takes the place of the least recently bound one
no command buffer holds, and where work holds all 16 the new one is held by its
command buffer alone. Past 4,000 live variants a bind is
Limit::LodClampVariants { max: 4000 }. The lod_clamp_variants gauge counts the
live variants. A NaN bound, which Metal documents no answer for, binds the
state as it is.
The floor's sampler limits rise to 24,000 (maxPerStage and maxDescriptorSet
UpdateAfterBindSamplers) and 286,144 (maxUpdateAfterBindDescriptorsInAllPools);
the lab's least are 500,000 (MoltenVK on the M3 Max) and 1,048,576 (Intel UHD
Graphics 630 on Windows), and Vulkan requires 500,000 of each with
descriptorIndexing.
Gap::LodClamps goes; REFUSALS.md, basis.rs, the signature table, the Metal and
conformance coverage pages regenerate. The validation replay plays clamped
binds (no skipped_clamped_samplers). The ledger drops three rows the clamped
binds now answer (compute-plural-texture-and-sampler-binding steps 11 and 14,
render-state-unread-slots). The compute single clamp form's coverage row named
set_sampler_state; it names set_sampler_state_with_lod_clamps.
Tests: a kernel samples through the binds as Metal reads them; a state's 16
kept variants filled past that; the 4,000 variant elements filled past their
capacity; the gauge flat across a bind and retire loop and zero at device
drop. Verified: see the lane's report (jobs named there).
|
||
|
|
3c5485a207 |
Conformance: compute-imageblock-sizes declares the SIMD-group access note and its dispatchType row
The runtime's pipeline of a4_imageblock_extent records the static simdgroup-access-order note on every device, which the card replays announced at the notices site (RTX 3090, Radeon 780M, Iris Xe: m3-max-70084, 70085, 70086); the case declares it, as compute-threadgroup-memory-reads-zero does for its kernel, and every value still compares exactly. The encoder's dispatchType is the consumer's own on every venue, the same ledger row the other compute-pass cases carry. Every byte of the output compared equal to Metal's on the three cards. |