Skip to content

Commit c3a6909

Browse files
Tighten reference tolerances to measured difference plus one
Each threshold is the worst measured cross-adapter difference at its call site, plus one at the measured precision: 0.0042 to 0.0043 for the backdrop filters, 0.0044 to 0.0045 for the many-layer clip reduce, and 0.0097 to 0.0098 for the nested-region edge coverage.
1 parent 185aa27 commit c3a6909

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/ImageSharp.Drawing.Tests/Processing/Backends/WebGPUDrawingBackendTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,7 @@ void DrawAction(DrawingCanvas canvas)
973973

974974
// Reference outputs are rendered on one adapter; other conforming adapters round
975975
// within one LSB across a small fraction of pixels.
976-
AssertBackendPairReferenceOutputs(provider, filter, defaultImage, nativeSurfaceImage, 0.01F);
976+
AssertBackendPairReferenceOutputs(provider, filter, defaultImage, nativeSurfaceImage, 0.0043F);
977977
}
978978

979979
[WebGPUTheory]
@@ -2196,7 +2196,7 @@ void DrawAction(DrawingCanvas canvas)
21962196

21972197
// Reference outputs are rendered on one adapter; other conforming adapters round
21982198
// within one LSB across a small fraction of pixels.
2199-
AssertBackendPairReferenceOutputs(provider, null, defaultImage, nativeSurfaceImage, 0.01F);
2199+
AssertBackendPairReferenceOutputs(provider, null, defaultImage, nativeSurfaceImage, 0.0045F);
22002200
}
22012201

22022202
[WebGPUTheory]
@@ -4404,6 +4404,6 @@ static void DrawAction(DrawingCanvas canvas)
44044404

44054405
// Reference outputs are rendered on one adapter; other conforming adapters differ by
44064406
// rounding and antialiased edge coverage on a small fraction of pixels.
4407-
AssertBackendPairReferenceOutputs(provider, null, defaultImage, nativeSurfaceImage, 0.02F);
4407+
AssertBackendPairReferenceOutputs(provider, null, defaultImage, nativeSurfaceImage, 0.0098F);
44084408
}
44094409
}

0 commit comments

Comments
 (0)