From a529fb658e9abdd3958c913347777bc7dda72294 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Fri, 20 Nov 2026 21:15:17 -0800 Subject: [PATCH] rt: the floor's depthBiasClamp has its missing-feature case, and the runtime-floor profile states it The floor requires depthBiasClamp (the first commit of this change). The runtime's each_missing_feature_is_named gains its case, as its count of cases is held to REQUIRED's. The regeneration's RUNTIME_FLOOR and runtime-floor.json's m2v_runtime_floor block state it, in the generator's order (the block the runtime's the_floor_profile_states_exactly_the_floor holds equal to floor.rs; check_device_profiles: 0 findings over 17 profiles; the JSON line is written as the regeneration writes it, without refetching its pinned sources). CONFORMANCE-COVERAGE is regenerated for the ledger row render-state-depth-bias left (7688 rows to 7687). The runtime-floor contexts' opened chains move with the profile; their bless is the next commit. Verified: suite m3-max-61635 at 406f39dc90 (msi; the workspace suite and the lavapipe device tests) failed exactly these three, each_missing_feature_is_named (52 cases against 53), the_floor_profile_states_exactly_the_floor (depthBiasClamp) and the coverage document; the rerun follows. --- crates/metal2vulkan-runtime/src/tests/floor.rs | 4 ++++ crates/metal2vulkan-validation/profiles/runtime-floor.json | 1 + docs/CONFORMANCE-COVERAGE.md | 3 +-- scripts/regen-device-profiles/regen_device_profiles.py | 5 +++-- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/crates/metal2vulkan-runtime/src/tests/floor.rs b/crates/metal2vulkan-runtime/src/tests/floor.rs index a0a040acc..b4fb282db 100644 --- a/crates/metal2vulkan-runtime/src/tests/floor.rs +++ b/crates/metal2vulkan-runtime/src/tests/floor.rs @@ -565,6 +565,10 @@ fn each_missing_feature_is_named() { |f| f.core.full_draw_index_uint32 = vk::FALSE, feature(CORE, "fullDrawIndexUint32"), ), + ( + |f| f.core.depth_bias_clamp = vk::FALSE, + feature(CORE, "depthBiasClamp"), + ), ( |f| f.core.shader_clip_distance = vk::FALSE, feature(CORE, "shaderClipDistance"), diff --git a/crates/metal2vulkan-validation/profiles/runtime-floor.json b/crates/metal2vulkan-validation/profiles/runtime-floor.json index 7f04a1dd0..65728c748 100644 --- a/crates/metal2vulkan-validation/profiles/runtime-floor.json +++ b/crates/metal2vulkan-validation/profiles/runtime-floor.json @@ -1139,6 +1139,7 @@ "alphaToOne": true, "logicOp": true, "fullDrawIndexUint32": true, + "depthBiasClamp": true, "shaderClipDistance": true, "tessellationShader": true, "shaderTessellationAndGeometryPointSize": true, diff --git a/docs/CONFORMANCE-COVERAGE.md b/docs/CONFORMANCE-COVERAGE.md index 5d0b587d6..e7f694d90 100644 --- a/docs/CONFORMANCE-COVERAGE.md +++ b/docs/CONFORMANCE-COVERAGE.md @@ -42,7 +42,7 @@ Its limits, measured rather than asserted: | committed recordings | 1319 | | distinct SDK items the Metal leg reaches, of any status | 804 | | of those, reached only where this cannot name the family | 5 | -| ledger rows (a case whose gap is recorded) | 7688 | +| ledger rows (a case whose gap is recorded) | 7687 | | declared crossings of the option space (pairs put to Metal at once) | 26 | | declared crossings that are no pair of it (a boolean or numeric field, or one type in two slots) | 30 | @@ -8074,7 +8074,6 @@ A case whose difference from Metal is recorded rather than compared away. The le | `render-draw-forms-empty` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, no indirect draw). The rt side of the suite answ… | | `render-draw-forms-points` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, no indirect draw). The rt side of the suite answ… | | `render-draw-forms-triangles` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, no indirect draw). The rt side of the suite answ… | -| `render-state-depth-bias` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every setDepthBias:slopeScale:clamp: clamp 0). r… | | `render-state-depth-clip` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every depth clip mode Clip). rt refuses it (a dr… | | `render-state-facing` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every setTriangleFillMode: Fill). rt refuses it … | | `render-state-heap-residency` | refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, no sparse texture, heap or tile call). The rt si… | diff --git a/scripts/regen-device-profiles/regen_device_profiles.py b/scripts/regen-device-profiles/regen_device_profiles.py index 4f95bc0a0..5c14a351a 100755 --- a/scripts/regen-device-profiles/regen_device_profiles.py +++ b/scripts/regen-device-profiles/regen_device_profiles.py @@ -115,8 +115,9 @@ RUNTIME_FLOOR = { "shaderStorageImageExtendedFormats", "samplerAnisotropy", "shaderImageGatherExtended", "shaderInt16", "independentBlend", "fragmentStoresAndAtomics", "alphaToOne", "logicOp", "fullDrawIndexUint32", - "shaderClipDistance", "tessellationShader", "shaderTessellationAndGeometryPointSize", - "largePoints", "dualSrcBlend", "sampleRateShading", "vertexPipelineStoresAndAtomics")}, + "depthBiasClamp", "shaderClipDistance", "tessellationShader", + "shaderTessellationAndGeometryPointSize", "largePoints", "dualSrcBlend", + "sampleRateShading", "vertexPipelineStoresAndAtomics")}, "VkPhysicalDeviceVulkan11Features": {member: True for member in ( "storageBuffer16BitAccess", "multiview", "shaderDrawParameters")}, "VkPhysicalDeviceVulkan12Features": {member: True for member in (