abba06ab441909a4c140ec6e94de15d826700ac1
9
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
02e3c4825e |
State strictLines false in the Vulkan 1.2 floor profile's unrequired properties
VP_LUNARG_minimum_requirements_1_2 states no strictLines, and vk.xml gives it limittype max, so VK_LAYER_KHRONOS_profiles kept the device's own value for a run restricted to vk12-floor, while the product's reader takes false for the absent member. On the NVIDIA RTX 5080 Laptop (strictLines true) the restriction check refused both vk12-floor runtime lanes (absent_reads and barycentric_weights: "limits.strict_lines: expected false, queried true"). The M3 (MoltenVK, false) never saw it. strictLines is the property the generator's m2v_unrequired_properties block exists for: one the product reads and the layer sets, that the base leaves open, at the weakest value the specification permits. The block now states it, and the generator's check that the base does not state a block member reads VkPhysicalDeviceProperties' nested limits (before, any base limit would have read as a restatement of limits itself). The product's reading of vk12-floor is unchanged (false either way). Verified: python3 -m unittest test_device_profiles (34 tests OK; with the flattening reverted, the new test_a_limit_is_told_apart_from_the_limits_a_base_states errors), check_device_profiles.py 19 profiles 0 findings. The 5080 lanes: expected (run pending). (cherry picked from commit 47d84ac2719daedeef2cf74751334d826d6fb905) |
||
|
|
bbc7866fa0 |
Read nonStrictWideLinesUseParallelogram from the maintenance5 properties
The profile reader took VkPhysicalDeviceMaintenance5Properties' members only through VkPhysicalDeviceVulkan14Properties, so a capture of a Vulkan 1.3 device exposing VK_KHR_maintenance5, which carries only the extension's structure, read nonStrictWideLinesUseParallelogram as false, and the runtime would announce or band wide lines its device draws as Metal's parallelogram. PROPERTY_STRUCTS now lists VkPhysicalDeviceMaintenance5Properties and its KHR name; the member is still read only where maintenance5 is exposed (the extension or 1.4). The profile generator's EXTENSION_PROPERTIES states the member at the value the reader takes when a requirements document lists the extension and omits it (false). Nothing moves: every committed capture that carries the extension structure also carries the Vulkan 1.4 one, with the same value (golden_hashes passes unblessed). The runtime-sources pin, which hashes this file, is rewritten in the next commit. Verified: nextest device::tests::description (23 pass), among them the new wide_line_parallelograms_read_the_maintenance5_structure (a 1.3 document with the extension and either structure name reads true, without the extension false, a 1.4 document's Vulkan 1.4 block true); negative control: with the two names left out of PROPERTY_STRUCTS the test fails; golden_hashes and fast_paths pass; scripts/regen-device- profiles test_device_profiles.py and check_device_profiles.py clean. (Carried to development from steelbrain/reims-graphics-kext 5651992284.) |
||
|
|
eb41a55e82 |
Draw every width Apple's setLineWidth: takes, as Metal draws it
RenderCommandEncoder::set_line_width refused every width but 1 (AppleOnly::LineWidth). Measured on the Apple M3 Max under macOS 27.0.1 (probes/line_widths.m): each encoder starts at 1 and the width holds across draws and pipeline states; Metal draws w' = floor(16 w) / 16 clamped to [0, 16] (NaN and negatives as 0, infinity as 16); at w' = 1 its ordinary diamond-exit lines; at every other w' Vulkan's non-strict parallelogram (major axis the larger extent, x on a tie; minor-axis edges through the endpoints, w' long and centred; ends not extended; centres inside, top-left ties; the width not rounded); at 0 exactly the pixel centres on the segment; one parallelogram per strip segment with no joins; triangles in fill mode Lines draw their edges so; at 4 samples every width is the parallelogram at the sample positions. The runtime (render/line_width.rs) keeps the quantized width in the encoder state and routes each draw at w' != 1: - the device's own lines (lineWidth w', no Bresenham mode) where it enables wideLines and w' lies in lineWidthRange above 0: exact where strictLines is unset, nonStrictWideLinesUseParallelogram set, w' > 1 and on lineWidthGranularity; elsewhere announced device-wide-lines under the default DevicePolicy::wide_lines = WideLinePolicy::Device, and the band under WideLinePolicy::Exact (exact_answers() selects it); - the pipeline's band variant otherwise (no wideLines, MoltenVK among them; w' outside the range; w' = 0 at half a width of 2^-subPixelPrecisionBits): cull none, the band's front face, fill mode, a PATCH_LIST of two points, viewport 0's half extent pushed with the half width; strips and loops listed as their segments (ListGap::WideLines), flat inputs under the last provoking vertex read from the list led by the last vertex, which covers the same pixels. Refused: Unsupported(WideLines) needing tessellationShader where neither route draws a line; NotImplemented(RuntimeGap::WideLines) for a triangle's edges or a mesh draw's lines the device's lines do not draw, an amplified band, a rate-mapped pass and an execution's commands. Counted: WorkCounts::device_wide_line_draws, line_band_draws. The lane test runtime_lane::line_widths draws the probe's cases through owned fixtures and compares every pixel with Metal's answers (line_widths_m3_max.txt, the probe's output), checks each wide draw took a route, and that every fragment is front-facing; its site WIDE_LINES holds the new kind in the lane's degrade-notice closure. Docs: FAST-PATHS.md's row for wide_lines and a known-gap bullet (edges and mesh lines on devices without wideLines, near-plane cuts, band fragments' inputs uncompared, width 1 on multisampled targets off MoltenVK); API.md's policy bullet and degrade catalogue; the runtime README's Line widths; RUNTIME-PORTING's row; REFUSALS.md regenerated (reach rows for feature and gap WideLines, apple LineWidth gone). Validation: the line limits the device description gained describe execution and are not compared in a profile's subset check; the generator's CORE_PROPERTIES and roadmap-2022's m2v_layer_presentation state them at the reader's absent values; opened_chains reblessed (one member more, wide_lines, on every device with it); golden_hashes' profile fingerprints reblessed (no output cell moved); api_signatures and api_surface name WideLinePolicy and LineBandState. RUNTIME_VERSION 1712; the runtime-sources pin rewritten. Verified on the M3 Max under MoltenVK 1.4.2 through maclock with the validation layer: runtime_lane::line_widths, 4 tests pass. Default and exact policies each: 102 cases, 100 matched pixel for pixel, 2 refused (the two fill-mode Lines cases at width 4, NotImplemented(WideLines)), 0 announced; 46 draws took the band, 0 the device's lines (MoltenVK has no wideLines). a_band_needs_tessellation (tessellationShader withheld: width 0 refused needing it, width 2 refused, width 1 matches) and the_lane_s_maps_tell_the_widths_apart pass. Negative control: the band widened by 1/16 of a pixel fails both runs at LANE lines 0.5. Also cargo clippy --workspace --all-targets --all-features -D warnings, plain and with --cfg m2v_gpu; nextest of metal2vulkan, -air, -runtime and -devtools (4954 run, the one failure the missing lane site, now declared), of metal2vulkan-validation (the failures the profile rules, chains and pin fixed here, rerun green) and of metal2vulkan-conformance (1007 pass). Not run: lavapipe, RADV, ANV and NVIDIA lanes, which take the device route. (Carried to development from steelbrain/reims-graphics-kext b16d03150c.) |
||
|
|
c5978ed3d6 |
Delete LinearTilingFeaturesUninitialized: MoltenVK 1.4.2 reports linear tiling consistently
One work packet, landed as 3 commits (5522085593..cc22d95bf9 on archive/development-linear-2026-10-28), in order: * Delete LinearTilingFeaturesUninitialized: MoltenVK 1.4.2 reports linear tiling consistently MoltenVK 1.4.1 built its format table before it set renderLinearTextures, so a format's linear-tiling attachment and blit-destination features differed between instances of one process (2 of 40 on the M3 Max). The driver fact made every description leave those features out, so on MoltenVK a texture over a buffer that renders or that blits write was a shadow. Homebrew's MoltenVK 1.4.2, the only release we track, reads gpuCaps.supportsRenderLinearTextures in setFormatProperties: 500 of 500 instances made one after another in one process, with the freed heap poisoned between them, reported 0x8000dd83 for R8G8B8A8_UNORM, B8G8R8A8_UNORM, R16G16B16A16_SFLOAT and R32_SFLOAT on the M3 Max (driver 0x28a2). The owner's decision: delete the fact. Deleted: the variant and its MEASURED row and docs, DriverFact::unreliable_linear_tiling, DeviceDescription:: unreliable_linear_tiling, the stripping in DeviceDescription::query, the capture supplement's stripping and the venue test's MoltenVK branch, the core test of the stripped features, the regeneration script's UNRELIABLE_LINEAR_FEATURES and its unit test, and the FAST-PATHS bullet on MoltenVK buffer textures keeping a shadow. Recaptured moltenvk-m3 on the M3 Max (macOS 27.0.1, Homebrew molten-vk 1.4.2, vulkan-tools 1.4.363.0) by the documented flow, each capture under the Mac GPU lock: vulkaninfo --json and corpus-vulkan --capture-formats, pinned in the script's SOURCES. The profile's format diff is the linear tiling alone: COLOR_ATTACHMENT and BLIT_DST added on 56 formats, COLOR_ATTACHMENT_BLEND on 34 of them, in VkFormatProperties and VkFormatProperties3; no linear depth/stencil attachment; the sample counts unchanged. Also moved since the 1.4.1 capture: the driver (10401 -> 10402, "1.4.2"), API 1.4.334 -> 1.4.357, VK_KHR_shader_quad_ control and shaderQuadControl gone (1.4.2 stops advertising them, as driver_facts.rs records), and shaderRoundingModeRTEFloat64 and shaderSignedZeroInfNanPreserveFloat64 now false (the device has no shaderFloat64). The venue's declared identity follows (c3-venues.json, the profiles README), so MoltenVK venue rows of 1.4.1 read stale until re-recorded. The tests that removed the quad-control feature from the 1.4.1 profile to stand for 1.4.2 now read the capture as it is: simd_after_discard and fragment_group_operations_run_full_quads take a profile whose driver runs Metal's helpers (MetalFullQuads) as one that compiles without the mode. opened_chains.txt is re-blessed for moltenvk-m3's four contexts (one member and one extension fewer each). RUNTIME_VERSION 1665 -> 1666: on MoltenVK a texture over an ordinary buffer that renders or that blits write is now its own linear image, not a shadow, which changes announcements and submissions. The runtime sources pin moves with driver_facts.rs and query.rs. The translator reads no linear tiling, so SEMANTICS_VERSION stays; moltenvk-m3's keys move with its fingerprint. golden_hashes.tsv is stale for 2757 moltenvk-m3 cells (fingerprint bea6f0f2c6d5374f -> e69acb7b2f990adb), to re-bless on development. Verified: clippy --workspace --all-targets --all-features -D warnings, plain and --cfg m2v_gpu; rustdoc of metal2vulkan and validation; check_device_profiles.py (0 findings) and the script's 40 unit tests; the core, air, runtime and devtools suites (5057 tests: fails only the four quad tests fixed here, then passing, and golden_hashes); the validation suite (1362, fails only opened_chains, re-blessed and passing). On MoltenVK 1.4.2 under the GPU lock and memcap, --cfg m2v_gpu, debug: 158 validation device tests (buffer_texture_renders, _blits, _order, buffer_textures, linear_attachments, host_memory, tile_shadows, kept_buffer_bytes, view_attachments, no_copy_textures, surface_aliases, in_place_textures, degrade_notices, detach_textures and the_formats_capture_is_the_product_queried_formats_of_the_venue_device), 157 passed; 135 more texture lanes, 133 passed; 90 runtime device tests, all passed. The three failures fail identically at a527df636f. Against a527df636f on the same device, linear_attachments printed "over a Shared buffer ... aliased false" and 10 shadowed-texture notices "the linear tiling of VK_FORMAT_B8G8R8A8_UNORM lacks COLOR_ATTACHMENT | COLOR_ATTACHMENT_BLEND"; now "aliased true" and no notice of a missing linear feature in any of the 383 tests. * Re-pin the runtime sources at the landing tip The landed packet changed a runtime-sources input, so the committed digest no longer described the sources and `the_runtime_sources_are_the_committed_ones` would fail. Recomputed over the same inputs and committed by land-pkt.sh. * Re-bless the golden table after moltenvk-m3's recapture from MoltenVK 1.4.2 The profile's linear tiling now holds MoltenVK 1.4.2's attachment and blit features, and the capture's version and extension moves (quad control gone), so its fingerprint and cells moved. bless_engine_inventory, bless_golden_hashes and bless_engine_goldens at 69e9622aff; public_fixtures_engine, air_input and golden_hashes: 28 passed. |
||
|
|
00f7c18aab |
Drop the Apple M4's device profile
The owner asked for the M4 profile to go: no venue runs an M4 (the M4 venue was dropped on 2026-10-11), and its capture differed from the M3 Max's only in the identity and the allocation sizes, so every test that named it repeated the M3 Max's case. - crates/metal2vulkan-validation/profiles/moltenvk-m4.json is gone, with its regen-device-profiles source, its README row and paragraph, and its four opened_chains.txt rows. - MOLTENVK_CAPTURES holds the M3 Max alone. Tests that looped over both captures take the M3 Max's; loops over that one capture are unrolled (clippy's single-element rule). Tests that took the M4 as a device of the pixel interlock, of fragment stores, or of the family audit take the M3 Max's capture, which has the same features. - validation: a_run_on_the_m4_at_the_m3_max_venue_stops_on_its_name_alone is gone; the C3 venue test builds its second GPU's device from the M3 Max's capture under another name. - Docs and a probe comment no longer name the capture. Left red here, fixed in the next commit (which removes the per-release driver table these tests pin): driver_facts tests that measure the M4's identity (an_unmeasured_identity_takes_its_drivers_defects_alone, moltenvk_1_4_2_is_measured_on_the_m3_max_alone, moltenvks_linear_attachment_features_are_left_out, the_profile_takes_the_deviations_its_driver_release_is_measured_with) and two arith tests whose measured device was the M4 (half_arithmetic_on_the_device_follows_the_profile, the_fused_multiply_add_route_follows_the_profile). The golden tables' M4 columns are re-blessed after the change. Verified: cargo clippy --workspace --all-targets --all-features -D warnings is clean; the core suites ran (failures above, the run continuing against this tree). Originally bfdfe81d37 (archive/development-linear-2026-10-28). |
||
|
|
e841dd6b4a |
Read the Radeon 780M of Hawk Point as the measured Phoenix 780M, with its own device profile
The Radeon 780M of Hawk Point (PCI device 0x1900) takes the driver facts measured on the Phoenix 780M (0x15bf), the same GPU, and gets its own committed device profile. Folds in: - Read the Radeon 780M of Hawk Point (0x1900) as the measured Phoenix 780M (0x15bf) Verified by each folded change's own checks; the tree this series ends on is the one verified at the tip on six GPUs, the CPU suites and lint (see the tables commit). |
||
|
|
0175289314 |
Batch the development-fast round: tessellation without tessellationShader, primitive ids, mesh tooling, color groups, the vk12 floor, runtime timing and teardown fixes
One commit of the 247 on development-fast (720ef1ce9a..9f46fdf80d), squashed at the user's request. Translator: - Tessellation on a device without tessellationShader: Metal's tessellator emitted as SPIR-V, a one-workgroup scan placing each patch's triangles in Metal's order, and the post-tessellation function as a plain vertex stage (EmulatedTessellationDraws; SEMANTICS 1739, ARTIFACT_FORMAT 419). - [[primitive_id]] on a device without geometry or tessellation shaders, as a flat varying the vertex function writes; indexed lists, lines and points drawn de-indexed (RuntimeGap::PrimitiveIdIndices). - Fragment functions of more colors than the device draws at once, compiled in color groups (PrecisionNote::ColorAttachmentGroups). - Object functions' threadgroup memory from the render encoder; a kernel's mesh draws from an indirect command buffer; mesh payload sizing. - The Vulkan 1.2 floor profile (vk12-floor) and the gates it needs; Metal 27.0.1 answers as the M3 Max. - Overflow tests in the runtime-built modules by the product's high word (NVIDIA's compiler fails the division form), guarded crate-wide by tests::owned_divisions. Runtime: - Color-group passes replayed per group over twin depth/stencil; snapshot and copy-back cost cuts. - Command buffers finish on the queue waiter that saw them; the waiter holds no device handle, so a program's drop after its wait is the device's last. - Every object an encoder was handed held until its command buffer completes; deallocator order and announcements. - Driver defects recorded and announced: ANV counts a visibility sample once per color output (visibility-count-per-color); MoltenVK fails pending work when memory that held a device-address buffer is freed, so freed memory waits for the work in flight (host-deallocator-delayed). - RenderCommandEncoder::set_object_threadgroup_memory_length; Visibility::counting(). Validation: mesh tooling (object, mesh and ICB-mesh cases on both executors), the authoring census closed, the queue storm judged in Metal's unit, load-robust exits and indirect-census bounds, and the golden hashes, printouts, fixture inventory and authored compile census blessed. Docs: FAST-PATHS.md trimmed to a ledger of what is true now; API.md's catalogue and accepted differences, REFUSALS.md and METAL-COVERAGE.md current. Verified on development-fast before the squash: the full suites on the RTX 5080, RTX 3090, RX 7900 XTX, Radeon 780M, Iris Xe, lavapipe and the M3 (MoltenVK and the Metal oracle), lint in every configuration, rustdoc, doc tests, packaging and public case qualification; the timing and teardown lanes x5 on every venue; the authoring-capability census 16656/16656 with 0 unresolved, the vk12-floor translation census at 6139 translated with the slowest row 794 ms and peak 126 MiB. The tree is development-fast's at 9f46fdf80d. |
||
|
|
c05c380139 |
Match the M3 Max under macOS 27.0.1: measurements, profile, Metal rows and MoltenVK venue
The macOS 27 work packet: the M3 Max moved to macOS 27.0.1, where MoltenVK gives it the M4's deviceID. Its measurements, its MoltenVK profile, its Metal rows (now the C3 reference) and its MoltenVK venue rows are taken again, and the tests follow. Read Metal's NotMipmapped anisotropic footprint through MoltenVK at level 0: On macOS 27 Metal's anisotropic filter reads a sampler without a mip filter differently once its level clamp reaches 1/64: the runtime's NotMipmapped form (nearest mip, lod [0, 0.25]) handed MoltenVK an anisotropic footprint that was not Metal's NotMipmapped one, and the anisotropic lane failed on the M3 Max under macOS 27.0.1. Through Metal's own sampler (VkProperty::MetalSampler) with anisotropy and equal min and mag filters the sampler now clamps to [0, 0]: with equal filters the level has no filter left to choose, and Metal answers that sampler as NotMipmapped bit for bit. With filters that differ no clamp reads Metal's answer at maxAnisotropy 2 to 16; that stays a known gap in docs/FAST-PATHS.md. RUNTIME_VERSION moves (renumbered once for the composed batch): a run of an unchanged artifact samples differently. Verified: metal::sampler unit tests (24, including the new metals_own_anisotropic_sampler_reads_not_mipmapped_at_level_zero) at a release build; runtime_lane::anisotropic_filter::anisotropic_samples_answer_within_ their_bounds_of_metals passes on the M3 Max, macOS 27.0.1, MoltenVK 1.4.1 (it failed at the round's first composed tree and at |
||
|
|
13b279df1b |
Squash 11203 commits of translator, runtime, and validation work
Rolls up everything since
|