Commit Graph
408 Commits
Author SHA1 Message Date
FredApps c77a928370 Merge remote-tracking branch 'upstream/main' into onee/k8s-gate-test-hardening 2026-11-23 12:54:06 +07:00
p0rpsandfjamesprice 6fff6629f9 build: move craft-develop to craft-libs main b2d2a1e9 (craft-libs#3101) (#16485)
* 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]>
2026-11-23 00:20:24 -05:00
Dylan M. Taylor 309e4c7a65 camera_raw: preserve legacy filter renders and native preview (#16419) 2026-11-22 12:57:39 -05:00
FredApps 4993baf24d Merge branch 'main' into onee/k8s-gate-test-hardening 2026-11-22 23:11:50 +07:00
Dylan M. Taylor 65fc546bba raw, camera_raw: adopt craft-develop 7631ed550 and add explicit parity tests (#587) (#16393)
* 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
2026-11-22 10:36:03 -05:00
FredApps a052dd819e test: harden the three k8s gate flakes on GLES and memory pressure
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.
2026-11-22 22:24:37 +07:00
David Mann 1ed2fa74ab Merge PR #16047: test(gpu): pay one CPU reference and one render set per parity check 2026-11-22 13:25:16 +01:00
David Mann 9889a02f2d Merge PR #16173: #15929: build the compositor pipelines with FXC once, not twice 2026-11-22 13:24:48 +01:00
David Mann 189ba8fcbc Merge PR #16151: #15928: Camera Raw GPU tests run one integer depth and float per case 2026-11-22 13:24:39 +01:00
David Mann 51a18f6096 Merge PR #15198: fix(fill): keep opaque Dissolve fills fully covered 2026-11-22 00:26:37 +01:00
RickiNano 63253358bc #15929: drop the time share from the second-pass comment
The CI runners saved about a quarter of the test, not half.
2026-11-21 14:47:00 +01:00
RickiNano e22a775246 #15929: build the compositor pipelines with FXC once, not twice
`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.
2026-11-21 14:19:55 +01:00
RickiNano c877585a7f #15928: Camera Raw GPU tests run one integer depth and float per case
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.
2026-11-21 13:20:50 +01:00
hnoerenberg ffad734425 test(gpu): keep absent tiles in the changed-mask-default parity check
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.
2026-11-21 04:49:43 +01:00
hnoerenberg 5da6827fb2 test(gpu): pay one CPU reference and one render set per parity check
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.
2026-11-21 03:10:08 +01:00
David Mann 59147c730c Merge #15112 into the merge queue batch
fix(compose): honour Anti-aliased for the Inner Shadow map
2026-11-20 15:52:16 +01:00
David Mann 1a97ade598 Merge #15735 into the merge queue batch
fix(compose): draw a one-pixel Size 1 Inner Glow
2026-11-20 14:16:36 +01:00
David Mann 95af987938 Merge #15013 into the merge queue batch
Gradient Map: keep the gradient's lightness in Grayscale documents (#14698)
2026-11-20 14:16:34 +01:00
hnoerenberg 8b1af24cb8 Merge upstream/main into fix/inner-shadow-antialiased-14934 2026-11-20 14:14:18 +01:00
David Mann bb4dc343b3 Merge #15420 into the merge queue batch
fix(compose): fade split Blend If points over both ends in 8-bit documents (#14855)
2026-11-20 02:04:37 +01:00
David Mann 968d74adee Merge #15282 into the merge queue batch
Layer Style: Satin's Invert flips the result after the contour (#14981)
2026-11-20 02:04:36 +01:00
David Mann 3674da4f9d Merge pull request #10537 from admiralronton/fix/bevel-gloss-high-altitude
Bevel gloss contour: split at the unmapped sin(altitude) (#594)
2026-11-19 18:58:15 +01:00
aiongg 2f6f4cd7cc Merge pull request #15730 from FredApps/speed-gpu-fixtures-15707
Use strips for Camera Raw parity tests
2026-11-19 10:00:24 -05:00
hnoerenberg 3a06f56045 Merge upstream/main into fix/inner-shadow-antialiased-14934 2026-11-19 14:13:40 +01:00
aiongg a8f95bd16d Document layer index and index-ordered selection (#15704)
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.
2026-11-19 10:07:19 +00:00
haranishi 378c31c92b fix(compose): render Size 1 Softer Inner Glow at edges 2026-11-19 18:38:36 +09:00
FredApps de5725af2f Use strips for Camera Raw parity tests 2026-11-19 09:40:39 +01:00
jayzed80 7752a5c076 Composite 8/16-bit Grayscale Gradient Maps on the CPU
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.
2026-11-19 02:24:19 +00:00
hnoerenberg 3d1b4633d9 Merge upstream/main into fix/inner-shadow-antialiased-14934 2026-11-19 02:00:52 +01:00
aiongg 773670ff52 Camera Raw GPU tests: run the large-proxy comparisons on strips 2026-11-18 22:05:05 +00:00
aiongg 626de094e9 Merge pull request #15641 from davidmann4/test-speed/15367-engine-gpu
Tests: trim repeated solves and loops in engine and GPU tests (#15367)
2026-11-18 15:33:05 -05:00
David MannandClaude Opus 5.5 d4797333de Tests: trim repeated solves and loops in engine and GPU tests (#15367)
- 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]>
2026-11-18 20:47:59 +01:00
aiongg c55c0b7ce8 gpu: build each compositor pipeline on first use (#15439)
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.
2026-11-18 18:51:38 +00:00
FredApps f7938dc479 Merge pull request #10499 from yoriswind/codex/blend-if-parity
Fix GPU Blend If rounding at whole channel levels
2026-11-18 16:22:38 +07:00
David Mann 01a5b5a389 Merge pull request #15381 from davidmann4/perf/test-speed-quick-wins
Test speed: no font scan in test processes, CMYK profile once, raw-develop at one depth (#15377)
2026-11-17 16:49:07 +01:00
aiongg ed14e1c413 PhotoCraft on the craft UI framework (#15449)
PhotoCraft's UI moves onto the shared craft UI framework in storytold/craft-libs (next branch): shell, dock and panels, hosted dialogs, keyboard, focus, IME and pointer routing, the canvas's view commands, themes and tokens. The engine, document model, file formats, commands and automation stay. PhotoCraft pins storytold/craft-libs next.
2026-11-17 10:41:35 -05:00
ljkx 0acff4c7f2 fix(compose): keep the plain Blend If ramp outside RGB documents
Only 8-bit RGB was measured for #14855; Grayscale and Duotone keep
today's split fade on the CPU and the GPU.
2026-11-17 09:53:38 +01:00
ljkx 9841d0f886 fix(compose): fade split Blend If points over both ends in 8-bit documents (#14855)
A split Blend If slider faded as (v - low) / (high - low), so the fade
started a level late and every value between the halves showed a little
less of the layer than the reference application. 8-bit documents now
fade as (v - low + 1) / (high - low + 1) on the black side and
(high - v + 1) / (high - low + 1) on the white side, on the CPU
(BlendRange::weight_8bit through blend_if_weight) and the GPU (bi_ramp,
flagged per pass in p4.z). Unsplit points and 16/32-bit documents keep
their behaviour.
2026-11-17 09:33:29 +01:00
David MannandClaude Opus 5.5 484483b691 test: build the CMYK test profile once, run large raw-develop sizes at one depth
- cmyk_flatten_profile: synthesise the test profile once per process and
  share one Arc, so CmykSpace's per-allocation cache builds the transforms
  once; exact() reads both rows from one run (4 documents, not 8).
- camera_raw GPU tests: the 858x572 and 1600x900 comparisons run at one
  depth each. The depth only changes the input quantization (8 and 16 bits
  both develop with float = false) and every depth runs at 171x113 above.
- cols_timing is a benchmark without assertions: ignore it like its
  siblings.
- compose: delete clipped_dissolve_is_binary_and_preserves_the_base_shape,
  a byte-identical copy of clipped_dissolve_opacity_fill_is_binary_and_
  preserves_base_shape (whose doc comment names both issues).

Part of #15376.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-17 02:03:03 +01:00
hnoerenberg 8264cd1ea4 test(gpu): pin the anti-aliased Inner Shadow at a Distance offset
The geometry gate reads the Size and the Choke, not the measured
Distance 0, so an Anti-aliased Inner Shadow at Distance 5 runs on the
sub-pixel source path with no pin on either compositor. Add it: the
source shift stage carries the whole-pixel light offset plus the third
of a pixel, exactly as `shadow_map` shifts by `dx + aa`; the Choke 50 %
program at that Distance stays the flag-off program, distance-field
stage included; and the GPU-vs-CPU parity check now covers both rows on
the whole-texture and the paged compositor. The Distance rows sit inside
the two tests that were red before the gate; on their own they pin that
the gate leaves a shifted light offset alone, so they would be green
either way.
2026-11-16 18:54:08 +01:00
hnoerenberg 857e0eb8e6 fix(effects): gate the Inner Shadow AA offset to the measured map
An independent review found that the third-of-a-pixel source offset sat on
every Size, Choke and Distance with Anti-aliased on, while only Size 10 at
Choke 0 was measured. Both neighbours of that configuration are
degeneracies of `spread_split`: at a blur width of 1 (Size 1, or Size 2 at
Choke 50 %) `dilate` no-ops and the tent blur is the identity, so the
offset became the whole map - 1/3 coverage on the bottom and right inner
edges (G 89.7 against the layer's own 128) and nothing at the top and
left, a one-sided black line. At a Choke that dilates the CPU recomputes
its chamfer distance on the offset map while `B::spread_blur` shifts the
whole-pixel `ChokeInside` field of the unshifted shape, so the two
compositors part by 40/255.

`aa_shift` now takes the Size and Choke and applies the offset only to a
split of no dilation and a blur wider than the identity, with the Gaussian
contour: a rule in the inputs, not the measured document's Size 10. Sizes
1.5 to 250 at Choke 0, Distance 5 and Choke 4 % (which dilates nothing)
still take it; Size 1, Size 2 at Choke 50 % and every Choke that dilates
keep today's map bit-for-bit. Four new CPU probes, one GPU stage-list
probe and one GPU-vs-CPU parity probe pin both sides: three of the CPU
probes and both GPU probes failed on this branch's head before the gate
(the parity probe at max diff 40.04/255, Size 10 Choke 50 %).
2026-11-16 18:43:03 +01:00
hnoerenberg 6434f86f89 Merge upstream/main into fix/inner-shadow-antialiased-14934 2026-11-16 17:26:06 +01:00
admiralronton 95302d354e Merge remote-tracking branch 'origin/main' into fix/bevel-gloss-high-altitude 2026-11-16 07:12:58 -08:00
NaufalDzzandOpenBot b84eb0fc74 Layer Style: Satin's Invert flips the result after the contour (#14981)
satin_map inverted the coverage before the contour LUT, so a curved
contour with Invert on was not the opposite of the same Satin without
Invert. Invert now applies after the contour on the CPU, and the GPU
satin stage uses fs_mfinish's existing after-contour mode.

Co-authored-by: OpenBot <335604065+openbotgit[bot]@users.noreply.github.com>
2026-11-16 08:08:38 +00:00
hnoerenberg 577c2b9070 fix(gpu): honour Anti-aliased in the Inner Shadow map program
gpu/fx: the review asks for the Done-when line "CPU and GPU compositors
agree". `B::shadow` built the Inner Shadow map from the shape shifted by
whole pixels only, so the Anti-aliased checkbox stayed invisible on the
GPU: the parity check of the issue's document measured 20.65/255
between the two compositors once the CPU honoured the flag.

The map builder now calls the same gate the CPU does (`effects::aa_shift`,
inner branch and the Gaussian contour only), and `fs_mshift` samples the
way `Map::shifted` does: four taps, bilinear, with the invert and the
`outside` fill applied per tap. A whole-pixel offset weights its taps 1
and 0, so every shift that exists today (drop shadows with Distance,
satin, the Choke/Spread field shift) reads exactly the texel it read
before. The stage radius ceils, so a sub-pixel shift's extra tap stays
inside the window the executor recomputes - what makes the paged
compositor agree.

Two tests: the stage list, which needs no device, and the issue's
document rendered on both compositors (plain and paged 256 px),
comparing the four edge ramps against the CPU and against the issue's
measured values.
2026-11-16 02:53:48 +01:00
Mex 3c32f87337 fix(gpu): synchronize gradient dither normalization
Keep the shader gradient noise mirror identical to the shared CPU hash normalization.
2026-11-15 19:55:53 +01:00
David Mann 5ed5a10997 Merge pull request #15110 from Bobderto/codex/14983-satin-size-one
Render the measured Satin Size 1 edge on CPU and GPU
2026-11-15 16:13:36 +01:00
David Mann fdb793c9a1 Merge pull request #11410 from chamber074/fix/outer-glow-contour
Outer Glow: a flat contour paints the whole rectangle (#11361)
2026-11-15 15:57:20 +01:00
Dan 7ca01562c0 Merge commit '5bdbcc118' into codex/14983-satin-size-one 2026-11-15 12:54:33 +00:00
Dan ef60db3949 Render the measured Satin Size 1 edge on CPU and GPU 2026-11-15 11:55:51 +00:00