Camera Raw GPU tests: run the large-proxy comparisons on strips

This commit is contained in:
aiongg committed 2026-11-18 22:05:05 +00:00
1 parent 7c34b16a95
commit 773670ff52
1 file changed
+10 -7
+10 -7
View File
@@ -486,12 +486,13 @@ fn shadows_and_highlights_with_per_pixel_stages() {
cr! { shadows: 30.0, highlights: -30.0, whites: 40.0, blacks: -30.0, encoding_gamma: 1.8},
],
);
// At the dialog's proxy size, at one depth: the depth only changes how the input is
// At the dialog's proxy width, at one depth: the depth only changes how the input is
// quantized (8 and 16 bits both develop with `float = false`), and every depth already ran
// above at 171×113. The size is what matters here (subsampled pyramid levels).
// above at 171×113. The long side is what matters here (subsampled pyramid levels); the short
// one only needs to keep several levels, so the frame is a strip.
let Some(mut g) = gpu() else { return };
let d = compare_at(&mut g, &all, Depth::Sixteen, (858, 572));
eprintln!("shadows/highlights + per pixel 858x572: max |GPU - CPU| = {d:.2e}");
let d = compare_at(&mut g, &all, Depth::Sixteen, (858, 120));
eprintln!("shadows/highlights + per pixel 858x120: max |GPU - CPU| = {d:.2e}");
}
/// Asserts that each of `sets` moves some pixel of the test image by over 2 %, so a comparison
@@ -564,10 +565,12 @@ fn clarity_texture_and_dehaze_with_shadows_highlights_and_per_pixel_stages() {
];
check("clarity/texture/dehaze + shadows/highlights + per pixel", &sets);
let Some(mut g) = gpu() else { return };
// At the dialog's proxy size (Dehaze and Clarity on a copy subsampled twice), and wider (three
// At the dialog's proxy width (Dehaze and Clarity on a copy subsampled twice), and wider (three
// times). One depth per size: the depth only changes how the input is quantized (8 and 16
// bits both develop with `float = false`), and every depth already ran above at 171×113.
for (size, depth) in [((858, 572), Depth::Eight), ((1600, 900), Depth::Float)] {
// bits both develop with `float = false`), and every depth already ran above at 171×113. The
// long side sets the subsampling; the short one only needs to keep several pyramid levels, so
// the frames are strips.
for (size, depth) in [((858, 120), Depth::Eight), ((1600, 120), Depth::Float)] {
let d = compare_at(&mut g, &all, depth, size);
eprintln!("everything {size:?} {depth:?}: max |GPU - CPU| = {d:.2e}");
}