f4eb47d7925f8ffcbbdd67d1a7c1cee0ddf66dc7
333
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
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. |
||
|
|
809f791396 |
Conformance: compute-imageblock-sizes' Metal recording, and the coverage it adds
Recorded on an Apple M3 Max, macOS 27.0.1 (26A434), job m3-max-70065: three runs, one outcome, the validated leg ran with nothing announced, and the timing kept. Metal's 832 bytes equal the fixture's answer at each extent: the dispatch before the encoder set a size read 1 by 1 (its cell and the extent 1, 1), then 4 by 2 and 4 by 4, every byte past each dispatch's words still its guard. docs/CONFORMANCE-COVERAGE.md regenerated: MTLComputeCommandEncoder's setImageblockWidth:height: is now an implemented item the Metal leg exercises (29 implemented, 26 exercised). |
||
|
|
64be1d50ae |
Conformance coverage: regenerated for the float depth upload's ledger rows
The ledger has ten fewer rows (18 dropped, 8 added), and one more module (format_copies) declares a notice. Generated by scripts/conformance-coverage/coverage.py at 72e5c3e571 (m3-max-69942). |
||
|
|
d11697b000 |
Conformance: the twelve compute visible-table cases match Metal on the runtime
The replay on lavapipe (m3-max-69685, llvmpipe of Mesa 26.2.4) compares every visible-tables-compute case exactly with the M3's recordings, so their known-gaps rows, which recorded the runtime's Slot refusal, are dropped. The six render-stage cases stay refused as recorded. CONFORMANCE-COVERAGE.md is regenerated. |
||
|
|
28e2b0e6ca |
Validation: a kernel case's visible-function tables run through the runtime
The runtime candidate makes each table the case binds of the pipeline state (newVisibleFunctionTableWithDescriptor: of its size, each authored entry set to the handle of its linked function made with the case's constants, as the Metal oracle sets it) and binds it at its buffer index. ToolingRequirement::KernelFunctionTable, which held such cases to Metal alone, is retired; a render stage's table stays the runtime's limit (RenderFunctionTable). ENGINE_EXECUTOR_ABI does not move: no recorded row ran a kernel table case (they were refused). The runtime README states the device answer, the encoder's bind, the state's handles and tables, and the known gaps (a table's 64 KiB block, a consumer-compiled kernel's handles, an argument buffer's table). The coverage table marks the compute items implemented; METAL-COVERAGE.md and CONFORMANCE-COVERAGE.md are regenerated. Adds the owned linked module visible_table_ops.metal, whose companions scripts/regen-air-fixtures writes on the Mac. Verified: the lane's jobs. |
||
|
|
75c3e49bd6 |
Conformance coverage: regenerated for the overlapping-copies row's new refusal
docs/CONFORMANCE-COVERAGE.md quotes each ledger row's reason; the row's words moved with its refusal (python3 -I scripts/conformance-coverage/coverage.py). |
||
|
|
da020e5d7b |
Runtime: a compute kernel that reaches an explicit imageblock gets its state; its dispatch is refused
A compute pipeline state whose kernel reaches an explicit imageblock was refused at its make as
Gap::KernelInput of KernelInputKind::RuntimeFact naming ImageblockSize, which every arm64 macOS
guest boot meets once. The state is now made, and what stays refused is the dispatch, where Metal
reads the extent setImageblockWidth:height: set, which the compute encoder does not have:
- interface() takes RuntimeFact::ImageblockSize, keeping its cell bytes as Interface::imageblock,
and leaves SpecKey::ImageblockWidth and ImageblockHeight at the module's default (0 by 0)
instead of refusing them as a specialization it does not set.
- encoder::decide, which the dispatch, prepare_dispatch, dispatch_variant and the main pipeline's
key all go through, refuses a kernel with an imageblock first, as Gap::KernelInput of
RuntimeFact naming the fact (RuntimeFact::name). So no VkPipeline of such a kernel is made:
finish_pipeline has no main key, and a pre-pass gets no key. A dispatch of such a kernel that
writes no memory records nothing and is not refused, as for any kernel without effects.
- imageblock_memory_length_for_dimensions keeps its typed answer, Gap::ImageblockLength, for a
kernel that declares an imageblock: the one recording of Metal's answer for such a kernel
(conformance pipeline-facts-compute-imageblock, M3 Max, 256 bytes at 8 by 4 by 3) settles no rule.
The translator is untouched. Gap and KernelInputKind keep their variants; the docs of
Gap::KernelInput, KernelInputKind::RuntimeFact and Specialization, Gap::ImageblockLength (and its
basis line), the dispatch and the state's make say where the refusal now is. docs/REFUSALS.md,
docs/METAL-COVERAGE.md (setImageblockWidth:height:'s note) and docs/CONFORMANCE-COVERAGE.md are
regenerated. The runtime README's state facts and its known gap are re-worded, with the counts and
jobs kept. The conformance ledger's pipeline-facts-compute-imageblock row moves from case/state to
the facts' label and device (the consumer's own, as for every state) and imageblock_memory_length
(Gap::ImageblockLength). Validation's KernelImageblock requirement doc and its acceptance test's doc
name the dispatch's refusal and the renamed device test.
Test: tests::kernel_input::an_explicit_imageblock_kernel_is_made_and_its_dispatch_refused_as_its_named_runtime_fact
(replacing an_explicit_imageblock_kernel_is_refused_as_its_named_runtime_fact) makes a4_imageblock_extent's
state, reads its imageblock length as Gap::ImageblockLength, gets no dispatch_variant key, and has
one 4 by 2 threadgroup's dispatch refused as Gap::KernelInput of RuntimeFact { fact: "ImageblockSize" }.
|
||
|
|
6adfe028d8 |
Translator: a half vector joined from read lanes keeps their bits; 20 NaN ledger rows
The RTX 5080 Laptop's replay at |
||
|
|
58e9267b6c |
Conformance coverage: the ledger rows the three cards' NaN answers added
docs/CONFORMANCE-COVERAGE.md regenerated by scripts/conformance-coverage/coverage.py after edb361410a added fifteen ledger rows: the ledger count reads 7968 and the gaps table lists the fifteen. Job m3-max-68716 at edb361410a failed only its coverage check on this document (the conformance crate ran 1024 tests, and 1023 passed); its replay on lavapipe read 0 ledger drift. |
||
|
|
f21db0934c |
Conformance: the stage-in cases' lavapipe answers, and StageInKind's doc no longer opens a list
The first replay of the stage-in cases through the runtime on lavapipe (llvmpipe, Mesa 26.2.4, job m3-max-68623) compared every row the old refusal had hidden. stage-in-region-clamps was refused at its one indirect row alone (its 27 other rows Metal's), attribute-format-class-crossings exact, and twelve sites differed, each now a ledger row or a declaration: - The three cases over stage_in_fetch_wide declare simdgroup-access-order, as the other cases whose kernels store at an index of the grid's width do: the runtime's pipelines note the store's SIMD-group access pairs on every device. It loosens the notices site alone. - attribute-format-fetches, five normalized 8-bit formats, on every venue: the pulled fetch's own product of the code and its maximum's reciprocal, which DeviceVertexConversion's recorded bound computes one f32 ulp high of Metal's quotient at 126 of the 256 unsigned codes (127 reads 0x3efeff00 where Metal reads 0x3efefeff). - attribute-format-fetches, the half and RG11B10 formats, on llvmpipe: the device's widening keeps a NaN's payload (0x7fc02000, 0x7ffe0000) where Metal reads 0x7fc00000, under DeviceNanEncoding. Each GPU's rows follow from its own replay. clippy refused StageInKind::IndexedStepRate's doc, whose second line began "1. ", a list item (doc_lazy_continuation, the same job); it is reworded. |
||
|
|
a916e61185 |
Runtime: a kernel's [[stage_in]] is fetched; the three forms not built are Gap::StageIn by kind
A compute pipeline state whose kernel reads [[stage_in]] attributes was refused at its creation as Gap::KernelInput of KernelInputKind::StageIn, which a guest met (a descriptor-form compute state, the app's context closed right after). The translator already fetches every attribute in the shader from the buffer slot at its layout's bufferIndex, through that slot's pushed address, by the stage-in and dispatch regions the encoder already pushes. Two things stood in the way, both in the runtime: - interface() refused any kernel whose PipelineInterface::stage_in is non-empty. The line goes. - The thread-position fetch's reach check reads SpecKey::StageInReach, which the runtime's constant loop refused as a specialization it does not set. The runtime now leaves it at the module's default (true): one pipeline, the check kept for every dispatch. What stays refused is a typed refusal naming its own form, Gap::StageIn of a new StageInKind: - IndirectRegion: setStageInRegionWithIndirectBuffer:indirectBufferOffset:, now the method ComputeCommandEncoder::set_stage_in_region_with_indirect_buffer, which always refuses (the conformance rt side calls it in place of its own Unavailable); - DynamicStride: an attribute the kernel reads through a thread-position layout of MTLBufferLayoutStrideDynamic (the compute encoder has no attributeStride setter), at the state's creation, before the translator's IdentityDomains refusal of StageInStride; - IndexedStepRate: an attribute it reads through an indexed step at a step rate past 1, at the state's creation. Both creation checks read the descriptor narrowed to the attributes the kernel reads (kernel_inputs_read), so an attribute it never reads, and a constant step of a dynamic layout, refuse nothing. KernelInputKind::StageIn is deleted. Consumer search: `git grep -n 'KernelInputKind'` in the reims-vgpu checkout at c8201ec2ba: 0 hits (nor any for `StageIn` as a refusal kind). Tests: the device test every_device_fetches_stage_in_by_each_step_function dispatches engine/kernel_stage_in's stage_in_fetch under ThreadPositionInGridX at rates 1 and 2, ThreadPositionInGridXIndexed and Constant, and checks every thread's four attributes (threads past the region read its last element); without the change the state is Gap::KernelInput. every_device_refuses_each_unbuilt_stage_in_form_by_its_kind holds the three kinds and the two states that are made. kernel_input's refusal test of StageIn goes; lowered and the harness's gap test take Slot. The conformance case stage-in-region-clamps carries on past a refused row (probe, as attribute_formats does), so its 27 other rows compare where the indirect one is refused. The ledger drops the 82 rows of the old refusal (stage-in-region-clamps 1, attribute-format-fetches 29, attribute-format-class-crossings 16, stage-in-unread-attributes 36), takes the indirect row's new refusal, and the four compute attribute-stride rows' DynamicStride refusal. The validation requirement KernelStageInput stays: the engine's run through the runtime passes no stage-input descriptor or region. README, REFUSALS.md, METAL-COVERAGE.md, CONFORMANCE-COVERAGE.md and the signatures table regenerated. |
||
|
|
c87452da05 |
Validation: the device tests the own-context executor ran assert what the runtime route does
The own-context executor's deletion pointed six device tests at the runtime route, and on
lavapipe (m3-max-67674) they failed: the route draws one library's stages with a generated
companion, and the runtime compiles under the identity domains. Each now asserts what the runtime
route does, or goes where the route cannot express it:
- a_loaded_pointers_buffer_written_past_its_end_is_refused_uncontained (was ..._is_guarded):
under the identity domains a loaded pointer is used as given and no check bounds it
(docs/API.md, section 1), so the run refuses the target, Uncontained naming LoadedPointer.
- cube_and_cube_array_face_reads_are_refused_under_the_identity_domains (was
cube_and_cube_array_faces_read_the_authored_layers): the translator refuses texture_ops.ll's
cube_faces under the identity domains (Unsupported{IdentityDomains}, NotImplemented, for the
cube argument read by face).
- an_index_past_a_one_layer_pass_renders_the_pass_s_slice: the same slice, with no withheld
validation message (the runtime route withholds none).
- a_constant_fragment_colors_the_quadrant_metal_draws, a_vertex_varying_reaches_the_fragment_stage
and a_looping_fragment_draws_as_compiled go, with their helpers: each draws a vertex and a
fragment function of two owned libraries with no companion, which only the deleted executor
drew. Metal's y-up quadrant stays asserted by
an_observed_vertex_case_draws_into_its_generated_observer (QUADRANT, top_right); a pipeline of
two libraries' stages is compared with Metal by the conformance case shader_stencil. A varying
across two libraries by its user key, and a looping fragment drawn as compiled, have no
runtime-route test now.
docs/CONFORMANCE-COVERAGE.md is regenerated (python3 -I scripts/conformance-coverage/coverage.py):
the rate-map modules no longer declare the notice, 44 modules to 41.
Verified: the coverage script's output; the device tests are not yet rerun (the check job follows).
|
||
|
|
3a59474e2c |
Docs: CONFORMANCE-COVERAGE.md derives the ordered fetch's 22 every-venue ledger rows
The ordered fetch's deletion (36cc1319c8) replaced 39 venue rows of the conformance ledger with 22 every-venue rows, but left the generated coverage document as it was. The suites job m3-max-65974 (at 4861c9863d) failed the_conformance_coverage_document_is_what_the_sources_derive on it. Regenerated with python3 -I scripts/conformance-coverage/coverage.py: the ledger row count goes from 8041 to 8024, and the padded-blend, extended-range and rotated rows each list once. Verified: the script's output only; the conformance suite runs on the branch. |
||
|
|
5d2c0bda2e |
Conformance: signed remainders of every width and sign, recorded on the M3
The case signed-remainders runs the owned fixture kernel_signed_remainders: each of 238 threads reads a 64-bit dividend and divisor (17 dividends by 14 divisors: both signs, the most negative long and int, low words that are the most negative short and char, values past 32 bits) and writes eight words: the remainder of the low words as int, short and char, the 64-bit remainder's two words, the exclusive-or of an int2 remainder's lanes, and the low word's remainders by 3 and -8. Apple's compiler writes srem i32, i16, i64 and <2 x i32> by run-time divisors and srem i32 by the constants 3 and 8 (x % -8 is x % 8). A remainder MSL leaves undefined (by zero, or of the most negative value by -1) is never taken: the fixture writes 0xdeadbeef there. Every column compares exactly. It holds every device to Metal's answer where the translator's signed remainder (the commit before last) replaced OpSRem, which Vulkan makes poison for a negative operand without maintenance8. Recorded on the M3 Max, macOS 27.0.1 (job m3-max-64656, which also compiled the fixture's companions with scripts/regen-air-fixtures under Apple metal 32023.922 and LLVM 21; TOOLCHAIN records the fixture's line). Metal's 1,904 recorded words equal C's truncating remainder for every operand pair (checked from the recording against a reference written apart from the fixture). docs/CONFORMANCE-COVERAGE.md regenerated (scripts/conformance-coverage/coverage.py). |
||
|
|
eed9ab3b52 |
Conformance ledger: the Iris Xe's fractional-viewport-coverage row, a driver bug and the accepted difference split by pixel
What: one row of known-gaps-rt.tsv, fractional-viewport-coverage on the Iris Xe at case/drawn/texels
(480 elements differ (F32), the largest difference 12), and docs/CONFORMANCE-COVERAGE.md re-derived
(the ledger's row count and the case's gap list).
Why: the case postdates the last round's replays, so no GPU venue had replayed it, and the next round
holds every GPU venue to the ledger. The Iris site mixes two causes, so the one row splits them by pixel:
- 240 elements, 60 pixels (the far column and row of the arms ending 0.7 into a pixel): each centre lies
inside the viewport and is undrawn, ANV's truncated scissor far edge (Mesa update_scissors), a driver
bug, the runtime README's known gap of render encoders; not an accepted difference.
- 240 elements, 60 pixels (the far column and row of the arms ending 0.25 into a pixel and on a pixel
centre): each centre lies outside the viewport or on its far edge, the accepted difference of
docs/API.md section 10 (Draws).
The Iris draws every arm's near partial column and row, as Metal does.
How verified: both cases replayed through the runtime on each GPU venue the round replays, with a probe
(never landed) that printed every differing pixel against Metal's recording, built at 8dc5ebbe9f
(development
|
||
|
|
6da9a2bca2 |
Fractional viewport coverage is an accepted difference beside a point's
The planner's ruling on Metal's recorded answer (fractional-viewport-coverage, m3-max-64012): MTLRenderCommandEncoder.h's setViewport: states only that fragments outside the viewport are clipped, not which a pixel the viewport's edge crosses is; the M3 covers every pixel the viewport overlaps, a partly held pixel included, and a Vulkan device covers a pixel where its sample lies in the clipped primitive. Rule 1 does not emulate what Metal leaves unstated, and a static note would be decided by a viewport's value at the draw, so docs/API.md's Draws list gains the entry beside the point's and the lavapipe row's reason becomes it. The GPU venues' rows come with the next round's replays. |
||
|
|
2470d0f5f4 |
Conformance ledger: fractional-viewport-coverage on lavapipe, open
Metal on the M3 covers every pixel a viewport overlaps for a draw that reaches past it, a pixel the
viewport holds only part of included; the runtime clips at the Vulkan viewport's own edges and
lavapipe covers only pixels whose centres the clipped primitive holds (344 F32 elements, largest
difference 11.25; replay m3-max-64022 at
|
||
|
|
44c96aa50c |
conformance: Metal's recordings of fractional-viewport-coverage and lines-fill-past-the-viewport
Recorded on the M3 (macOS 27.0.1) by job m3-max-64012 at
|
||
|
|
3051b00b00 |
conformance: fractional-viewport-coverage and lines-fill-past-the-viewport (unrecorded)
What: one module, cases/viewport_cuts.rs, of two cases. Each is one pass into an RGBA32Float target cleared to -7.5, every draw its own colour (tob_renders: tob_rect, tob_triangle, tob_solid), the whole target read back. - fractional-viewport-coverage: a filled draw over four viewports whose edges lie inside a pixel, each in a 12-pixel cell of a 48 by 24 target: far edges .7 into a pixel from an edge on a pixel boundary; .3 and .7; .75 and .25 (near and far pixel each a quarter inside, neither centre held); both edges on a pixel centre. Each viewport is drawn twice: a rectangle reaching to clip 1.25 (inside the 1.5 w band point-viewport-coverage found Metal keeping points in) and a triangle reaching to clip 6 (past it). - lines-fill-past-the-viewport: setTriangleFillMode Lines, three triangles each through an integer 8 by 8 viewport in a 16-pixel cell of a 48 by 16 target: one corner inside and two past the right and bottom edges, inside the 1.5 w band; the same shape past the band; and a triangle the viewport lies wholly inside, every edge more than a pixel outside it. Why: a fractional viewport's far row or column, whose pixel centre lies inside, is cut on one Vulkan driver, and a triangle under the Lines fill mode larger than its viewport has no Metal recording. Both need Metal's own answer before anything is ruled. The M3's next recording batch records them; until then the replay reports each as "no recording" and nothing is ledgered. Tests (no device): every viewport lies in its own cell with unreached pixels around it; each arm's near and far pixel lies against its viewport as its docs say; the geometry reaches past the viewport inside and past the band; every colour is its own; the line triangles cross or surround their viewport; every line edge passes at least 1/16 pixel from every pixel centre and diamond corner of the target. Once recorded, Metal's target is held to what every viewport rule gives (a pixel held whole is drawn, a pixel not reached is the clear), never to one rule. docs/CONFORMANCE-COVERAGE.md regenerated (case modules 181). |
||
|
|
d274b0b474 |
Conformance ledger: the texture-buffer and held-texture routes of norm-storage-codes on the NVIDIA cards and the Iris Xe
What: 20 rows in known-gaps-rt.tsv, at case/hsw_buffer/texels and case/hsw_held/texels of
norm-storage-codes-{rgba8unorm, rgba8snorm, rgb10a2unorm, rgba16unorm, rgba16snorm}: ten on
NVIDIA, ten on the Iris Xe. Each carries its card's hsw_write row's reason, with one more
sentence:
- the route answers as `hsw_write` does: the same count, the same largest difference, the same
first differing element;
- the case's pipeline records `device-color-conversion` and `device-nan-encoding` on that card.
docs/CONFORMANCE-COVERAGE.md is regenerated.
Why: texbuf (
|
||
|
|
c1b0a6d5e2 |
Conformance ledger: the GPU cards' rows of the pixel-sampler, downscale and vertex-format cases, each with its reason
What: 696 rows in known-gaps-rt.tsv, one per surprise the tip's replays printed: - NVIDIA: 227 rows (m3-max-63788, RTX 3090). The round at |
||
|
|
1fbe4eacdb |
Conformance ledger: the GPU rows of the fetch and stencil-export cases go; those cards lack the feature
What: 91 refused rows leave known-gaps-rt.tsv: the NVIDIA, 780M, RX 7900 XTX and
Iris(R) Xe rows of the 17 padded-blend-* cases, xr-masked-bgr10xr-{red,blue-green,
srgb-red,srgb-blue-green} and argb8-targets-destination-alpha's refusal at
case/pipeline/argb8, and the NVIDIA rows of stencil-output, stencil-output-loaded and
pass-sequence-aspect-actions. The llvmpipe and UHD Graphics 630 rows stay. The fetch
block's comment says which devices read lacks-feature. docs/CONFORMANCE-COVERAGE.md
regenerated (scripts/conformance-coverage/coverage.py).
Why: round ce998742d7's eight GPU replays (m3-max-63423, 63431, 63464, 63447, 63444,
63446, 63468, 63453) read each of these 141 case-card-site triples as "no longer
refuses ... the ledger still lists it": every one of those cases reads lacks-feature
on those cards (NVIDIA 24 of 27 such cases, the others 21). Since
|
||
|
|
b7e3247961 |
Conformance: the known-gaps ledger's texture-buffer rows after the runtime makes texture buffers
From the lavapipe replay of d7f0a88fd9 (job m3-max-63634 on msi: 298 lines of ledger drift, 132 rows no longer held and 166 gaps unlisted): - dropped the 132 rows of 'texture buffers are not built' and of the translator's IdentityDomains refusal of a texture buffer slot, which no longer hold on lavapipe: read-through-buffer, buffer-textures-cpu-access and norm-storage-fields-rgb10a2unorm now compare equal; - 98 rows (every venue): Device::new_texture and the heap size of a texture buffer's descriptor are Refusal::TextureBufferNotOverBuffer, the consumer's contract; - buffer-textures-made: the made texture buffers' cpuCacheMode, hazardTrackingMode and allowGPUOptimizedContents are the consumer's, as the 2D rows are (every venue, but offsets 4, 8 and 20, which are scoped to llvmpipe, NVIDIA, Intel and RADV, and are Refusal::TextureBufferAlignment of 16 bytes on Apple M3 Max, whose KosmicKrisp states no single-texel alignment); offset 33 is TextureBufferAlignment of 4 bytes (16 on Apple M3 Max); and a texture buffer over a Managed buffer states Shared where Metal answers Managed on a device of one copy (llvmpipe, 780M, Intel, Apple M3 Max), as a 2D texture over one does; - buffer-tails-texture-buffer: texels past the buffer are Refusal::BufferTextureLayout; - norm-storage-codes-*: hsw_buffer and hsw_held diverge on llvmpipe as hsw_write does (the device's conversion); - texel-swizzles-*: a swizzled texture buffer is Gap::TextureBufferSwizzle, a view of one Gap::TextureView, and llvmpipe's unorm8 read is one ulp high (the device's conversion); - texture-buffer-fill-*: this side answers no fillTexture yet. The llvmpipe rows are verified by that replay. The rows of other venues are expected from each venue's texel-buffer offset alignments and device type in its vulkaninfo, not run; the replay matrix holds them. docs/CONFORMANCE-COVERAGE.md regenerated after the ledger (scripts/conformance-coverage/coverage.py). Verified: the lavapipe replay's drift lines, classified by ~/.cache scratch; the conformance suite and replay follow in the next job. |
||
|
|
8f797a923d |
Conformance: the texture-buffer rows' comments name the runtime's refusals; the coverage document after the texture-buffer alignment query
The runtime makes texture buffers now (c2a8f4527c), so the comments that named Gap::TextureBuffer say what it answers at those sites: the stride row's texture buffer (bytesPerRow below its width's bytes) and the tails case's (texels past its buffer) are Refusal::BufferTextureLayout, as a 2D texture's are. docs/CONFORMANCE-COVERAGE.md regenerated (scripts/conformance-coverage/ coverage.py): minimumTextureBufferAlignmentForPixelFormat: is implemented and no case exercises it yet (reachable not exercised 76 -> 77), and textureBufferDescriptorWithPixelFormat:...'s note is coverage.tsv's generic one. The known-gaps ledger's texture-buffer rows follow from the lavapipe replay in a later commit. Verified: rustfmt; the generator's output. |