* build: move craft-develop to craft-libs main b2d2a1e9 (craft-libs#3101)
craft-develop and craft-develop-model move from 33be356 to b2d2a1e9,
which includes craft-libs#3101 (Detail's resolved parameters) and four
sensor commits (white-balanced demosaic with a clip mask; existing
signatures unchanged). Cargo.lock changes only craft-libs git sources.
per_pixel() no longer refuses Detail: it returns the stages with
`detail` set. RAW Develop's GPU pass has no Detail stage yet (#6916), so
the dialog now goes through gpu_stages(), which keeps a sharpened or
noise-reduced frame on the CPU. A device-free test covers it on hosted
CI; the GPU test adds Detail-only cases; the gpu crate's test follows
the new per_pixel contract.
* style(camera-raw): rustfmt gpu_stages' signature
---------
Co-authored-by: fjamesprice <[email protected]>
Keeps both test modules in crates/format/tests/it/main.rs: main's camera_raw_roundtrip and this PR's channel_mixer_cmyk.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* raw,camera_raw: bump craft-develop to 7631ed550 and add explicit parity tests (#587)
* raw,camera_raw: cut over develop_sensor demosaic and camera_raw::develop to craft_develop (#587)
* raw,camera_raw: fix craft_develop field names and test imports (#587)
* camera_raw: fix clippy excessive_precision and unnecessary cast lints
* raw,camera_raw: use exact gaussian_taps for sharpening, silence camera_raw_gpu dead_code, update post-cutover pins
* raw,camera_raw: fix highlights sign, <0.3px sharpen noop, non-Bayer/fused parity, and gpu test ignores
* engine: update camera_raw_filter_legacy_baseline_pixels to post-cutover craft_develop baseline
* raw,camera_raw: early-exit noop sharpen, exact full desat, PAD=6 fused margin
* raw,camera_raw: guard <0.3px texture/clarity blur and route fused band demosaic through craft_develop
* io: update default RAW Open baseline pins for craft_develop::sensor::demosaic reflect borders
* io: add Windows libm FNV-1a hash pins for RAW Open baselines
The artcraft k8s main runners fail every_compositor_pipeline_builds with a
GLES adapter-context deadlock, mcp_wait with a 6000x6000 Gaussian Blur that
runs out of working memory, and occasionally hostile_modules_fail_quickly
when memory.grow is slow. Hosted ubuntu-24.04 and Windows stay green, and
the same tests have both passed and failed on k8s without a product-code
change. Serialize GL pipeline builds and the mcp_wait filters, and give the
hostile-module wall-clock bound more room.
`pipelines::every_compositor_pipeline_builds` builds every pipeline with
FXC on DX12, then again on every backend with `Dx12Compiler::Auto`.
Without `dxcompiler.dll` on the search path, as on the Windows runners,
`Auto` falls back to FXC, so the second DX12 pass repeated the first.
The second pass now names DXC, so DX12 drops out of it when DXC does not
load and is built through DXC when it does. The Windows adapter and
device checks stay on the FXC pass.
8 and 16 bits both develop with `float = false`, so they share every
line of the CPU develop and the pass; cases alternate between them so
both quantizations still run. Tiny frames run one depth per size, flat
frames and the dehaze tower (not quantized) drop the identical 16-bit
run, the dehaze cache test runs on an 858-wide strip (the cache key
doesn't hold the size), and the shadows-only 858-wide strip is left to
the clarity test's strip, whose case has Shadows and Highlights too.
The 300 x 260 trim put the far mask patch at (230,190,300,260), which touches
all four tiles of the mask's 2 x 2 resident span: no tile stayed absent, so the
branch #2422 is about (cells.rs: a missing tile in a new resident texture gets
the mask default pixel) was unreachable and the check passed with that line
neutered. The far patch now starts on the 256 px boundary, (256,256,300,260),
so tiles (1,0) and (0,1) stay absent; with cells.rs:431 neutered the test fails
again at this geometry ("mask default 1: max diff 246.16/255 at (282,208)",
inside the absent tile column). The document stays 300 x 260.
Comment truths: the disjoint-damages note called the second stroke series'
rectangles "all new" - they are new damage rectangles, not new cached pixels
(the chunk they land in is already resident), which is what whole-chunk
admission is about; the incremental-updates note called the painted area "one
256 px tile" in a document that spans a 2 x 2 tile grid.
The 77 GPU parity tests render the CPU reference and both compositors per
check; several tests then rendered the same document again for a ramp or a
Stats field, and several documents were far larger than the branches they
drive. `diff_rect_full` keeps one pass's pixels and stats so no test renders
a document it just compared a second time; the oversized documents shrink to
the smallest size that still crosses the 256 px tiles and pages they are
about, and the gated Inner Shadow rows compare over the shape instead of the
whole 400 x 300 canvas.
No branch is dropped: every assertion, tolerance and check count stays, the
big-document tests keep their measured documents, and the issue's two
mutation checks plus a tile-share mutation still fail against this harness.
Resolve the conflict in crates/engine/src/adjust_params.rs: keep this
branch's generic mixer_row (RGB rows of 4, ink rows of 5) and main's
rounding to whole percentages before clamping (#14414).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
main moved the command table out of crates/engine/src/cmd.rs into crates/engine/src/cmd/table/. cmd.rs takes main's version; this PR's Channel Mixer params doc (cyan/magenta/yellow/black ink outputs, monochrome unsupported for CMYK outputs) now lives on the channelMixer entry in cmd/table/image/adjustments.rs.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Document.layers is a LayerTree that builds an id index on first lookup and drops it on any mutable access. Layer lookups and selected_layers use the index instead of walking the document.
The shader's Gradient Map LUT returns the stop colour unchanged, so the
GPU compositor kept a coloured gradient in a Grayscale document while
the CPU path now keeps the stop colour's CIE L* (#14698). The planner
returns Unsupported for that case, as it does for CMYK/Lab channels, so
the whole document falls back to the CPU compositor.
- parity.rs: the two paging tests use a 660x580 document (3x3 pages, one interior cell)
instead of 1100x900, and eviction runs 2 rounds; the residency tests that share the large
document keep it. 16-bit runs only where the GPU reads the 16-bit upload (one effect stack,
Dissolve and pattern cases). The disjoint-damage test paints 2 distinct series of 8 strokes
and isolates its layers so strokes capture checkpoints, which makes its bytes assert able to
fail. many_layers_submit_inside_one_chunk_paged is removed: its stats equal the whole test's.
- Coarse preview: drop an unchecked full-resolution solve; colour tests reuse solves and use
Extend where Move only adds an unread fill.
- Crop fill eligibility is a unit test on additional_target; the integration test keeps 3 cases.
- PSD write oracle: one run with a passing and a failing case instead of two runs.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Every compositor built all ~30 pipelines when created. On the Windows CI
runners (WARP, FXC) that took 3 to 7.5 s in every GPU test process, and a
test that draws one layer needs two or three of them.
The pipelines now sit in one table per compositor (shared with its
siblings), one entry per kernel, each built the first time a draw needs
it. try_new_with_format_threads(_classified), which the app uses for its
background build, still builds every pipeline up front in parallel
through the same table, so the app keeps its start-up error and its
cached deterministic-failure path. A pipeline that fails on first use
makes that render Unsupported (CPU fallback); a failed effect-map
pipeline turns layer effects to the CPU as before.
The #9173 rules hold: each kernel has its own vertex entry point, a
kernel's formats are built on one thread, and every build in the process
takes the same lock.
every_compositor_pipeline_builds builds all pipelines through the
threaded build, so FXC still compiles every shader on Windows CI. New
count test: one layer builds a small share of the pipelines, and a second
render or a sibling builds none.
main (#15449) moved the adjustment editors onto the craft UI framework and deleted basic.rs, which held this PR's CMYK Channel Mixer editor. The framework ChannelMixer has red, green and blue rows only, so a CMYK mixer is now kept out of it: values::from_params refuses a mixer with ink keys (CMYK_MIXER_UNAVAILABLE), the Properties panel shows that message and edits nothing, and Image > Adjustments > Channel Mixer refuses to open in a CMYK document with the same reason. A CMYK editor in craft-libs is the follow-up.
ui_tests.rs keeps main's tests; the test of the deleted egui editor is replaced by cmyk_channel_mixer_is_kept_out_of_the_rgb_editor, and the every-kind Properties test expects the refusal for a CMYK mixer. The Tokens::mixer_rgb/mixer_ink fields added for the deleted editor are dropped (no user left).
Co-Authored-By: Claude Opus 5.5 <[email protected]>