diff --git a/crates/nodes/src/pattern/bitmap.rs b/crates/nodes/src/pattern/bitmap.rs index 8f5e6ae0..9861cc35 100644 --- a/crates/nodes/src/pattern/bitmap.rs +++ b/crates/nodes/src/pattern/bitmap.rs @@ -2,6 +2,7 @@ use craft_texture::{Image, Limits}; use materialcraft_core::OutputFormat; use std::collections::BTreeMap; +use super::coordinates::PixelPlanes; use crate::texture_sampler; pub(super) struct Mipmaps { @@ -34,20 +35,62 @@ impl Mipmaps { } } -pub(super) fn mip_level(image: &Image, size: [f32; 2], pixel: [f32; 2], sine: f32, cosine: f32) -> usize { - let u = image.width() as f32 / size[0]; - let v = image.height() as f32 / size[1]; - let dx = [cosine * u * pixel[0], -sine * v * pixel[0]]; - let dy = [sine * u * pixel[1], cosine * v * pixel[1]]; - // Estimate the source footprint along both screen axes and both diagonals. - // Thin rotated stamps can cross a mip boundary on the diagonal first. - let footprint = |x: f32, y: f32| x.abs().max(y.abs()) + x.abs().min(y.abs()) / 3.0; - let axes = footprint(dx[0], dx[1]).max(footprint(dy[0], dy[1])); - let diagonals = footprint(dx[0] + dy[0], dx[1] + dy[1]).max(footprint(dx[0] - dy[0], dx[1] - dy[1])); - axes.max(diagonals * (11.0 / 16.0)).max(1.0).log2().round().clamp(0.0, 13.0) as usize +pub(super) struct Sampler<'a> { + source: &'a Image, + slot: usize, + format: OutputFormat, + filtering: i32, + fallback_level: usize, + level: usize, + image: Image, + last_quad: Option<[u32; 2]>, } -pub(super) fn sample(image: &Image, local: [f32; 2], format: OutputFormat, nearest: bool) -> [f32; 4] { +impl<'a> Sampler<'a> { + pub fn new(source: &'a Image, slot: usize, format: OutputFormat, filtering: i32, fallback: [[f32; 2]; 2]) -> Self { + let fallback_level = if filtering == 0 { mip_level(source, fallback) } else { 0 }; + Self { source, slot, format, filtering, fallback_level, level: 0, image: source.clone(), last_quad: None } + } + + pub fn start_copy(&mut self) { + self.last_quad = None; + } + + pub fn sample(&mut self, local: [f32; 2], pixel: [u32; 2], planes: Option<&PixelPlanes>, mipmaps: &mut Mipmaps) -> Result<[f32; 4], String> { + let quad = pixel.map(|v| v & !1); + if self.filtering == 0 && self.last_quad != Some(quad) { + self.last_quad = Some(quad); + let level = planes.map_or(self.fallback_level, |p| mip_level(self.source, p.quad_gradients(quad))); + if level != self.level { + self.image = mipmaps.image(self.slot, self.source, self.format, level)?; + self.level = level; + } + } + Ok(sample(&self.image, local, self.format, self.filtering == 2)) + } +} + +fn mip_level(image: &Image, gradients: [[f32; 2]; 2]) -> usize { + let [dx, dy] = gradients.map(|[u, v]| [u * image.width() as f32, v * image.height() as f32].map(|g| f32::from_bits(g.to_bits() & !0x3fff))); + // The footprint uses nine fraction bits per derivative. The smaller component + // contributes 11/32 at its own exponent before alignment with the larger one. + let footprint = |[x, y]: [f32; 2]| { + let minor = x.abs().min(y.abs()).to_bits(); + let mantissa = 512 + ((minor >> 14) & 511); + let weighted = (11 * mantissa + 4) >> 5; + let major = f32::from_bits(x.abs().max(y.abs()).to_bits() & !0x3fff); + major + f32::from_bits(minor & 0x7f80_0000) * (weighted as f32 / 512.0) + }; + let add = [dx[0] + dy[0], dx[1] + dy[1]]; + let sub = [dx[0] - dy[0], dx[1] - dy[1]]; + let diagonal = footprint(add).max(footprint(sub)) * (11.0 / 16.0); + let bits = footprint(dx).max(footprint(dy)).max(diagonal).max(1.0).to_bits(); + // The first measured half-level boundary is 1 + 53/128 and repeats at each power of two. + let exponent = (bits >> 23).saturating_sub(127); + (exponent + u32::from(bits & 0x7f_ffff >= 53 << 16)).min(13) as usize +} + +fn sample(image: &Image, local: [f32; 2], format: OutputFormat, nearest: bool) -> [f32; 4] { let uv = local.map(|axis| axis * 0.5 + 0.5); if nearest { if uv.iter().all(|v| (0.0..1.0).contains(v)) { image.sample_nearest_axes(uv[0], uv[1], [false; 2]) } else { [0.0; 4] } diff --git a/crates/nodes/src/pattern/coordinates.rs b/crates/nodes/src/pattern/coordinates.rs index 296b998b..3e5628c4 100644 --- a/crates/nodes/src/pattern/coordinates.rs +++ b/crates/nodes/src/pattern/coordinates.rs @@ -116,6 +116,23 @@ impl PixelPlanes { } pub fn row(&self, y: u32) -> impl Fn(u32) -> Option<[f32; 2]> + '_ { + let sample = self.unclipped_row(y); + let aligned = matches!(self.mapping, Mapping::Aligned { .. }); + move |x| { + let uv = sample(x); + (aligned || uv.iter().all(|v| v.abs() <= 1.0)).then_some(uv) + } + } + + /// Texture gradients include the neighboring lanes even when they fall outside the stamp. + pub fn quad_gradients(&self, [x, y]: [u32; 2]) -> [[f32; 2]; 2] { + let top = self.unclipped_row(y); + let uv = |point: [f32; 2]| point.map(|v| v * 0.5 + 0.5); + let origin = uv(top(x)); + [uv(top(x + 1)), uv(self.unclipped_row(y + 1)(x))].map(|neighbor| [neighbor[0] - origin[0], neighbor[1] - origin[1]]) + } + + fn unclipped_row(&self, y: u32) -> impl Fn(u32) -> [f32; 2] + '_ { let vertical = match &self.mapping { Mapping::Aligned { axes, .. } => [f64::from(axes[1].sample(y)), 0.0], Mapping::Oblique { planes, origin } => planes.each_ref().map(|plane| plane.y_term(y, f64::from(y) + 0.5 - origin[1])), @@ -124,12 +141,11 @@ impl PixelPlanes { Mapping::Aligned { axes, swap } => { let u = axes[0].sample(x); let v = vertical[0] as f32; - Some(if *swap { [v, u] } else { [u, v] }) + if *swap { [v, u] } else { [u, v] } } Mapping::Oblique { planes, origin } => { let dx = f64::from(x) + 0.5 - origin[0]; - let uv: [f32; 2] = std::array::from_fn(|i| planes[i].sample(x, dx, vertical[i])); - uv.iter().all(|v| v.abs() <= 1.0).then_some(uv) + std::array::from_fn(|i| planes[i].sample(x, dx, vertical[i])) } } } diff --git a/crates/nodes/src/pattern/raster.rs b/crates/nodes/src/pattern/raster.rs index 57d72152..0a2c37ce 100644 --- a/crates/nodes/src/pattern/raster.rs +++ b/crates/nodes/src/pattern/raster.rs @@ -81,12 +81,15 @@ pub(super) fn render(context: &CookContext, groups: [&[PatternStamp]; 5], max_de if authored_alpha == 0.0 && matches!(stamp.pattern, 2..=16 | 18) { continue; } - let texture = if stamp.pattern >= 256 { + let mut texture = if stamp.pattern >= 256 { let index = (stamp.pattern - 256) as usize + 1; let Some(input) = context.input(index).filter(|image| image.kind() == kind) else { continue }; let format = context.input_formats.get(index).copied().unwrap_or(if input.integer_sampling() { OutputFormat::U16 } else { OutputFormat::F32 }); - let level = if stamp.filtering == 0 { bitmap::mip_level(input, stamp.size, pixel_size, frame.sine, frame.cosine) } else { 0 }; - Some((mipmaps.image(index, input, format, level)?, format)) + let gradients = [ + [frame.cosine * pixel_size[0] / stamp.size[0], -frame.sine * pixel_size[0] / stamp.size[1]], + [frame.sine * pixel_size[1] / stamp.size[0], frame.cosine * pixel_size[1] / stamp.size[1]], + ]; + Some(bitmap::Sampler::new(input, index, format, stamp.filtering, gradients)) } else { None }; @@ -110,6 +113,9 @@ pub(super) fn render(context: &CookContext, groups: [&[PatternStamp]; 5], max_de } budget = budget.checked_sub(samples).ok_or("pattern rendering exceeded its pixel budget")?; let planes = PixelPlanes::new(&frame, &render_region, center, stamp.size, [width, height]); + if let Some(sampler) = &mut texture { + sampler.start_copy(); + } let [[left, right], [top, bottom]] = planes.as_ref().map_or(bounds, |p| p.clip(bounds)); for y in top..bottom { let row = planes.as_ref().map(|planes| planes.row(y)); @@ -122,8 +128,8 @@ pub(super) fn render(context: &CookContext, groups: [&[PatternStamp]; 5], max_de }; let Some(local) = local else { continue }; - let (foreground, stamp_alpha) = if let Some((input, format)) = &texture { - let sample = bitmap::sample(input, local, *format, stamp.filtering == 2).map(flush_subnormal); + let (foreground, stamp_alpha) = if let Some(sampler) = &mut texture { + let sample = sampler.sample(local, [x, y], planes.as_ref(), &mut mipmaps)?.map(flush_subnormal); if kind == Kind::Gray { ([(sample[0] - 1.0).mul_add(alpha, alpha); 4], 1.0) } else { diff --git a/crates/nodes/src/pattern/tests.rs b/crates/nodes/src/pattern/tests.rs index 1fdd5cd3..1762b0de 100644 --- a/crates/nodes/src/pattern/tests.rs +++ b/crates/nodes/src/pattern/tests.rs @@ -1485,7 +1485,7 @@ fn image_indices_outside_the_supported_range_return_an_error() { fn render_bitmap( input: craft_texture::Image, format: materialcraft_core::OutputFormat, - size: u32, + [width, height]: [u32; 2], stamp: &[(&str, Value)], controls: &[(&str, Value)], ) -> craft_texture::Image { @@ -1496,8 +1496,8 @@ fn render_bitmap( let mut params = BTreeMap::from([("pattern".into(), Value::PatternGraph(Box::new(graph)))]); params.extend(controls.iter().map(|(k, v)| ((*k).into(), v.clone()))); let context = CookContext { - w: size, - h: size, + w: width, + h: height, seed: 0, format: materialcraft_core::OutputFormat::F32, tile: false, @@ -1523,7 +1523,7 @@ fn an_unbound_image_selector_keeps_the_fixed_slot() { selector.output = Some(selector.add("add", &[index, step], None)); } let stamp = [("patterntype", Value::Int(pattern)), ("imageindex", Value::Function(Box::new(selector)))]; - let image = render_bitmap(source.clone(), OutputFormat::F32, 4, &stamp, &[("color_mode", Value::Bool(false))]); + let image = render_bitmap(source.clone(), OutputFormat::F32, [4; 2], &stamp, &[("color_mode", Value::Bool(false))]); assert_eq!(image.get_gray(2, 2, false), expected, "pattern {pattern}, offset {offset:?}"); } } @@ -1540,7 +1540,7 @@ fn bitmap_stamp_filters_use_the_selected_source_level() { if let Some(mode) = mode { stamp.push(("imagefiltering", Value::Int(mode))); } - let image = render_bitmap(input.clone(), OutputFormat::U8, 64, &stamp, &[("color_mode", Value::Bool(false))]); + let image = render_bitmap(input.clone(), OutputFormat::U8, [64; 2], &stamp, &[("color_mode", Value::Bool(false))]); for (x, bits) in [32, 33].into_iter().zip(expected) { assert_eq!(image.get_gray(x, 32, false).to_bits(), bits, "filter {mode:?}, x {x}"); } @@ -1548,11 +1548,35 @@ fn bitmap_stamp_filters_use_the_selected_source_level() { for (angle, expected) in [(0.0625, 0x3f2f57af), (0.125, 0x3f0b1f8b)] { let stamp = [("patternsize", Value::Float2([0.17, 1.0])), ("frameoffset", Value::Float2([0.07125, -0.0390625])), ("patternrotation", Value::Float(angle))]; - let image = render_bitmap(input.clone(), OutputFormat::U8, 64, &stamp, &[("color_mode", Value::Bool(false))]); + let image = render_bitmap(input.clone(), OutputFormat::U8, [64; 2], &stamp, &[("color_mode", Value::Bool(false))]); assert_eq!(image.get_gray(36, 29, false).to_bits(), expected, "angle {angle}"); } } +#[test] +fn automatic_bitmap_mips_use_texel_gradients_from_neighboring_pixels() { + use materialcraft_core::OutputFormat; + + for (canvas, size, turn, points) in [ + ([128, 32], [0.1767934, 0.38444963], 0.00014097655, &[(64, 16, 0x3ee1_d8e2)][..]), + ([64, 64], [0.17683654, 0.3839], 0.0005, &[(32, 32, 0x3ed0_40d0)][..]), + ([128, 32], [0.10727861, 0.12664622], 0.48012114, &[(64, 16, 0x3ef4_f4f4)][..]), + ([256, 128], [0.17679575, 0.24720412], 0.00014, &[(128, 64, 0x3e8b_bc8c), (128, 63, 0x3f09_4d89)][..]), + ] { + let input = craft_texture::Image::gray(canvas[0], canvas[1], |x, y| { + let band = |dx, dy| (x / dx + y / dy) & 1_u32; + let byte = 6 + 64 * band(1, 1) + 48 * band(2, 2) + 36 * band(4, 4) + 32 * band(8, 8) + 28 * band(16, 8) + 24 * band(32, 8); + byte as f32 / 255.0 + }) + .with_integer_sampling(true); + let stamp = [("patternsize", Value::Float2(size)), ("patternrotation", Value::Float(turn))]; + let image = render_bitmap(input, OutputFormat::U8, canvas, &stamp, &[("color_mode", Value::Bool(false))]); + for &(x, y, expected) in points { + assert_eq!(image.get_gray(x, y, false).to_bits(), expected, "{canvas:?} at ({x},{y})"); + } + } +} + #[test] fn bitmap_stamp_filters_include_the_last_interpolated_texel() { use materialcraft_core::OutputFormat; @@ -1566,7 +1590,7 @@ fn bitmap_stamp_filters_include_the_last_interpolated_texel() { ("patternsize", Value::Float2([0.135_416_67, 0.8125])), ("imagefiltering", Value::Int(mode)), ]; - let image = render_bitmap(input.clone(), OutputFormat::U8, 32, &stamp, &controls); + let image = render_bitmap(input.clone(), OutputFormat::U8, [32; 2], &stamp, &controls); assert_eq!(image.get_gray(1, 1, false).to_bits(), expected, "filter {mode}"); } } @@ -1579,7 +1603,7 @@ fn bitmap_stamp_requires_an_input_matching_the_output_kind() { let background = [0.125, 0.5, 0.875, 0.75]; for (kind, color_output) in [(Kind::Color, false), (Kind::Gray, true)] { let controls = [("color_mode", Value::Bool(color_output)), ("background", Value::Color(background))]; - let image = render_bitmap(Image::filled(4, 4, kind, [1.0; 4]), OutputFormat::F32, 4, &[], &controls); + let image = render_bitmap(Image::filled(4, 4, kind, [1.0; 4]), OutputFormat::F32, [4; 2], &[], &controls); let expected = if color_output { background } else { [0.5, 0.5, 0.5, 1.0] }; assert_eq!(image.get(2, 2, false), expected); } @@ -1655,7 +1679,7 @@ fn bitmap_stamp_tint_and_coverage_compose_straight_and_premultiplied_colors() { ("imagepremul", Value::Bool(premultiplied)), ("imagefiltering", Value::Int(2)), ]; - let image = render_bitmap(Image::filled(1, 1, Kind::Color, source), OutputFormat::F32, 1, &stamp, &controls); + let image = render_bitmap(Image::filled(1, 1, Kind::Color, source), OutputFormat::F32, [1; 2], &stamp, &controls); assert_eq!(image.get(0, 0, false).map(f32::to_bits), expected, "blend {blend}, premultiplied {premultiplied}"); } } @@ -1674,13 +1698,13 @@ fn bitmap_stamp_blend_preserves_guard_bits_during_cancellation() { (2, [0x34f98400, 0x3a61d400, 0x364a3400, 0x388c5c00]), ] { let stamp = [("imagefiltering", Value::Int(2)), ("imagepremul", Value::Bool(true)), ("blendingmode", Value::Int(mode))]; - let image = render_bitmap(Image::filled(1, 1, Kind::Color, source), OutputFormat::F32, 1, &stamp, &controls); + let image = render_bitmap(Image::filled(1, 1, Kind::Color, source), OutputFormat::F32, [1; 2], &stamp, &controls); assert_eq!(image.get(0, 0, false).map(f32::to_bits), expected, "blend {mode}"); } let controls = [("color_mode", Value::Bool(true)), ("background", Value::Color([-0.0; 4]))]; for mode in 0..=2 { let stamp = [("imagefiltering", Value::Int(2)), ("blendingmode", Value::Int(mode))]; - let image = render_bitmap(Image::filled(1, 1, Kind::Color, [0.0; 4]), OutputFormat::F32, 1, &stamp, &controls); + let image = render_bitmap(Image::filled(1, 1, Kind::Color, [0.0; 4]), OutputFormat::F32, [1; 2], &stamp, &controls); assert_eq!(image.get(0, 0, false).map(f32::to_bits), [(-0.0_f32).to_bits(); 4]); } } diff --git a/docs/parity-fixes.md b/docs/parity-fixes.md index 5ae994a2..301f57a6 100644 --- a/docs/parity-fixes.md +++ b/docs/parity-fixes.md @@ -795,6 +795,27 @@ For roots 365, 366, 382, 383 and 538, the new series uses the following dimensio In Pattern Weave 2, the largest difference occurs at 512×128, scale 13, disorder .5625, rotation off and expansion on. F32 matched 35,158/65,536 pixels there with maximum .96903944. In Weave 2 the 128² default F32 render matched 16,128/16,384 with maximum .0000152587891. Both original/reopened pairs reproduced their own outputs at these settings. [Earlier stage measurements](#tile-weave-splatter-and-fiber-stage-comparisons) +### Automatic bitmap stamp levels at neighboring pixels + +The color tile patch now matches all 3,966,976 pixels in its previous 71 settings. That includes the 326 differing U16 pixels and 326 differing F32 pixels at 512×128. Both patch roots match on 99 of 103 distinct settings. Each differs in the four storage formats at a new 1024×512 setting. Count one pixel when all channels match, including F32 bits. Integer maxima are in stored levels. + +| Root (inventory index) | Distinct settings | U8 exact / total · max | U16 exact / total · max | F16 exact / total · max | F32 exact / total · max | +|---|---:|---:|---:|---:|---:| +| Tile patch, color (202) | 103 | 1,492,629/1,494,272 · 1 | 2,685,435/2,692,352 · 211 | 1,373,690/1,379,584 · 0.00341796875 | 2,686,459/2,693,376 · 0.0032196641 | +| Tile patch, grayscale (203) | 103 | 1,492,645/1,494,272 · 1 | 2,680,462/2,692,352 · 212 | 1,371,196/1,379,584 · 0.00341796875 | 2,681,149/2,693,376 · 0.00324004889 | + +The 36 additional renders use 64², 128×32, 64×256, 256×64, 128×512, 512×128, 512×256, 256×512, 512², 1024×256, 256×1024 and 1024×512. Use d = (default,.03125,.84375,.21875,.5625,.28125,.46875,.09375,default,.71875,.34375,.90625). Use the public control mappings and original fields from the [previous patch measurements](#tile-patch-inputs-and-scratch-color-precision) with the octave index j modulo 10. Leave Source disconnected at j=0, otherwise take field (j+1) modulo 6. Use seed 0 at j=0 and 8, seed 17884 at j=5, and 451749+31j otherwise. Render U16 and F32 throughout, adding U8 and F16 at j=0,1,4,5,8,11. Both applications reopened each saved graph and reproduced the original on 5,341,184/5,341,184 pixels in these 36 cases. The earlier 30- and 32-setting saves also reproduced every pixel within each application. + +Automatic image stamps choose a stored level from texture-coordinate differences measured across a two-by-two pixel group. Each group uses its top-left, top-right and bottom-left coordinates, including neighbors outside the drawn shape. To distinguish levels, generate a U8 field starting at 6. Add 64,48,36,32,28,24 when the sum of the two integer coordinate quotients for divisors (1,1),(2,2),(4,4),(8,8),(16,8),(32,8) respectively is odd. For manual levels replace each two-by-two block by the integer quotient of its sum plus two divided by four. At 256×128 center the stamp at (.5,.5), use size (.17679575,.24720412) and .00014 turns. Of the 1,466 pixels that distinguish levels two and three, 1,073 choose level two and 393 choose level three. An independently written graphics-device probe matched all 32,768 pixels with the shared group derivatives. Per-pixel derivatives reproduced 32,703. + +Across 139 stamp settings the new path matches 2,105,344/2,105,344 pixels. A second series near level transitions matches 2,457,600/2,457,600 across 180 settings. The 180 independent manual-level renders also match 2,457,600/2,457,600. The native F32 values at (128,64) and (128,63) in the fixed 256×128 graph are \`3e8bbc8c\` and \`3f094d89\`. Four fixed graphs used in the failing regression match 45,056/45,056. The 18 root controls covering repeat renders, changed seeds, zeroed individual controls, and solid, transparent or patterned inputs match 1,179,648/1,179,648. Both packaged Tile helpers retained their existing pixel and file-reopen matches. The 471 archived bitmap graphs retained 4,801,398/4,821,760 exact pixels across 1,213 renders. Each graph retained its previous exact count and maximum in every measured format. + +For a separate device-level stress test, sample a mip chain whose level identifies itself, choosing a derivative magnitude near a half-level threshold. The footprint reproduced 16,384/16,384 level choices for one screen direction and 16,384/16,384 for collinear derivatives in a single texture coordinate. It reproduced 15,483/16,384 when both screen derivatives were the same two-component vector and 15,876/16,384 for two independent vectors. Remaining diagonal threshold differences are open. + +At 1024×512 the first difference in the color root is the last directional blur (1041413498). It matches 18,310/524,288 U16 pixels, maximum 348. Its lower-resolution input matches all 131,072 U8 pixels. The following warp matches 523,419/524,288 U8 pixels, maximum one. The bitmap map then matches 517,371/524,288 U16 pixels, maximum 211. At the earlier 512×128 disagreement both the bitmap map and its final transform now match in full. At the 512² default the last blur still differs at 35 U16 pixels by one level, and the final color image matches. + +All 310 release node tests, formatting, strict workspace Clippy, dependency layers and WebAssembly passed. Seven alternating single-worker release runs gave median cook times of 326 to 328 ms for color at 512×128, 1,828 to 1,897 ms for color at 512², 1,839 to 1,813 ms for grayscale at 512² and 26.2 to 25.1 ms for the rectangular Tile helper. + ### Short directional blur tap order on rectangular inputs Fluid matches **25,969,920/25,969,920 final pixels across 121 distinct settings** through 2048 pixels per side. Both applications reopened the MaterialCraft package and reproduced every pixel of their originals over 28, 38 and 36 settings (498,688, 8,654,848 and 17,588,224 pixels). The three instrumented renders at 512×1024, 1024×512 and 1024² match 9,961,472/9,961,472 intermediate and final samples. [First differing stage and earlier settings](#fibers-1-and-fluid-through-1024-pixels-per-side) diff --git a/docs/sbs-root-nodes.md b/docs/sbs-root-nodes.md index 475b7261..219a6158 100644 --- a/docs/sbs-root-nodes.md +++ b/docs/sbs-root-nodes.md @@ -35,7 +35,7 @@ A graph may accept input pins and still be a root under the dependency criterion Statuses: **Not checked**, **In progress**, **Parity** (exact pixels or typed values for the linked measured cases), or **Too hard** (reason recorded). Function calls do not count as regular graph dependencies. -The first pass covered all **546 roots**, with **166 Parity** and **380 Too hard**. The current inventory has **410 Parity**, **136 In progress** and **0 Too hard**. The November 17–20 comparisons include raw counts, output formats and remaining differences. [November 17 measurements](parity-fixes.md#2026-11-17-root-comparisons) · [November 18 measurements](parity-fixes.md#2026-11-18-root-comparisons) · [November 19 measurements](parity-fixes.md#2026-11-19-root-comparisons) · [November 20 measurements](parity-fixes.md#2026-11-20-root-comparisons) +The first pass covered all **546 roots**, with **166 Parity** and **380 Too hard**. The current inventory has **409 Parity**, **137 In progress** and **0 Too hard**. The November 17–20 comparisons include raw counts, output formats and remaining differences. [November 17 measurements](parity-fixes.md#2026-11-17-root-comparisons) · [November 18 measurements](parity-fixes.md#2026-11-18-root-comparisons) · [November 19 measurements](parity-fixes.md#2026-11-19-root-comparisons) · [November 20 measurements](parity-fixes.md#2026-11-20-root-comparisons) [Pattern tiling axes and copy bounds across 215 renders](parity-fixes.md#tiling-axes-and-pattern-copy-bounds) · [Grayscale sampler measurements](parity-fixes.md#grayscale-sampling-of-color-inputs) · [Value sampling across 240 typed comparisons](parity-fixes.md#value-processor-texture-filtering) · [Five saved graphs reopened in the reference](parity-fixes.md#saved-filter-graphs-and-scalar-levels-controls) @@ -301,8 +301,8 @@ Creased matches 10,947,840/10,947,840 pixels across 100 distinct settings throug | [linear_srgb_conversion.sbs/convert_to_linear_grayscale](../assets/sbs/linear_srgb_conversion.sbs) | 1 | Yes | [Parity: 4 cases](parity-fixes.md#verified-cases) | | [linear_srgb_conversion.sbs/convert_to_srgb](../assets/sbs/linear_srgb_conversion.sbs) | 1 | Yes | [Parity: 4 cases](parity-fixes.md#verified-cases) | | [linear_srgb_conversion.sbs/convert_to_srgb_grayscale](../assets/sbs/linear_srgb_conversion.sbs) | 1 | Yes | [Parity: 4 cases](parity-fixes.md#verified-cases) | -| [make_it_tile_patch.sbs/make_it_tile_patch](../assets/sbs/make_it_tile_patch.sbs) | 1 | No | [In progress · 3,966,324/3,966,976 pixels across 71 distinct settings](parity-fixes.md#tile-patch-inputs-and-scratch-color-precision) | -| [make_it_tile_patch_grayscale.sbs/make_it_tile_patch_grayscale](../assets/sbs/make_it_tile_patch_grayscale.sbs) | 1 | No | [Parity · 3,966,976/3,966,976 pixels across 71 distinct settings](parity-fixes.md#tile-patch-inputs-and-scratch-color-precision) | +| [make_it_tile_patch.sbs/make_it_tile_patch](../assets/sbs/make_it_tile_patch.sbs) | 1 | No | [In progress · 8,238,213/8,259,584 pixels across 103 distinct settings](parity-fixes.md#automatic-bitmap-stamp-levels-at-neighboring-pixels) | +| [make_it_tile_patch_grayscale.sbs/make_it_tile_patch_grayscale](../assets/sbs/make_it_tile_patch_grayscale.sbs) | 1 | No | [In progress · 8,225,452/8,259,584 pixels across 103 distinct settings](parity-fixes.md#automatic-bitmap-stamp-levels-at-neighboring-pixels) | | [material_switch.sbs/material_switch](../assets/sbs/material_switch.sbs) | 24 | No | [Parity: 4 cases](parity-fixes.md#verified-cases) | | [material_transforms.sbs/material_transforms](../assets/sbs/material_transforms.sbs) | 5 | Yes | [Parity · 856,320 exact pixels across every output](parity-fixes.md#material-bundles-and-the-eighth-irradiance-pass) | | [me_water_level.sbs/scratches_2](../assets/sbs/me_water_level.sbs) | 0 | Yes | [In progress · 3,996,920/3,996,928 pixels across 82 distinct settings](parity-fixes.md#tile-patch-inputs-and-scratch-color-precision) |