diff --git a/crates/eval/src/node_execution.rs b/crates/eval/src/node_execution.rs index e60e4cd5..7ac82a64 100644 --- a/crates/eval/src/node_execution.rs +++ b/crates/eval/src/node_execution.rs @@ -58,6 +58,7 @@ pub(crate) fn cook_node( let mut incoming = Vec::new(); let mut input_keys = Vec::new(); let mut base_level_only = [false; materialcraft_nodes::MAX_IMAGE_INPUTS + 1]; + let mut background_source = None; let mut variables = std::borrow::Cow::Borrowed(graph_variables); let mut fixed = std::borrow::Cow::Borrowed(options.literal_inputs.as_slice()); let mut input_error = None; @@ -99,6 +100,13 @@ pub(crate) fn cook_node( && let Some(level) = base_level_only.get_mut(incoming.len()) { *level = wired.map_or(matches!(output, Some(NodeOutput::BaseLevel(_))), |(_, _, base_level)| base_level); + if port.id == "background" { + background_source = if wired.is_some() { + connection.and_then(|edge| prepared.index.node(edge.from)).and_then(|bridge| options.input_bases.get(&identifier(bridge))).copied() + } else { + source.map(|(_, _, base)| base) + }; + } } let stored = source.and_then(|(output, _, base)| output.texture(base.format)); let image = wired.map(|(image, format, _)| (image, format)).or(stored); @@ -194,6 +202,7 @@ pub(crate) fn cook_node( || incoming.iter().flatten().any(|(_, source)| source.bound_image) }; let base = crate::ResolvedBaseParameters { bound_image, ..base }; + let background_tiling = background_source.filter(|source| source.dynamic_size == base.dynamic_size).map(|source| source.tiling); if matches!(node.def.as_str(), "blur" | "emboss") { variables.to_mut().insert("$pixelsize".into(), Value::Float2(base.pixel_size)); } @@ -231,7 +240,7 @@ pub(crate) fn cook_node( let key = hash_of(&( &node.def, serde_json::to_string(¶meters).unwrap_or_default(), - (dynamic_blend_opacity, bound_image), + (dynamic_blend_opacity, bound_image, background_tiling), ( w, h, @@ -309,6 +318,11 @@ pub(crate) fn cook_node( values }) } else if let Some(definition) = definition { + if let (Some(tiling), Some(Some(image)), Some(&source)) = (background_tiling, inputs.first_mut(), input_formats.first()) + && let Some(filtered) = materialcraft_nodes::pattern::direct_background_sample(image, (w, h), source, tiling) + { + *image = filtered; + } if base.format == OutputFormat::F16 && matches!(node.def.as_str(), "blend" | "fx_map") { // Blend inputs and pattern backgrounds cross a half-storage boundary when only one size is parameter-controlled. // Images stamped by a pattern keep their sampling precision. diff --git a/crates/eval/src/tests.rs b/crates/eval/src/tests.rs index 0a4c56ab..a6edfaf0 100644 --- a/crates/eval/src/tests.rs +++ b/crates/eval/src/tests.rs @@ -1183,6 +1183,91 @@ fn half_pattern_backgrounds_store_integer_inputs_on_different_size_paths() { } } +#[test] +fn untiled_pattern_backgrounds_sample_directly_on_the_same_size_path() { + use materialcraft_core::{BaseParameter, FunctionGraph, OutputFormat, ParameterInheritance, PatternGraph, PatternNodeKind, SizeMode}; + + let mut graph = Graph::new("Resized pattern background"); + graph.size = [4, 5]; + graph.format = OutputFormat::U8; + let input = graph.add_node("input_grayscale", [0.0; 2]); + let background = graph.add_node("fx_map", [0.0; 2]); + let draw = graph.add_node("fx_map", [0.0; 2]); + let levels = graph.add_node("levels", [0.0; 2]); + for id in [input, background, levels] { + let base = &mut graph.node_mut(id).unwrap().base; + base.size_mode = SizeMode::RelativeToParent; + base.size = [-1, -1]; + } + for id in [background, draw] { + let mut pattern = PatternGraph::with_root(PatternNodeKind::Quadrant); + if id == draw { + let stamp = &mut pattern.nodes[0].parameters; + stamp.insert("patterntype".into(), Value::Int(2)); + stamp.insert("opacity".into(), Value::Float4([0.10067749, 0.10067749, 0.10067749, 1.0])); + } + let node = graph.node_mut(id).unwrap(); + node.params.insert("pattern".into(), Value::PatternGraph(Box::new(pattern))); + node.params.insert("color_mode".into(), Value::Bool(false)); + } + graph.connect(input, "output", background, "background").unwrap(); + graph.connect(background, "output", levels, "input").unwrap(); + let mut package = Package::new("Pattern sample precision"); + package.graphs.push(graph); + let mut options = Options::new(&no_res); + options.inputs.insert("input".into(), Image::gray(8, 16, |x, y| ((47 * x + 83 * y + 11 * x * y + 849807) % 256) as f32 / 255.0)); + options.overrides.insert("gain".into(), Value::Float(0.375)); + let cache = Mutex::new(Cache::default()); + + let fixed = FunctionGraph::constant(Value::Int2([0, 0])); + let exposed = unchanged_size_after_read("get_float1", "gain"); + for (source, tiling, size, byte, half, corner) in [ + (input, [false, false], &fixed, 128.0, 0.5317383, 169.0), + (background, [false, false], &fixed, 128.0, 0.5317383, 169.0), + (background, [true, false], &fixed, 129.0, 0.53125, 171.0), + (levels, [false, false], &fixed, 128.0, 0.5317383, 169.0), + (levels, [true, true], &fixed, 129.0, 0.53125, 171.0), + (background, [false, false], &exposed, 129.0, 0.53125, 171.0), + ] { + let graph = &mut package.graphs[0]; + graph.connect(source, "output", draw, "background").unwrap(); + let base = &mut graph.node_mut(source).unwrap().base; + base.tiling_mode = ParameterInheritance::Absolute; + base.tiling = tiling; + let base = &mut graph.node_mut(draw).unwrap().base; + base.tiling_mode = ParameterInheritance::Absolute; + base.tiling = [true, true]; + base.size_mode = SizeMode::RelativeToParent; + base.functions.insert(BaseParameter::OutputSize, size.clone()); + for (format, x, expected) in [(OutputFormat::U8, 2, byte / 255.0), (OutputFormat::F16, 4, half)] { + package.graphs[0].node_mut(draw).unwrap().base.format = format; + let result = cook(&package, 0, &options, &cache); + assert!(result.nodes.values().all(|node| node.error.is_none())); + let pixels = result.image(draw, 0).unwrap(); + assert_eq!(pixels.get_gray(x, 2, false), expected, "{format:?}"); + if format == OutputFormat::U8 { + assert_eq!(pixels.get_gray(0, 0, false), corner / 255.0); + } + } + } + + // Enlarge only Y. Repeating X still permits a direct sample. + let graph = &mut package.graphs[0]; + graph.connect(input, "output", draw, "background").unwrap(); + graph.node_mut(input).unwrap().base.size = [0, -1]; + let draw_base = &mut graph.node_mut(draw).unwrap().base; + draw_base.tiling = [false, false]; + draw_base.format = OutputFormat::U8; + draw_base.functions.insert(BaseParameter::OutputSize, fixed); + options.inputs.insert("input".into(), Image::gray(16, 16, |x, y| ((47 * x + 83 * y + 11 * x * y + 849807) % 256) as f32 / 255.0)); + for (source_tiling, byte) in [([true, false], 149.0), ([false, true], 150.0)] { + package.graphs[0].node_mut(input).unwrap().base.tiling = source_tiling; + let result = cook(&package, 0, &options, &cache); + assert!(result.nodes.values().all(|node| node.error.is_none())); + assert_eq!(result.image(draw, 0).unwrap().get_gray(2, 2, false), byte / 255.0); + } +} + #[test] fn connected_input_sizes_share_the_last_two_dimensional_filter_pass() { use materialcraft_core::{OutputFormat, SizeMode}; diff --git a/crates/nodes/src/atomic/input_resize.rs b/crates/nodes/src/atomic/input_resize.rs index 8b1122bc..0d4206ac 100644 --- a/crates/nodes/src/atomic/input_resize.rs +++ b/crates/nodes/src/atomic/input_resize.rs @@ -15,6 +15,20 @@ pub(crate) fn resized_input(context: &CookContext, port: usize, mode: InputResiz resized_texture(context, port, mode).map(|(image, _)| image) } +/// A single filter pass can draw from clamped samples unless an enlarged axis repeats. +/// A longer resize stores its intermediate textures before drawing. +pub fn direct_background_sample(image: &Image, target: (u32, u32), source: OutputFormat, tiling: [bool; 2]) -> Option { + let size = (image.width(), image.height()); + let enlarged_tiled_axis = (target.0 > size.0 && tiling[0]) || (target.1 > size.1 && tiling[1]); + if size == target || enlarged_tiled_axis || crate::texture_sampler::next_filter_size(size, target) != target { + return None; + } + let image = prepare_pattern_background(image.clone(), InputResize::PatternBackground, source, false); + let filtered = crate::texture_sampler::resize_input_level(&image, target.0, target.1, source, [false; 2]); + let enlarged = target.0 > size.0 || target.1 > size.1; + Some(prepare_pattern_background(filtered, InputResize::PatternBackground, source, enlarged)) +} + pub(super) fn blur_input(context: &CookContext, intensity: f32) -> (Image, OutputFormat) { // A zero intensity copies through the destination format. Even a subpixel blur uses the working precision. let mode = if intensity == 0.0 { InputResize::Copy } else { InputResize::Filter }; diff --git a/crates/nodes/src/pattern/mod.rs b/crates/nodes/src/pattern/mod.rs index 983863c7..43b4aecd 100644 --- a/crates/nodes/src/pattern/mod.rs +++ b/crates/nodes/src/pattern/mod.rs @@ -18,6 +18,7 @@ mod tile_runs; mod underfilled_quadrants; mod variables; +pub use crate::atomic::input_resize::direct_background_sample; pub use catalog::{definition, definitions}; pub(crate) use evaluation::cook; pub use evaluation::{cook_with_base_level_inputs, cook_with_bound_properties, cook_with_image_dependencies}; diff --git a/docs/parity-fixes.md b/docs/parity-fixes.md index bed5494a..bb4561d6 100644 --- a/docs/parity-fixes.md +++ b/docs/parity-fixes.md @@ -59,6 +59,43 @@ The first pass classifies all 546 roots: 166 Parity and 380 Too hard. These meas ## 2026-11-26 root comparisons +### Filtering a resized pattern background on each axis + +An FX-Map can draw over a clamped, filtered background sample before that sample is rounded to the working texture format. This occurs for a single resize step when the source and receiver sizes are both fixed or both parameter-controlled. Check the connected source's tiling on each axis that grows. If any growing axis repeats, the background is first filtered and stored using the receiver's tiling. A reduction can take the direct path even if its axis repeats. A longer resize or a change between fixed and parameter-controlled sizing keeps the intermediate storage. + +Open Noise Dirt Gradient v2, turn off graph tiling and enable non-square expansion. Use 16 × 32, seed 649211 and disorder .3125, then 32 × 64, seed 649229 and disorder .78125. Keep the other exposed values at their defaults. Set the final FX-Map's stored format as shown. Save normally outside the library, reopen in both applications, and compare the raw grayscale outputs. Each cell gives exact pixels / pixels compared and maximum absolute error. Integer errors are in storage levels. + +| Size · storage | Earlier on one processor | Corrected on one | Corrected on eight | Ordinary save on one | +|---|---:|---:|---:|---:| +| 16 × 32 · U8 | 425/512 · 1 | 512/512 · 0 | 512/512 · 0 | 512/512 · 0 | +| 16 × 32 · U16 | 512/512 · 0 | 512/512 · 0 | 512/512 · 0 | 512/512 · 0 | +| 16 × 32 · F16 | 366/512 · 0.00048828125 | 512/512 · 0 | 512/512 · 0 | 512/512 · 0 | +| 16 × 32 · F32 | 400/512 · 1.78813934e-07 | 400/512 · 1.78813934e-07 | 423/512 · 1.1920929e-07 | 399/512 · 1.78813934e-07 | +| 32 × 64 · U8 | 1,613/2,048 · 1 | 2,048/2,048 · 0 | 2,048/2,048 · 0 | 2,048/2,048 · 0 | +| 32 × 64 · U16 | 2,047/2,048 · 1 | 2,047/2,048 · 1 | 2,048/2,048 · 0 | 2,047/2,048 · 1 | +| 32 × 64 · F16 | 1,506/2,048 · 0.00048828125 | 2,048/2,048 · 0 | 2,047/2,048 · 0.00048828125 | 2,048/2,048 · 0 | +| 32 × 64 · F32 | 1,560/2,048 · 2.38418579e-07 | 1,560/2,048 · 2.38418579e-07 | 1,680/2,048 · 2.38418579e-07 | 1,556/2,048 · 2.98023224e-07 | + +The U8 and F16 originals each match 2,560/2,560 pixels on one processor, up from 2,038 and 1,872. Both formats also match all 2,560 pixels after saving. The previous run matched one of eight complete originals on one processor. The corrected scores are 5/8 · 9,639/10,240 on one processor, 5/8 · 9,782/10,240 on eight, and 5/8 · 9,634/10,240 for ordinary saves. Every reopened local buffer reproduces its original. On the 32 × 64 original, one U16 pixel differs by one level on one processor and one F16 pixel differs by 0.00048828125 on eight. Both F32 sizes still differ. + +Repeat the F32 read twice more on one processor and twice more on eight, reversing the geometry order on eight. Across seven captures per geometry, including the ordinary save, the reference returns the same word at 332 of 512 locations in the smaller rectangle and 1,316 of 2,048 in the larger. MaterialCraft matches 331 and 1,295 of those invariant words. At 21 and 101 locations its word differs from every captured value. The largest distance to the nearest observed value is 5.96046448e−08 and 1.19209290e−07, respectively. + +For a small independent probe, fill a grayscale U8 image with (47x + 83y + 11xy + seed) modulo 256. Connect it as the background of a gray FX-Map. Use one additive square, size (1,1), zero offset and rotation, unit opacity multiplier and a literal gray swatch .100677490234375 with alpha one. Use destinations 16 × 32 and 32 × 16 with seeds 849807 and 849829. Set the source and receiving sizes relative to their parent. A parameter-controlled comparison reads a .375 graph float before returning the same integer size offset. + +- At 16 × 32 with an 8 × 16 background, turn wrapping on for the receiver. An untiled source gives U8 byte 128 at (2,2) and F16 .53173828125 at (4,2). A two-axis repeating source gives 129 and .53125. The upper-left byte is 169 with the untiled source and 171 when both repeat. Direct input bridges, Levels and pattern outputs follow the connected texture's tiling. +- With a 16 × 16 background and wrapping off for the receiver, repeat X alone and then Y alone. The two U8 bytes at (2,2) are 149 and 150. Only Y grows. Repeat for the transposed resize, a reduction on either or both axes, simultaneous enlargement and reduction, and sources four times larger or smaller. For each source/receiver mask pair, compare both the draw and its source read. +- Repeat the grayscale field using seeds 723101 and 723119 and swatch .1005859375. For color, add 29 times the channel index before taking the byte remainder. Also test converted U16, F16 and F32 sources, a non-neutral Levels filter with output high .84375, blur intensity 2, and move either FX-Map into a graph instance. Compare the source and the drawn output independently before and after an ordinary save. + +| Independent comparisons in U8, U16, F16 and F32 | Settings | Drawn pixels · maximum | Connected source pixels · maximum | +|---|---:|---:|---:| +| Size expressions, procedural sources, filters and graph instances | 368 | 188,416/188,416 · 0 | 178,176/178,176 · 0 | +| Source and receiver tiling, formats and resize directions | 352 | 180,224/180,224 · 0 | 168,704/168,704 · 0 | +| Additional one-axis and mixed-axis geometries | 88 | 45,056/45,056 · 0 | 57,344/57,344 · 0 | + +The ordinary saves reproduce each entry in this table in both applications. At 16 × 32, seed 194488 and default parameters in tiled Noise BNW Spots 3 v2, the first FX-Map produces 32/32 exact bytes and the middle FX-Map 128/128. In a stage-only copy, turn off tiling on both nodes. Its U8 output improved from 102 to 128/128, and F16 from 80 to 128/128. The complete tiled U16 graph retains 511/512 on one processor, maximum one level, and 512/512 on eight. + +The previously verified Bevel Smooth debug position graph and its normal saves each match 354,560/354,560 · 0 across all 38 [RGBA settings](#texture-sampling-in-pattern-functions). At 64 × 64 and seed 42, seven previously verified roots also retain all 114,688 pixels across U8, U16, F16 and F32 on originals and ordinary saves. They are Make It Tile Patch and its grayscale version, Paths Trace, the grayscale graph in `pattern_tile_generator.sbs`, the `debug_hit_uv` output in `rt_irradiance.sbs`, and the standalone Tile Generator and Tile Generator Color graphs. Use the [changed-parameter precision settings](sbs-root-nodes.md#complete-inventory) for each. The new normal-cook regression covers a shared cache, input bridges, Levels, connected patterns and changes to just one tiling axis. All 575 node and evaluator release tests passed, along with formatting, strict workspace Clippy, layers and WebAssembly. + ### Ten recovered whole Noise Dirt 5 settings The shared pattern evaluator now produces images for 58 of the [60 original Noise Dirt 5 settings](#sixty-whole-settings-for-three-directional-and-dirt-noise-packages). The earlier comparison produced 48. Recook the twelve former execution errors on the normal release. Compare the stored grayscale words or floating-point values against the original one- and eight-processor reference captures. For each recovered setting also save the package normally, reopen it in both applications and compare against a fresh one-processor reference. Every local saved buffer reproduces its original raw hash. diff --git a/docs/sbs-root-nodes.md b/docs/sbs-root-nodes.md index 03b6735a..7abc42be 100644 --- a/docs/sbs-root-nodes.md +++ b/docs/sbs-root-nodes.md @@ -41,6 +41,8 @@ Writable quadrant tints now match 16,896/16,896 pixels in 44 settings across fou Six upstream filters now match 27,648/27,648 original and 27,648/27,648 reopened pixels across four output formats, up from 24,192 on each side. Both directions of an image connection through a graph instance also match 4,608/4,608 F32 pixels on each side. [Published filter properties, fixed controls and raw errors](parity-fixes.md#published-filter-properties-upstream-of-a-quadrant-draw) +Noise Dirt Gradient v2 matches both untiled U8 and F16 rectangles on one processor and after ordinary saves, 2,560/2,560 pixels in each format. Five of the eight whole settings match on each route. [Axis-specific background filtering, stored counts and remaining differences](parity-fixes.md#filtering-a-resized-pattern-background-on-each-axis) + Noise Dirt 5 now renders 58/60 settings in the original tiled series. Two formats at 128 × 32 still reach the execution guard. [Ten recovered images, ordinary saves and maximum errors](parity-fixes.md#ten-recovered-whole-noise-dirt-5-settings) Noise Dirt 1 matches all 43,008 pixels in 12 further settings and Noise Dirt 5 all 40,960 in eight, both on one processor and after ordinary saves. Noise Dirt 1 v2 at 64 × 32 also improved from 1,981 to 2,048 exact F32 pixels. [Tiled subtrees, threshold controls and eight-processor scores](parity-fixes.md#deferring-two-tiled-subtrees-until-a-quadrant-batch-fills) Noise Dirt 1 matches 41/60 ordinary tiled settings on one processor and 32/60 on eight. Noise Dirt 2 matches 53/60 on one and 51/60 on eight. Two wider Noise Dirt 1 originals match 10,239/10,240 F32 pixels on one processor. Their ordinary saves match all 10,240. [Receiving quadrant, independent fields and Noise Dirt 5 comparisons](parity-fixes.md#the-receiving-half-of-a-quadrant-in-two-tiled-trees) Three additional tall Noise Dirt 1 images and their saves match 43,008/43,008 F32 pixels on one processor. [Four-batch threshold and rectangular comparisons](parity-fixes.md#four-full-batches-in-two-tiled-quadrant-trees) [Two-tree tile copies, all formats and ordinary saves](parity-fixes.md#tiled-copies-across-two-complete-quadrant-trees) [Earlier tiled measurements](parity-fixes.md#fixed-image-draws-in-tiled-dirt-graphs) With graph tiling off, Noise Dirt 5 and Noise Dirt Gradient each match eight additional settings and their ordinary saves, 10,240/10,240 pixels per graph. [Five related roots, iteration counts and remaining errors](parity-fixes.md#whole-untiled-dirt-relatives-and-the-depth-seven-iteration) With graph tiling off, Dirt 1 matches all 13 original and reopened settings on one processor and all nine additional settings at three other seeds. [Two-tree order, raw counts and ordinary saves](parity-fixes.md#unfinished-draws-across-two-untiled-quadrant-trees) [Earlier single-tree comparisons](parity-fixes.md#fixed-image-draw-order-in-untiled-noise-dirt-1) In Dirt 1 at 128 × 256, all 32,764 locations shared by seven U16 reads now match. At (59,61) the five individual draws are each exact. Two signed controls independently confirm their order in the combined reference image. [Individual draw comparisons](parity-fixes.md#five-individual-image-draws-at-one-dirt-1-pixel) [Isolated drawing depths and raw values](parity-fixes.md#individual-drawing-depths-at-a-dirt-1-rounding-boundary) On Dirt 2 every one of the 785,643 invariant reference pixels is exact. [Complete render coverage, errors and timing](parity-fixes.md#complete-render-coverage-for-the-two-fixed-image-dirt-graphs) [Formats and repeat comparisons](parity-fixes.md#expanded-image-and-save-comparisons-for-dirt-1-and-dirt-2) Both measured Dirt 2 formats at 32 × 16 match all 512 original and reopened pixels. The Dirt 1 v2 rectangle still reaches its traversal limit. [Whole images and procedural input controls](parity-fixes.md#streaming-deep-quadrants-that-draw-the-same-connected-image) @@ -464,7 +466,7 @@ Creased matches 10,947,840/10,947,840 pixels across 100 distinct settings throug | [noise_dirt_5.sbs/dirt_5](../assets/sbs/noise_dirt_5.sbs) | 0 | Yes | [In progress · 58/60 tiled whole settings render, all ten recovered settings also measured after ordinary saves](parity-fixes.md#ten-recovered-whole-noise-dirt-5-settings) · [Earlier comparison · eight additional tiled settings and ordinary saves match 40,960/40,960 pixels on one processor, 4/8 settings on eight](parity-fixes.md#deferring-two-tiled-subtrees-until-a-quadrant-batch-fills) · [Earlier comparison · 8/8 additional untiled originals on one, 5/8 on eight, 8/8 ordinary saves](parity-fixes.md#whole-untiled-dirt-relatives-and-the-depth-seven-iteration) · [Earlier comparison · six of eight additional wide settings exact on one processor, both 128 × 64 formats match all 8,187 invariant locations](parity-fixes.md#the-receiving-half-of-a-quadrant-in-two-tiled-trees) · [Earlier comparison · 48/60 whole settings rendered, 701,551/701,696 pixels on one processor, 701,572 on eight](parity-fixes.md#sixty-whole-settings-for-three-directional-and-dirt-noise-packages) · [Recovered 32 × 16 F32 setting, 512/512 exact pixels on one processor](parity-fixes.md#rectangular-dirt-family-settings-recovered-by-the-shared-evaluator) · [Earlier comparison · 32² now exact](parity-fixes.md#deep-pattern-samples-in-custom-render-and-tiling-regions) · [Earlier matrix](parity-fixes.md#dirt-noise-sources-and-downstream-stages) · [64² precision and remaining traversal limits](parity-fixes.md#precision-of-two-dense-noise-generators-in-custom-regions) | | [noise_dirt_5_v2.sbs/dirt_5](../assets/sbs/noise_dirt_5_v2.sbs) | 0 | No | [In progress · 6/8 additional untiled originals on one, 6/8 on eight, 6/8 ordinary saves](parity-fixes.md#whole-untiled-dirt-relatives-and-the-depth-seven-iteration) · [Earlier comparison · 11/19 whole outputs, 107,341/107,776 pixels](parity-fixes.md#dirt-noise-sources-and-downstream-stages) · [Recovered 32 × 16 F32 setting, 457/512 exact pixels on one processor](parity-fixes.md#rectangular-dirt-family-settings-recovered-by-the-shared-evaluator) | | [noise_dirt_gradient.sbs/dirt_gradient](../assets/sbs/noise_dirt_gradient.sbs) | 0 | Yes | [In progress · 8/8 additional untiled originals on one, 7/8 on eight, 8/8 ordinary saves](parity-fixes.md#whole-untiled-dirt-relatives-and-the-depth-seven-iteration) · [Earlier comparison · 60/60 originals have now rendered across the recorded passes](parity-fixes.md#rectangular-dirt-family-settings-recovered-by-the-shared-evaluator) · [Earlier comparison · 58/60 whole settings rendered, 653,612/654,592 pixels on one processor, 653,621 on eight](parity-fixes.md#sixty-whole-settings-for-three-directional-and-dirt-noise-packages) · [Earlier comparison · 19/19 whole outputs, 141,554/142,592 pixels](parity-fixes.md#dirt-noise-sources-and-downstream-stages) | -| [noise_dirt_gradient_v2.sbs/dirt_gradient](../assets/sbs/noise_dirt_gradient_v2.sbs) | 0 | No | [In progress · 1/8 additional untiled originals on one, 2/8 on eight, 1/8 ordinary saves](parity-fixes.md#whole-untiled-dirt-relatives-and-the-depth-seven-iteration) · [Earlier comparison · 40/60 whole settings rendered, 428,169/464,640 exact pixels on one processor, 434,967 on eight](parity-fixes.md#sixty-whole-renders-after-correcting-the-inner-iterator) · [Recovered 32 × 16 F32 setting, 361/512 exact pixels on one processor](parity-fixes.md#rectangular-dirt-family-settings-recovered-by-the-shared-evaluator) · [Nested initial branch, 704/704 middle-stage samples](parity-fixes.md#initial-branch-of-a-nested-pattern-iterator) · [Earlier 19 outputs](parity-fixes.md#dirt-noise-sources-and-downstream-stages) · [Single-tree final stage, 2,816/2,816 F32 pixels with wrapping off](parity-fixes.md#single-branch-controls-in-complete-quadrant-trees) | +| [noise_dirt_gradient_v2.sbs/dirt_gradient](../assets/sbs/noise_dirt_gradient_v2.sbs) | 0 | No | [In progress · 5/8 additional untiled originals on each processor count, 5/8 ordinary saves, all U8 and F16 pixels exact on one processor](parity-fixes.md#filtering-a-resized-pattern-background-on-each-axis) · [Earlier comparison · 1/8 additional untiled originals on one, 2/8 on eight, 1/8 ordinary saves](parity-fixes.md#whole-untiled-dirt-relatives-and-the-depth-seven-iteration) · [Earlier comparison · 40/60 whole settings rendered, 428,169/464,640 exact pixels on one processor, 434,967 on eight](parity-fixes.md#sixty-whole-renders-after-correcting-the-inner-iterator) · [Recovered 32 × 16 F32 setting, 361/512 exact pixels on one processor](parity-fixes.md#rectangular-dirt-family-settings-recovered-by-the-shared-evaluator) · [Nested initial branch, 704/704 middle-stage samples](parity-fixes.md#initial-branch-of-a-nested-pattern-iterator) · [Earlier 19 outputs](parity-fixes.md#dirt-noise-sources-and-downstream-stages) · [Single-tree final stage, 2,816/2,816 F32 pixels with wrapping off](parity-fixes.md#single-branch-controls-in-complete-quadrant-trees) | | [noise_fluid.sbs/fluid](../assets/sbs/noise_fluid.sbs) | 0 | No | [Parity · 71 whole settings, 1,266,944/1,266,944 pixels on each processor count, 15 exact reopens](parity-fixes.md#noise-fluid-across-procedural-controls-and-stored-formats) · [Earlier 53 settings](parity-fixes.md#diagonal-blur-across-rectangular-tile-edges) · [Fourteen downstream root comparisons](parity-fixes.md#downstream-root-captures-after-the-aligned-blur-correction) | | [noise_fractal_sum_base.sbs/fractal_sum_base](../assets/sbs/noise_fractal_sum_base.sbs) | 0 | Yes | [Parity · 18 renders, 145,664 exact pixels](parity-fixes.md#stored-grayscale-stops-and-scalar-levels-controls) | | [noise_fractal_sum_base.sbs/fractal_sum_base_2](../assets/sbs/noise_fractal_sum_base.sbs) | 0 | Yes | [Parity · 18 renders, 145,664 exact pixels](parity-fixes.md#stored-grayscale-stops-and-scalar-levels-controls) |