From c226c542b2d9b1b4d1bbec8bc93c39501500175a Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Thu, 3 Dec 2026 15:24:40 -0800 Subject: [PATCH] Translator tests and runtime docs: the fold's round-trip fields and a private link Job m3-max-85802, the twin's suites and lint at 52e98915ba on lavapipe, ran two steps green: the runtime's device tests (red at 8672e74957, green at 52e98915ba) and the runtime suite (1003 passed, 4 skipped). Validation also passed (1344 passed, 2 skipped). The translator's test build failed: api_tests' round-trip literals of VariantKey and LoweringInputs name every field, and lacked depth_range_fold (E0063). That failed the fold tests, tr_core and clippy in all three configurations. The private rustdoc failed on one unresolved link in RenderCompiled::content's doc (Device::render_pipeline_state, a private method of crate::Device). - api_tests: both literals set depth_range_fold: true, so the round trip covers the new field. - render.rs: the link names crate::Device::render_pipeline_state. No product code changes. The runtime-sources pin does not move (pin-compute). Verified: the READY gives the rerun's job lines. --- crates/metal2vulkan-runtime/src/render.rs | 5 +++-- crates/metal2vulkan/src/pipeline/api_tests.rs | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/crates/metal2vulkan-runtime/src/render.rs b/crates/metal2vulkan-runtime/src/render.rs index d7642bab3..245ed13c8 100644 --- a/crates/metal2vulkan-runtime/src/render.rs +++ b/crates/metal2vulkan-runtime/src/render.rs @@ -458,8 +458,9 @@ pub(crate) struct RenderCompiled { pub(crate) id: u64, /// What the content was made for beside its descriptor: the colours its fragment function /// fetches through 2D array views, the buffer slots it holds to 4, and the texture slots it - /// encodes sRGB writes at ([`Device::render_pipeline_state`]'s), which its depth range twin - /// is made for too. + /// encodes sRGB writes at, as + /// [`Device::render_pipeline_state`](crate::Device::render_pipeline_state) takes them, which + /// its depth range twin is made for too. content: (u8, u64, [u128; 2]), /// The content's depth range twin ([`RenderPipelineState::folded`]), made at the first draw /// that needs it and held as long as the content: no map of its own keeps it. Or the diff --git a/crates/metal2vulkan/src/pipeline/api_tests.rs b/crates/metal2vulkan/src/pipeline/api_tests.rs index 5c3a9dd13..25d97bab4 100644 --- a/crates/metal2vulkan/src/pipeline/api_tests.rs +++ b/crates/metal2vulkan/src/pipeline/api_tests.rs @@ -121,6 +121,7 @@ mod serde_round_trips { private_list: true, open_cl_lines: BTreeSet::from([slot(Stage::Kernel, SlotClass::Texture, 1)]), region_viewports: true, + depth_range_fold: true, }); round_trip(&SpecializationKey { data: vec![1, 0, 0, 0], @@ -268,6 +269,7 @@ mod serde_round_trips { instanced_attributes: BTreeSet::from([1]), object_payload: Some(64), region_viewports: true, + depth_range_fold: true, push_base: 24, word_bound_buffers: BTreeSet::from([slot(Stage::Kernel, SlotClass::Buffer, 2)]), arrayed_fetches: BTreeSet::from([1]),